{"id":1712,"date":"2023-04-24T12:45:12","date_gmt":"2023-04-24T12:45:12","guid":{"rendered":"https:\/\/oimi.me\/?p=1712"},"modified":"2023-04-24T12:45:12","modified_gmt":"2023-04-24T12:45:12","slug":"virtual-dsm","status":"publish","type":"post","link":"https:\/\/myya.net\/index.php\/2023\/04\/24\/virtual-dsm\/","title":{"rendered":"Virtual DSM"},"content":{"rendered":"<p><strong>Virtual DSM<\/strong> \u662f\u4e00\u4e2a\u53ef\u4ee5\u5728 Docker \u91cc\u5b89\u88c5\u9ed1\u7fa4\u6656\u7684\u9879\u76ee\uff0c\u751a\u81f3\u53ef\u4ee5\u5728 DSM \u4e2d\u518d\u5b89\u88c5\u4e00\u4e2a DSM<!--more--><\/p>\n<p>\u9996\u5148\u9700\u8981\u660e\u786e\u4e00\u4e0b\uff0c\u7fa4\u6656\u672c\u8eab\u5c31\u53ef\u4ee5\u5728\u5176\u7cfb\u7edf\u5185\u865a\u62df\u4e00\u4e2a DSM\uff0c\u5c31\u5728 <strong>Virtual Machine Manager<\/strong> \u5957\u4ef6\u4e2d\uff0c\u65b0\u5efa\u865a\u62df\u673a\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u770b\u5230\uff1a<\/p>\n<div class=\"wp-block-image\"><\/div>\n<p>\u6bcf\u53f0\u767d\u7fa4\u6656\u90fd\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a Synology Virtual DSM\uff0c\u518d\u591a\u5c31\u8981\u8d2d\u4e70\u6388\u6743\u4e86\u3002<\/p>\n<p>\u800c\u8fd9\u4e2a Virtual DSM \u5c31\u4e0d\u592a\u4e00\u6837\uff0c\u968f\u4fbf\u4f60\u521b\u5efa\uff0c\u6bd5\u7adf\u662f\u9ed1\u7684 &#x1f602;<\/p>\n<h2 id=\"virtual-dsm\" class=\"wp-block-heading\">Virtual DSM<\/h2>\n<ul>\n<li>\u9879\u76ee\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/kroese\/virtual-dsm\" target=\"_blank\" rel=\"noopener\">GitHub<\/a><\/li>\n<\/ul>\n<p>Virtual DSM \u5c31\u7b80\u5355\u591a\u4e86\uff0c\u5728\u652f\u6301 KVM \u865a\u62df\u5316\u7684\u7cfb\u7edf\u4e0a\uff0c\u53ea\u9700\u8981\u914d\u7f6e\u597d Docker\uff0c\u7136\u540e\u5c31\u80fd\u5b89\u88c5\u9ed1\u7fa4\u6656\u4e86\uff1a<\/p>\n<div class=\"wp-block-syntaxhighlighter-code \">\n<div>\n<div id=\"highlighter_459674\" class=\"syntaxhighlighter  bash\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">1<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"bash plain\">docker run -it --<\/code><code class=\"bash functions\">rm<\/code> <code class=\"bash plain\">-p 5000:5000 --device=<\/code><code class=\"bash plain\">\/dev\/kvm<\/code> <code class=\"bash plain\">--cap-add NET_ADMIN --stop-timeout 60 kroese<\/code><code class=\"bash plain\">\/virtual-dsm<\/code><code class=\"bash plain\">:latest<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>\u9752\u5c0f\u86d9\u672c\u6765\u51c6\u5907\u5728\u865a\u62df\u673a\u4e4b\u4e2d\u5957\u5a03\uff0c\u4f46\u53d1\u73b0\u4e0d\u884c\u3002\u4f46\u662f\uff0c\u5728\u7fa4\u6656\u4e2d\uff0c\u5b89\u88c5\u6210\u529f\u4e86 &#x1f602;<\/p>\n<p>\u8fd9\u662f\u4e00\u53f0\u5b89\u88c5\u4e86 DSM 7.2 Beta \u7684\u7fa4\u6656\u8bbe\u5907\uff0c\u4f7f\u7528\u65b0\u7684\u5bb9\u5668\u7ba1\u7406\u5668\uff08\u539f\u6765\u7684 Docker\uff09\uff1a<\/p>\n<div class=\"wp-block-image\"><\/div>\n<p>\u6ce8\u610f\u7aef\u53e3\u4e0d\u8981\u50cf\u9752\u5c0f\u86d9\u8fd9\u6837\u60f3\u5f53\u7136\u7684\u7528 6000\uff0c\u4f1a\u542f\u52a8\u5931\u8d25\u7684\uff0c\u7528 6001 \u5373\u53ef\u3002<\/p>\n<p>\u5177\u4f53\u7684 YAML \u914d\u7f6e\uff1aversion: &#8220;3&#8221;<br \/>\nservices:<br \/>\ndsm:<br \/>\ncontainer_name: dsm<br \/>\nimage: kroese\/virtual-dsm:latest<br \/>\nenvironment:<br \/>\nDISK_SIZE: &#8220;16G&#8221;<br \/>\ndevices:<br \/>\n&#8211; \/dev\/kvm<br \/>\ncap_add:<br \/>\n&#8211; NET_ADMIN<br \/>\nports:<br \/>\n&#8211; 6001:5000<br \/>\nvolumes:<br \/>\n&#8211; \/volume1\/docker\/dsm:\/storage<br \/>\nrestart: on-failure<br \/>\nstop_grace_period: 1m<\/p>\n<p>\u7136\u540e\uff0c\u4e0d\u8981\u548c\u539f\u6765\u7684\u7fa4\u6656\u4f7f\u7528\u76f8\u540c\u7684\u57df\u540d\uff0c\u53ef\u80fd\u4f1a\u6709\u51b2\u7a81\uff0c\u6211\u7684\u89e3\u51b3\u65b9\u6848\u662f\u4e00\u4e2a\u7528\u57df\u540d\u8bbf\u95ee\uff0c\u4e00\u4e2a\u7528 IP \u8bbf\u95ee\u3002<\/p>\n<p>\u5b89\u88c5\u4e4b\u540e\u7684\u7cfb\u7edf\u4e5f\u662f\u6700\u65b0\u7684 DSM 7.2 Beta \u7cfb\u7edf\u3002<\/p>\n<div class=\"wp-block-image\"><\/div>\n<p>\u6ca1\u6709\u5e8f\u5217\u53f7\uff0c\u4e0d\u652f\u6301\u767b\u5f55\u7fa4\u6656\u8d26\u53f7\u3002\u4f46\u6d4b\u8bd5\u7528\u7528\u8fd8\u662f\u6ca1\u95ee\u9898\u7684\uff0c\u5982\u679c\u60f3\u8981\u6b63\u7ecf\u4f7f\u7528\uff0c\u5728\u673a\u5668\u672c\u8eab\u5f3a\u5927\u7684\u524d\u63d0\u4e0b\uff0c\u4e5f\u4e0d\u662f\u4e0d\u884c\uff0c\u505a\u597d\u5907\u4efd\u5c31\u597d\u4e86\u3002\u6bd4\u5982\u865a\u62df\u4e24\u4e2a DSM \u4e92\u76f8\u5907\u4efd\uff08\u522b\u5728\u540c\u4e00\u53f0\u673a\u5668\u4e0a\uff09\u3002<\/p>\n<h2 id=\"%25e6%259c%2589%25e4%25bb%2580%25e4%25b9%2588%25e7%2594%25a8\" class=\"wp-block-heading\">\u6709\u4ec0\u4e48\u7528\uff1f<\/h2>\n<p>\u9752\u5c0f\u86d9\u89c9\u5f97\uff0c\u7528\u6765\u4f53\u9a8c DSM \u7cfb\u7edf\u662f\u6700\u597d\u7684\u7528\u9014\u4e86\uff0c\u5728\u8d2d\u4e70\u7fa4\u6656\u8bbe\u5907\u524d\uff0c\u5176\u5b9e\u975e\u5e38\u591a\u7684\u7528\u6237\u662f\u4ece\u9ed1\u7fa4\u6656\u5f00\u59cb\u7684\u3002\u6bd4\u5982\u9752\u5c0f\u86d9\u5c31\u662f\u4ece ESXi \u4e0b\u6298\u817e\u4e86\u5927\u534a\u5e74\uff0c\u7136\u540e\u5165\u624b\u4e86\u767d\u7fa4\u6656\u3002\u6bd4\u8d77\u5404\u7c7b\u865a\u62df\u7cfb\u7edf\uff0cDocker \u65e0\u7591\u66f4\u4f73\u7b80\u4ecb\u65b9\u4fbf\u65e0\u75d5\u5feb\u6377\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Virtual DSM \u662f\u4e00\u4e2a\u53ef\u4ee5\u5728 Docker \u91cc\u5b89\u88c5\u9ed1\u7fa4\u6656\u7684\u9879\u76ee\uff0c\u751a\u81f3\u53ef\u4ee5\u5728 DSM \u4e2d\u518d\u5b89\u88c5\u4e00\u4e2a DS [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1712","post","type-post","status-publish","format-standard","hentry","category-lab"],"_links":{"self":[{"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/posts\/1712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/comments?post=1712"}],"version-history":[{"count":0,"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/posts\/1712\/revisions"}],"wp:attachment":[{"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/media?parent=1712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/categories?post=1712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myya.net\/index.php\/wp-json\/wp\/v2\/tags?post=1712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}