{"id":91,"date":"2023-12-28T10:49:30","date_gmt":"2023-12-28T02:49:30","guid":{"rendered":"https:\/\/bt.079300.xyz\/?p=91"},"modified":"2025-05-04T10:42:36","modified_gmt":"2025-05-04T02:42:36","slug":"proxmox-ve-%e8%ae%be%e7%bd%ae%e7%a1%ac%e7%9b%98%e7%9b%b4%e9%80%9a","status":"publish","type":"post","link":"https:\/\/bt.079300.xyz\/index.php\/2023\/12\/28\/proxmox-ve-%e8%ae%be%e7%bd%ae%e7%a1%ac%e7%9b%98%e7%9b%b4%e9%80%9a\/","title":{"rendered":"Proxmox VE \u8bbe\u7f6e\u786c\u76d8\u76f4\u901a\u548c\u6302\u8f7dimg\u955c\u50cf"},"content":{"rendered":"\n<p>PVE\u4e0b\u6302\u5728IMG\u955c\u50cf\u6587\u4ef6\u5230\u865a\u62df\u673a<\/p>\n\n\n\n<p>qm importdisk 102 \/var\/lib\/vz\/template\/iso\/openWRT.img local-lvm<\/p>\n\n\n\n<p>\u901a\u8fc7\u547d\u4ee4\u6620\u5c04\u76f4\u901a\u5355\u5757\u786c\u76d8<br>\u8fdb\u5165Proxmox VE\u7cfb\u7edf\u7684SSH\uff0c\u6216\u76f4\u63a5\u8fdb\u5165PVE\u7ba1\u7406\u7f51\u9875Shell<\/p>\n\n\n\n<p>\u67e5\u770b\u78c1\u76d8ID<\/p>\n\n\n\n<p>ls -l \/dev\/disk\/by-id\/<\/p>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<p>PVE\u7cfb\u7edf\u67e5\u770b\u78c1\u76d8\u8be6\u7ec6\u4fe1\u606f\u53ca\u786e\u5b9a\u78c1\u76d8\u4fe1\u606f<\/p>\n\n\n\n<p>\u6ce8\uff1aata\u3001mmc\u7b49\u2026\u8868\u793a\u63a5\u53e3\u65b9\u5f0f\uff0c\u901a\u5e38\u6709ATA\u3001SATA\u3001SCS\u3001NVME\u3001eMMC\u548cSASI\u7b49\u7c7b\u578b\u3002IDE\u548cSATA\u63a5\u53e3\u4e00\u822c\u4e3a\u201cata\u201d\uff0cSCSI\u53caSAS\u63a5\u53e3\u4e00\u822c\u4e3a\u201dscsi\u201c\u3002<\/p>\n\n\n\n<p>\u5bfc\u5165\u865a\u62df\u673a<\/p>\n\n\n\n<p>qm set \u2013[n] \/dev\/disk\/by-id\/-$brand-$model_$serial_number<\/p>\n\n\n\n<p>: \u4e3a\u521b\u5efa\u865a\u62df\u673a\u65f6\u6307\u5b9a\u7684VM ID\u3002<\/p>\n\n\n\n<p>[n]\uff1a \u5bfc\u5165\u540e\u7684\u78c1\u76d8\u7684\u603b\u7ebf\u7c7b\u578b\u53ca\u5176\u7f16\u53f7\uff0c\u603b\u7ebf\u7c7b\u578b\u53ef\u4ee5\u9009\u62e9IDE\u3001SATA\u3001VirtIO Block\u548cSCSI\u7c7b\u578b\uff0c\u7f16\u53f7\u4ece0\u5f00\u59cb\uff0c\u6700\u5927\u503c\u6839\u636e\u603b\u7ebf\u63a5\u53e3\u7c7b\u578b\u6709\u6240\u4e0d\u540c\uff0cIDE\u4e3a3\uff0cSATA\u4e3a5\uff0cVirTIO Block\u4e3a15\uff0cSCSI\u4e3a13\u3002<\/p>\n\n\n\n<p>\/dev\/disk\/by-id\/-brand-brand\u2212model_$serial_number \uff1a \u4e3a\u78c1\u76d8ID\u7684\u5177\u4f53\u8def\u5f84\u548c\u540d\u79f0\u3002<\/p>\n\n\n\n<p>\u6309\u7167\u6211\u786c\u76d8\u7684\u53c2\u6570\u4e3e\u4f8b\uff1a<\/p>\n\n\n\n<p>\u5982\u4e0a\u65b9\u7684\u786c\u76d8\u6570\u636e ata-ST4000VX000-2AG166_ZGY163KG \u4e3a\u4f8b\uff0c\u5c06\u6b64\u786c\u76d8\u76f4\u901a\u7ed9VM ID\u7f16\u53f7\u4e3a102\u7684\u865a\u62df\u673a\u4e0b\uff0c\u603b\u7ebf\u7c7b\u578b\u63a5\u53e3\u4e3asata2\uff08\u8bf7\u6839\u636ePVE\u865a\u62df\u673a\u4e0b\u7684\u603b\u7ebf\u7f16\u53f7\u8bbe\u7f6e\uff09<\/p>\n\n\n\n<p>qm set 102 -sata2 \/dev\/disk\/by-id\/ata-ST4000VX000-2AG166_ZGY163KG<\/p>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<p>\u663e\u793a\u8fd4\u56de\u4fe1\u606f<\/p>\n\n\n\n<p>update VM 102: -sata2 \/dev\/disk\/by-id\/ata-ST4000VX000-2AG166_ZGY163KG<\/p>\n\n\n\n<p>\u4e3a\u76f4\u901a\u6210\u529f\u3002<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PVE\u4e0b\u6302\u5728IMG\u955c\u50cf\u6587\u4ef6\u5230\u865a\u62df\u673a qm importdisk 102 \/var\/lib\/vz\/templat&hellip; <a class=\"more-link\" href=\"https:\/\/bt.079300.xyz\/index.php\/2023\/12\/28\/proxmox-ve-%e8%ae%be%e7%bd%ae%e7%a1%ac%e7%9b%98%e7%9b%b4%e9%80%9a\/\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">Proxmox VE \u8bbe\u7f6e\u786c\u76d8\u76f4\u901a\u548c\u6302\u8f7dimg\u955c\u50cf<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-91","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"_links":{"self":[{"href":"https:\/\/bt.079300.xyz\/index.php\/wp-json\/wp\/v2\/posts\/91","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bt.079300.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bt.079300.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bt.079300.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bt.079300.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=91"}],"version-history":[{"count":4,"href":"https:\/\/bt.079300.xyz\/index.php\/wp-json\/wp\/v2\/posts\/91\/revisions"}],"predecessor-version":[{"id":132,"href":"https:\/\/bt.079300.xyz\/index.php\/wp-json\/wp\/v2\/posts\/91\/revisions\/132"}],"wp:attachment":[{"href":"https:\/\/bt.079300.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=91"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bt.079300.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=91"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bt.079300.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}