{"id":11462,"date":"2023-04-02T11:39:43","date_gmt":"2023-04-02T18:39:43","guid":{"rendered":"https:\/\/www.xh86.me\/?p=11462"},"modified":"2023-04-02T11:39:43","modified_gmt":"2023-04-02T18:39:43","slug":"proxmox-ve-%e4%b8%ba%e8%99%9a%e6%8b%9f%e6%9c%ba%e5%bc%80%e5%90%af%e8%b6%85%e7%ba%bf%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.xh86.me\/?p=11462","title":{"rendered":"Proxmox VE \u4e3a\u865a\u62df\u673a\u5f00\u542f\u8d85\u7ebf\u7a0b"},"content":{"rendered":"<p>PVE\u521b\u5efaVM\u7684\u65f6\u5019\uff0c\u65e0\u6cd5\u5728\u9762\u677f\u4e0a\u521b\u5efa\u8d85\u7ebf\u7a0b\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u4f60\u60f3\u521b\u5efa\u4e00\u4e2a2c4t\u7684CPU\uff0c\u4f46\u662f\u901a\u8fc7PVE\u9762\u677f\uff0c\u4f60\u53ea\u80fd\u521b\u5efa\u4e00\u4e2a4\u6838\u7684\u865a\u62df\u673a\u3002\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u8fd9\u6837\u4f1a\u4ea7\u751f\u6027\u80fd\u95ee\u9898\u3002\u4e0d\u9002\u5408\u7cbe\u5bc6\u73af\u5883\u3002<\/p>\n<p>\u8fd9\u91cc\u7ed9\u51fa\u4e00\u4e2a\u65b9\u6cd5\uff0c\u4f7f\u865a\u62df\u673a\u5177\u6709\u8d85\u7ebf\u7a0b\u5c5e\u6027\u3002\u5728shell\u4e2d\u6267\u884c\u547d\u4ee4<\/p>\n<p>Intel\u4f7f\u7528\u4e0b\u9762\u547d\u4ee4<\/p>\n<p>qm set &lt;vmid&gt;\u00a0-args &#8220;-smp 4,cores=2,threads=2&#8221;<\/p>\n<p>amd\u4f7f\u7528\u4e0b\u9762\u547d\u4ee4\u9664\u4e86\u4e0a\u9762\u7684\u547d\u4ee4\uff0c\u8fd8\u5f97\u518d\u52a0\u4e00\u6761<\/p>\n<ol>\n<li>qm set &lt;vmid&gt; -args &#8220;-smp 4,cores=2,threads=2,sockets=1,maxcpus=4 -cpu host,topoext=on&#8221;<\/li>\n<\/ol>\n<p>\u8fd9\u91cc\u5c06vmid\u66ff\u6362\u6210\u865a\u62df\u673a\u7684id\uff0c\u8fd9\u91cc\u76844\u662f\u603bvcpu\u6570\uff0ccores\u662f\u6838\u5fc3\u6570\uff0cthreads\u662f\u5355\u6838\u5fc3\u7684\u7ebf\u7a0b\u6570\u3002<\/p>\n<p>\u8fd9\u6761\u547d\u4ee4\uff0c\u4f1a\u7ed9\u865a\u62df\u673a\u914d\u7f6e\u62102\u68384\u7ebf\u7a0b\u7684CPU\u3002<\/p>\n<p>\u5728\u865a\u62df\u673a\u4e2d\u8f93\u51fa\u5982\u4e0b<\/p>\n<ol>\n<li>Architecture: x86_64<\/li>\n<li>CPU op-mode(s): 32-bit, 64-bit<\/li>\n<li>Byte Order: Little Endian<\/li>\n<li>Address sizes: 40 bits physical, 48 bits virtual<\/li>\n<li>CPU(s): 4 \/\/\u603bcpu\u6570<\/li>\n<li>On-line CPU(s) list: 0-3<\/li>\n<li>Thread(s) per core: 2 \/\/\u5355\u6838\u5fc3\u4e2d\u7684\u7ebf\u7a0b\u6570<\/li>\n<li>Core(s) per socket: 2 \/\/\u4e00\u4e2a\u63d2\u69fd\u4e2d\u7684\u6838\u5fc3\u6570<\/li>\n<li>Socket(s): 1<\/li>\n<li>NUMA node(s): 1<\/li>\n<li>Vendor ID: GenuineIntel<\/li>\n<li>CPU family: 15<\/li>\n<li>Model: 6<\/li>\n<li>Model name: Common KVM processor<\/li>\n<\/ol>\n<p>\u6ce8\u610f\u8fd9\u91cc\u8981\u548c\u9762\u677f\u8bbe\u5b9a\u7684CPU\u603b\u6570\u5339\u914d<\/p>\n<p>\u5982\u6211\u8fd9\u91cc\u901a\u8fc7\u547d\u4ee4\u8bbe\u7f6e\u62102\u68384\u7ebf\u7a0b\u3002<\/p>\n<p>\u5728\u9762\u677f\u4e0a\u5c06\u865a\u62df\u673a\u6539\u62106\u6838\uff0c\u542f\u52a8\u5c31\u4f1a\u62a5\u9519\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1224\" height=\"775\" class=\"wp-image-11463\" src=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2023\/04\/unnamed-file-72.png\" alt=\"\u56fe\u5f62\u7528\u6237\u754c\u9762, \u6587\u672c, \u5e94\u7528\u7a0b\u5e8f\n\n\u63cf\u8ff0\u5df2\u81ea\u52a8\u751f\u6210\" srcset=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2023\/04\/unnamed-file-72.png 1224w, https:\/\/www.xh86.me\/wp-content\/uploads\/2023\/04\/unnamed-file-72-300x190.png 300w, https:\/\/www.xh86.me\/wp-content\/uploads\/2023\/04\/unnamed-file-72-1024x648.png 1024w, https:\/\/www.xh86.me\/wp-content\/uploads\/2023\/04\/unnamed-file-72-768x486.png 768w\" sizes=\"auto, (max-width: 1224px) 100vw, 1224px\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PVE\u521b\u5efaVM\u7684\u65f6\u5019\uff0c\u65e0\u6cd5\u5728\u9762\u677f\u4e0a\u521b\u5efa\u8d85\u7ebf\u7a0b\u3002 \u4f8b\u5982\uff0c\u4f60\u60f3\u521b\u5efa\u4e00\u4e2a2c4t\u7684CPU\uff0c\u4f46\u662f\u901a\u8fc7PVE\u9762\u677f\uff0c\u4f60\u53ea\u80fd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,4],"tags":[],"class_list":["post-11462","post","type-post","status-publish","format-standard","hentry","category-proxmox","category-virtual"],"_links":{"self":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/11462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11462"}],"version-history":[{"count":1,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/11462\/revisions"}],"predecessor-version":[{"id":11464,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/11462\/revisions\/11464"}],"wp:attachment":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}