{"id":4831,"date":"2025-09-09T22:28:09","date_gmt":"2025-09-09T14:28:09","guid":{"rendered":"https:\/\/dasmz.com\/?p=4831"},"modified":"2025-09-15T20:36:16","modified_gmt":"2025-09-15T12:36:16","slug":"%e6%8a%8a%e6%95%b4%e4%b8%aa%e7%89%a9%e7%90%86%e7%ac%94%e8%ae%b0%e6%9c%ac%e7%9a%84%e7%b3%bb%e7%bb%9f%e5%a1%9e%e8%bf%9bproxmox-ve%e8%99%9a%e6%8b%9f%e5%8c%96","status":"publish","type":"post","link":"https:\/\/dasmz.com\/?p=4831","title":{"rendered":"\u628a\u6574\u4e2a\u7269\u7406\u7b14\u8bb0\u672c\u7684\u7cfb\u7edf\u585e\u8fdbProxmox VE\u865a\u62df\u5316"},"content":{"rendered":"\n<p><strong>\u524d\u7f00\u3001\u6587\u6863\u4fee\u6539\u8bb0\u5f55<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">20250909 \u521d\u59cb\u5316\u7f16\u8f91\u6b64\u6587\u7ae0\uff0c\u5b8c\u7a3f\n20250911 \u66f4\u65b0\u5185\u5bb9<\/pre>\n\n\n\n<p><strong>\u7ae0\u82821\u3001\u9700\u6c42\u63cf\u8ff0<\/strong><\/p>\n\n\n\n<p>\u4e00\u76f4\u60f3\u628a\u516c\u53f8\u914d\u53d1\u7684\u7535\u8111\uff0c\u6574\u4e2a\u786c\u76d8\u4e0a\u7684\u7cfb\u7edf\uff08\u542b\u7cfb\u7edf\u76d8\u3001\u6570\u636e\u76d8\uff09\u6574\u4e2a\u6253\u5305\uff0c\u585e\u8fdb\u865a\u62df\u5316\u91cc\u9762\uff0c\u8fd9\u6837\u65b9\u4fbf\u81ea\u5df1\u6709\u7684\u65f6\u5019\uff0c\u4e34\u65f6\u51fa\u5dee\u7528\u4e00\u4e0b\u516c\u53f8\u7684\u5185\u7f51\u3002<\/p>\n\n\n\n<p>\u7ae0\u82822\u3001Disk2vhd\u5de5\u5177<\/p>\n\n\n\n<p>\u4f7f\u7528\u5230\u7684\u662f\u5fae\u8f6f\u5b98\u65b9\u7684Disk2vhd\u5de5\u5177\uff0c\u7528\u5b83\uff0c\u53ef\u4ee5\u628a\u6574\u4e2a\u78c1\u76d8\uff0c\u5168\u90e8\u6253\u5305\u6210vhd<\/p>\n\n\n\n<p><a href=\"https:\/\/learn.microsoft.com\/en-us\/sysinternals\/downloads\/disk2vhd\">https:\/\/learn.microsoft.com\/en-us\/sysinternals\/downloads\/disk2vhd<\/a><\/p>\n\n\n\n<p>\u7ae0\u82823\u3001\u64cd\u4f5c\u8fc7\u7a0b<\/p>\n\n\n\n<p>3.1\u3001 \uff08\u53ef\u9009\uff09\u955c\u50cf\u590d\u5236\u6574\u4e2a\u78c1\u76d8<\/p>\n\n\n\n<p>\u6211\u5f04\u4e862\u4e2aNVMe\u7684\u79fb\u52a8\u786c\u76d8\u76d2\uff0c\u628a\u5de5\u4f5c\u7b14\u8bb0\u672c\u7535\u8111\u7684\u4e09\u661f\u56fa\u6001M2\/512GB \u786c\u76d8\u62c6\u4e86\u51fa\u6765\uff0c\u7528 Linux\u7cfb\u7edf\u7684 dd\u547d\u4ee4\uff0c\u62ff\u4e00\u5757\u56fd\u4ea7\u7684M2\/512GB\uff0c\u6574\u4e2a\u955c\u50cf\u4e86\u4e00\u904d\u78c1\u76d8\uff0c\u540e\u7eed\u7684\u64cd\u4f5c\u53ef\u4ee5\u5728\u6211\u590d\u5236\u51fa\u6765\u7684\u8fd9\u5757\u56fd\u4ea7M2\/512GB\u7684\u78c1\u76d8\u4e0a\u64cd\u4f5c\uff0c\u5373\u4fbf\u64cd\u4f5c\u6b65\u9aa4\u6709\u9519\u8bef\uff0c\u4e5f\u4e0d\u4f1a\u628a\u5de5\u4f5c\u7cfb\u7edf\u5f04\u70b8\u88c2\u3002<\/p>\n\n\n\n<p>3.2\u3001 \u8fd0\u884cdisk2vhd\u5de5\u5177<\/p>\n\n\n\n<p>disk2vhd\u5de5\u5177\u652f\u6301\u5bf9\u8fd0\u884c\u4e2d\u7684\u7cfb\u7edf\u4e2d\u6267\u884c\uff0c\u540c\u6837\u4e5f\u652f\u6301\u79fb\u52a8\u786c\u76d8\uff0c\u6bd4\u5982\u6211\u521a\u521a\u955c\u50cf\u51fa\u6765\u7684\u56fd\u4ea7\u5316\u786c\u76d8M2\/512GB\uff0c\u53ea\u8981\u79fb\u52a8\u786c\u76d8\u91cc\u7684\u5206\u533a\u80fd\u591f\u5728 Windows \u4e2d\u6b63\u5e38\u6302\u8f7d\u5e76\u663e\u793a\u4e3a\u5377\uff08\u4f8b\u5982\u6709\u76d8\u7b26 D:\\\u3001E:\\\uff09\uff0cDisk2vhd \u5c31\u80fd\u626b\u63cf\u5e76\u5217\u51fa\u6765\uff0c\u4f60\u4e5f\u53ef\u4ee5\u52fe\u9009\u5b83\u6765\u8fdb\u884c\u8f6c\u6362\u3002<\/p>\n\n\n\n<p>\u9009\u98791\u3001 [\u52fe\u9009] prepare for use in virtual PC<\/p>\n\n\n\n<p>\u9009\u98792\u3001 [\u4e0d\u9700\u8981]use vhdx<\/p>\n\n\n\n<p>\u56e0\u4e3a\u6211\u6700\u7ec8\u8981\u628a\u955c\u50cf\u6587\u4ef6\u5f04\u5230\u6211\u7684Proxmox VE\u73af\u5883\u4e2d\uff0cvhd\u683c\u5f0f\u662f\u9002\u5408\u7684\uff0c\u800c\u4f60\u4eec\u82e5\u51c6\u5907\u7528HyperV\u627f\u8f7d\uff0c\u5219\u8fd9\u91cc\u5e94\u8be5\u9009\u62e9vhdx<\/p>\n\n\n\n<p>\u9009\u98793\u3001 [\u4e0d\u9700\u8981]usse volumn shadow copy<\/p>\n\n\n\n<p>\u56e0\u4e3a\uff0c\u6211\u662f\u7528\u7684\u5176\u4ed6\u7535\u8111\uff0c\u8fd0\u884cdisk2vhd\uff0c\u79fb\u52a8\u786c\u76d8\u91cc\uff0c\u662f\u9700\u8981\u6253\u5305\u6210vhd\u7684\u5de5\u4f5c\u7cfb\u7edf\uff0c\u57fa\u4e8e Windows \u7684\u5377\u5f71\u590d\u5236\u670d\u52a1\uff08VSS, Volume Snapshot Service\uff09\u6765\u521b\u5efa VHD\uff0c\u8fd9\u4e2a\u9009\u9879\uff0c\u6211\u8fd9\u91cc\u4e0d\u5fc5\u3002<\/p>\n\n\n\n<p>VHD File name:  \u5b58\u50a8\u8def\u5f84\uff0c\u6211\u7684\u53f0\u5f0f\u673a\u7684HDD\/D\u76d8\uff0c\u5269\u4f59\u53ef\u7528\u78c1\u76d8\u7a7a\u95f4759GB\uff0c\u8db3\u591f\u653e\u7f6e\u8fd9\u4e2a512GB\u7684\u78c1\u76d8\u6587\u4ef6\u3002<\/p>\n\n\n\n<p>\u70b9\u51fb Create\uff0c\u5373\u53ef\u5f00\u59cb\uff0c\u56e0\u4e3a\u662f\u9010\u5757\u8bfb\u53d6\u78c1\u76d8\u548c\u5199\u5165\u7684\uff0c\u901f\u5ea6\u4e00\u822c\u4e0d\u4f1a\u5f88\u5feb\uff0c\u6162\u6162\u7b49\u5f85\u6267\u884c\u5b8c\u6210\u5c31\u662f\u3002<\/p>\n\n\n\n<p>3.3\u3001 \u4e0a\u4f20\u6587\u4ef6<\/p>\n\n\n\n<p>\u5c06\u521a\u521a\u751f\u6210\u7684 DESKTOP-XXYYZZ.vhd\u6587\u4ef6\u4e0a\u4f20\u5230\u6211\u7684PVE\u78c1\u76d8\u76ee\u5f55\u4e0b\uff0c\u6ce8\u610f\u56e0\u4e3a\u6587\u4ef6\u6bd4\u8f83\u5927\uff0c\u4f20\u8f93\u5b8c\u6210\u540e\uff0c\u7528md5sum\/sha1sum\u4e4b\u7c7b\u7684\u6821\u9a8c\u4e00\u4e0b\u5b8c\u6574\u6027\u3002<\/p>\n\n\n\n<p>3.4\u3001 \u683c\u5f0f\u8f6c\u6362<\/p>\n\n\n\n<p>PVE \u4e2d\u65b0\u5efa\u4e00\u53f0\u865a\u62df\u673a<\/p>\n\n\n\n<p>\u786c\u4ef6\u53c2\u6570\u8bbe\u7f6e\u5c3d\u91cf\u548c\u5b9e\u4f53\u673a\u4e00\u81f4\uff08CPU\u3001\u78c1\u76d8\u63a7\u5236\u5668\u3001UEFI\/BIOS \u6a21\u5f0f\uff09<\/p>\n\n\n\n<p>\u8f6c\u6362\u4e3a PVE \u53ef\u7528\u683c\u5f0f<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">qemu-img convert -f vpc -O qcow2 DESKTOP-XXYYZZ.vhd vm-101-disk-0.qcow2\n\n\/\/ \u5176\u4e2d-f\u8868\u793a\u539f\u59cbfile\u5f0f\uff0cQEMU recognizes vpc for VHD files and vhdx for VHDX files.   qemu-img info \/var\/lib\/vz\/template\/iso\/DESKTOP-AAU5KV1.VHD\n\/\/ \u5176\u4e2dvmid-101 \u8fd9\u4e2a101\u6839\u636e\u4f60\u4eec\u5b9e\u9645\u7684\u865a\u62df\u673aID\u6765\u3002VM \u914d\u7f6e\u6587\u4ef6\u91cc\u6302\u8f7d\n\n\nqm importdisk 102 \/root\/vm-101-disk-0.qcow2 local-zfs\n\/\/ \u5176\u4e2d102\u8fd9\u4e2a\u4fee\u6539\u4e3a\u4f60\u521b\u5efa\u7684VM\u7684ID\u53f7\n\/\/ local-zfs\u4fee\u6539\u4e3a\u4f60\u7684\u5b58\u50a8\u8def\u5f84<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">\u521b\u5efa\u865a\u62df\u673a\uff08CPU\/MEM\/noDisk\/noSystemISO\/\u7f51\u5361E1000\uff09\uff0c\u7f51\u5361MAC\u5730\u5740\u8ddf\u516c\u53f8\u7684\u7f51\u5361\u7684\u4e00\u81f4\u3002\n\nBIOS\/UEFI \u8bbe\u7f6e\u8981\u548c\u5b9e\u4f53\u673a\u4e00\u81f4\uff08Windows 10\/11 \u5927\u6982\u7387\u7528 UEFI + OVMF\uff09\u3002\n\n\u786c\u76d8\u63a7\u5236\u5668\u5148\u9009 SATA\uff08\u8fd9\u6837\u53ef\u4ee5\u4fdd\u8bc1\u5148\u80fd\u542f\u52a8\uff09\u3002\n\n\u7f51\u5361\u5148\u7528 Intel E1000\uff08Windows \u81ea\u5e26\u9a71\u52a8\uff09\u3002\n\n\u628a\u8f6c\u6362\u597d\u7684\u78c1\u76d8\u6587\u4ef6\u6302\u8f7d\u5230\u8fd9\u53f0 VM \u4e0a\uff08\u66ff\u6362\u6389\u7a7a\u78c1\u76d8\uff09<\/pre>\n\n\n\n<p>\u7ae0\u82823\u3001 \u53ef\u80fd\u7684\u9a71\u52a8\u95ee\u9898<\/p>\n\n\n\n<p>Windows \u8fc1\u79fb\u540e\u53ef\u80fd\u84dd\u5c4f\uff0c\u8981\u63d0\u524d\u88c5\u597d virtio \u9a71\u52a8<\/p>\n\n\n\n<p><a href=\"https:\/\/fedorapeople.org\/groups\/virt\/virtio-win\/direct-downloads\/latest-virtio\/\">https:\/\/fedorapeople.org\/groups\/virt\/virtio-win\/direct-downloads\/latest-virtio\/<\/a><\/p>\n\n\n\n<p><strong>\u9644\u5f551\u3001\u89c6\u9891\u64cd\u4f5c\u6f14\u793a<\/strong><\/p>\n\n\n\n<p><strong>\u9644\u5f552\u3001@Dasmz<\/strong><\/p>\n\n\n\n<p>\u535a\u5ba2\u5185\uff0c\u6240\u6709\u6559\u7a0b\u4e3a\u624b\u6253\u539f\u521b\u6559\u7a0b\uff0c\u5982\u679c\u6280\u672f\u6559\u7a0b\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\uff0c\u6b22\u8fce\u6253\u8d4f\u4f5c\u8005\u3002\u6280\u672f\u5c42\u9762\uff0c\u95fb\u9053\u6709\u5148\u540e\uff0c\u5982\u6709\u758f\u6f0f\u3001\u9519\u8bef\uff0c\u6b22\u8fce\u6307\u6b63\u3002\u6280\u672f\u535a\u5ba2\u7684\u5185\u5bb9\uff0c\u4e00\u822c\u5177\u6709\u4e00\u5b9a\u7684\u73af\u5883\u4f9d\u8d56\uff0c\u5177\u6709\u4e00\u5b9a\u7684\u5e74\u4ee3\u4f9d\u8d56\uff0c\u914c\u60c5\u53c2\u8003\u5176\u4e2d\u7684\u5185\u5bb9\uff0c\u8bf7\u52ff\u5b8c\u5168\u7167\u642c\u7167\u6284\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e8e\u535a\u5ba2\u5185\u5df2\u63d0\u53ca\u7684\u4e13\u4e1a\u77e5\u8bc6\uff0c\u5982\u679c\u9700\u8981\u6280\u672f\u6307\u5bfc\uff0c\u6b22\u8fce\u8054\u7cfb\u6211\uff0c\u4ec5\u9700\u652f\u4ed8\u5de5\u65f6\u8d39<\/p>\n\n\n\n<p>Twitter: <a href=\"https:\/\/x.com\/fdmove\">Dasmz<\/a><\/p>\n\n\n\n<p>Youtube: <a href=\"https:\/\/www.youtube.com\/@DasmzStudio\" data-type=\"URL\" data-id=\"https:\/\/www.youtube.com\/@DasmzStudio\">@DasmzStudio<\/a><\/p>\n\n\n\n<p>Telegram: <a href=\"https:\/\/t.me\/fdmove\" data-type=\"URL\" data-id=\"https:\/\/t.me\/fdmove\">@Dasmz<\/a><\/p>\n\n\n<div class=\"wp-block-image is-style-default\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"574\" height=\"446\" src=\"https:\/\/dasmz.com\/wp-content\/uploads\/2020\/12\/DONATE.jpg\" alt=\"Donate\" class=\"wp-image-18\"\/><figcaption class=\"wp-element-caption\">\u4e91\u4e5e\u8ba8<\/figcaption><\/figure><\/div>","protected":false},"excerpt":{"rendered":"<p>\u524d\u7f00\u3001\u6587\u6863\u4fee\u6539\u8bb0\u5f55 20250909 \u521d\u59cb\u5316\u7f16\u8f91\u6b64\u6587\u7ae0\uff0c\u5b8c\u7a3f 20250911 \u66f4\u65b0\u5185\u5bb9 \u7ae0\u82821\u3001\u9700\u6c42\u63cf\u8ff0 \u4e00 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[186],"_links":{"self":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/4831"}],"collection":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4831"}],"version-history":[{"count":7,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/4831\/revisions"}],"predecessor-version":[{"id":4842,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/4831\/revisions\/4842"}],"wp:attachment":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}