{"id":166673,"date":"2019-12-27T13:00:52","date_gmt":"2019-12-27T05:00:52","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=166673"},"modified":"2019-12-17T10:55:08","modified_gmt":"2019-12-17T02:55:08","slug":"vmware-esxi-nvidia","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/vmware-esxi-nvidia.html","title":{"rendered":"\u5c0f\u767d\u4e5f\u80fd\u61c2\u7684VMware ESXi\u5b89\u88c5NVIDIA GPU\u663e\u5361\u786c\u4ef6\u9a71\u52a8"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nESXi\u4e13\u4e3a\u8fd0\u884c\u865a\u62df\u673a\u3001\u6700\u5927\u9650\u5ea6\u964d\u4f4e\u914d\u7f6e\u8981\u6c42\u548c\u7b80\u5316\u90e8\u7f72\u800c\u8bbe\u8ba1\u3002\u53ea\u9700\u51e0\u5206\u949f\u65f6\u95f4\uff0c\u5ba2\u6237\u4fbf\u53ef\u5b8c\u6210\u4ece\u5b89\u88c5\u5230\u8fd0\u884c\u865a\u62df\u673a\u7684\u5168\u8fc7\u7a0b\uff0c\u7279\u522b\u662f\u5728\u4e0b\u8f7d\u5e76\u5b89\u88c5\u9884\u914d\u7f6e\u865a\u62df\u8bbe\u5907\u7684\u65f6\u5019\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u4e3b\u673a\u7cfb\u7edf\u7ef4\u62a4\u6a21\u5f0f\u8bbe\u7f6e<\/strong><\/span><\/div>\n
\r\nesxcli system maintenanceMode set --enable true\r\n<\/pre>\n
\u5c06GPU\u8bbe\u5907\u8bbe\u7f6e\u4e3avGPU\u6a21\u5f0f<\/strong><\/span><\/div>\n
\r\nesxcli graphics host set --default-type SharedPassthru\r\n<\/pre>\n
\u8fd4\u56deDefault Graphics Type: SharedPassthru<\/strong><\/span><\/div>\n
\r\nesxcli graphics host get\r\n<\/pre>\n

\"\"<\/p>\n

\u5b89\u88c5VIB<\/strong><\/span><\/div>\n

\u5b89\u88c5\u663e\u5361\u9a71\u52a8<\/p>\n

\r\nesxcli software vib install -v \/tmp\/NVIDIA\/NVIDIA-VMware_ESXi_6.5_Host_Driver_390.42-1OEM.670.0.0.7535516.vib\r\n<\/pre>\n

\"\"<\/p>\n

\u66f4\u65b0\u663e\u5361\u9a71\u52a8<\/p>\n

\r\nesxcli software vib update -v \/tmp\/NVIDIA\/NVIDIA-VMware_ESXi_6.5_Host_Driver_390.42-1OEM.670.0.0.7535516.vib\r\n<\/pre>\n
ESXi\u4e3b\u673a\u670d\u52a1\u5668\u9000\u51fa\u7ef4\u62a4\u6a21\u5f0f<\/strong><\/span><\/div>\n
\r\nesxcli system maintenanceMode set --enable false\r\n<\/pre>\n

\u5b89\u88c5\u5728ESXi\u4e3b\u673a\u4e0a\u7684VIB\uff0c\u5e76\u786e\u4fdd\u6b63\u786e\u5b8c\u6210\u4e86NVIDIA VIB<\/p>\n

\r\nesxcli software vib list | grep -i NVIDIA\r\n<\/pre>\n

\"\"<\/p>\n

\u9a71\u52a8\u68c0\u67e5<\/strong><\/span><\/div>\n
\r\ngpuvm  vGPU\r\n<\/pre>\n

\"\"<\/p>\n

GPU\u5361\u548cESXi\u662f\u5426\u53ef\u4ee5\u6b63\u5e38\u5de5\u4f5c<\/strong><\/span><\/div>\n
nvidia-smi<\/pre>\n

\"\"<\/p>\n

\u68c0\u67e5\u662f\u5426\u6709vgpu\u8d44\u6e90<\/strong><\/span><\/div>\n
\r\nnvidia-smi vgpu \u2013s\r\n<\/pre>\n

\u67e5\u770b\u7b2c\u4e09\u5757\u5361\u7684\u8fd0\u884c\u53c2\u6570<\/p>\n

\r\nnvidia-smi -i 2 \u2013q\r\n<\/pre>\n

\u4f7f\u7528vGPU\u9700\u8981\u5173\u95edECC<\/p>\n

\r\nnvidia-smi -i 2 -e 0\r\nnvidia-smi -e 0\r\n<\/pre>\n

\"\"<\/p>\n

\u73b0\u5728\u68c0\u67e5\u662f\u5426\u5df2\u7981\u7528ECC\u6a21\u5f0f<\/strong><\/span><\/div>\n
\r\nnvidia-smi -q\r\n<\/pre>\n
\u8bbe\u7f6eGPU\u7684\u5de5\u4f5c\u6a21\u5f0f\uff0c\u9ed8\u8ba4VSGA<\/strong><\/span><\/div>\n
\r\nnvidia-smi -i 2 -vm 3\r\n<\/pre>\n
\u79fb\u9664 VIB<\/strong><\/span><\/div>\n
\r\nesxcli software vib remove --vibname=NVIDIA-vGPU-VMware_ESXi_6.0_Host_Driver\r\nesxcli software vib remove --vibname=NVIDIA-VMware_ESXi_6.7_Host_Driver\r\n<\/pre>\n
\u6d4b\u8bd5\u96c6\u7fa4\u865a\u62df\u673a\u662f\u5426\u53ef\u4ee5\u6dfb\u52a0\u65b0PCI\u8bbe\u5907<\/strong><\/span><\/div>\n

\"\"<\/p>\n

\u6211\u4eec\u53ef\u4ee5\u4ece\u4e0a\u9762\u7684VM\u5217\u8868\u4e2d\u9009\u62e9\u4e00\u4e2a\u793a\u4f8bvGPU\u914d\u7f6e\u6587\u4ef6\uff1agrid_P100-8q\u3002\u6b64\u914d\u7f6e\u6587\u4ef6\u5141\u8bb8VM\u4f7f\u7528\u6700\u591a8GB\u7684\u7269\u7406GPU\u5185\u5b58\uff08\u603b\u8ba116GB\uff09\u3002\u56e0\u6b64\uff0c\u5177\u6709\u6b64\u914d\u7f6e\u6587\u4ef6\u7684\u4e3b\u673a\u670d\u52a1\u5668\u4e0a\u7684\u4e24\u4e2a\u5355\u72ec\u7684\u865a\u62df\u673a\u53ef\u4ee5\u5171\u4eab\u540c\u4e00\u7269\u7406GPU\u3002<\/p>\n

\u901a\u8fc7\u9009\u62e9\u5c06GPU\u7684\u5168\u90e8\u5185\u5b58\u5206\u914d\u7ed9VM\u7684vGPU\u914d\u7f6e\u6587\u4ef6\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u8be5GPU\u5b8c\u5168\u4e13\u7528\u4e8e\u8be5VM\uff0c\u4f8b\u5982\uff0c\u5bf9\u4e8e\u5177\u670916 GB\u5185\u5b58\u7684GPU\uff0c\u4f7f\u7528\u540d\u4e3a\u201c grid_p100-16q\u201d\u7684\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n

\u95ee\u9898\u5206\u6790<\/strong><\/span><\/div>\n

DELL\u670d\u52a1\u5668BIOS\u8bbe\u7f6eI\/O\u53c2\u6570<\/p>\n

ECC\u8bbe\u7f6e<\/p>\n

\u82f1\u4f1f\u8fbe\u663e\u5361\u9a71\u52a8\u7248\u672c\u4e0d\u5bf9<\/p>\n

\u89e3\u51b3\u529e\u6cd5<\/strong><\/span><\/div>\n

\u8bbe\u7f6eBIOS\u5185\u5b58\u6620\u5c04I\/O\u5e93\u8bbe\u7f6e\u4e3a512GB(\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4e3a56TB)<\/p>\n

\u5173\u95edECC<\/p>\n

\u66f4\u6362\u663e\u5361\u9a71\u52a8\u7248\u672c<\/p>\n","protected":false},"excerpt":{"rendered":"

esxcli system maintenanceMode set –enable true esxcli […]<\/p>\n","protected":false},"author":668,"featured_media":148247,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-166673","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/166673","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/668"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=166673"}],"version-history":[{"count":12,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/166673\/revisions"}],"predecessor-version":[{"id":167147,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/166673\/revisions\/167147"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/148247"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=166673"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=166673"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=166673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}