{"id":294178,"date":"2024-11-06T12:06:36","date_gmt":"2024-11-06T04:06:36","guid":{"rendered":"https:\/\/lrxjmw.cn\/jjuxtznxkqda.html"},"modified":"2024-11-06T12:06:36","modified_gmt":"2024-11-06T04:06:36","slug":"jjuxtznxkqda","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/jjuxtznxkqda.html","title":{"rendered":"\u89e3\u51b3 Ubuntu \u7cfb\u7edf\u4e2d Nvidia 3090 \u663e\u5361\u9a71\u52a8\u5b89\u88c5\u95ee\u9898\u7684\u5173\u952e\u5751\u603b\u7ed3"},"content":{"rendered":"

\u4e8b\u60c5\u539f\u59d4\uff1a<\/p>\n

\u4e70\u4e86\u4e00\u57573090\u7684\u4e3b\u677fubuntu nvidia\u663e\u5361\u9a71\u52a8\u5b89\u88c5<\/strong>\uff0c\u5e03\u7f72\u5728\u670d\u52a1\u5668\u4e0a\uff0c\u5728Ubuntu\u4e0a\u9762\u6b7b\u6d3b\u88c5\u4e0d\u4e86\u9a71\u52a8\uff0c\u4e4b\u524d\u4ee5\u4e3a\u662f\u4e70\u5230\u5783\u573e\u4e8c\u624b\u4e3b\u677f\u4e86\u3002\u540e\u6765\u7528\u76f4\u901a\u7684windows\u5b89\u88c5\u9a71\u52a8\uff0c\u5f88\u5feb\u5c31\u53ef\u4ee5\u4f7f\u7528\uff0c\u6240\u4ee5\uff0c\u8fd9\u4e2a\u7ed3\u679c\u662f\u6253\u8138\u4e86\u81ea\u5df1\u539f\u6765\u7684\u731c\u60f3\u2014\u2014\u8bf4\u660e\u4e0d\u662f\u4e3b\u677f\u672c\u8eab\u95ee\u9898\uff0c\u8fd8\u662f\u81ea\u5df1\u5728Ubuntu\u4e0a\u5b89\u88c5\u9a71\u52a8\u4e0d\u5bf9\u3002\u7ecf\u8fc7\u4e00\u7cfb\u5217\u6392\u67e5\uff0c\u603b\u7b97\u641e\u5b9a\u4e86\uff0c\u8fd9\u513f\u603b\u7ed3\u4e86\u4e00\u4e9b\u5173\u952e\u7684\u5751ubuntu nvidia\u663e\u5361\u9a71\u52a8\u5b89\u88c5<\/strong>\uff0c\u4f5c\u4e3a\u8bb0\u5f55\u3002<\/p>\n

\u672c\u6587\u7f16\u64b0\u6240\u5728\u7684\u73af\u5883\uff1a<\/p>\n

ESXI\u7248\u672c\uff1a8.0<\/p>\n

\u4e3b\u677f\u673a\u578b\uff1aNvidia3090\uff0824GB\u7248\u672c\uff09<\/p>\n

\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\uff1aUbuntu22.04<\/p>\n

\u5907\u6ce8\uff1a\u867d\u7136ESXI\u7248\u672c\u4f7f\u75287.0\u7cfb\u5217\u7684\u4e5f\u5dee\u4e0d\u591a\u7684\u64cd\u4f5c\uff0c\u53ea\u662f\u754c\u9762\u622a\u56fe\u53ef\u80fd\u6709\u6240\u4e0d\u540c\uff0c\u81f3\u4e8e\u64cd\u4f5c\u7cfb\u7edf\uff0cubuntu20.04\u548c22.04\u90fd\u5dee\u4e0d\u591a\uff0c\u6211\u90fd\u8bd5\u8fc7linux\u5b89\u88c5\u6559\u7a0b\uff0c\u4e5f\u662f\u4e00\u6837\u7684\u64cd\u4f5c\u6b65\u9aa4\uff0c\u90fd\u53ef\u4ee5\u5b89\u88c5\u6210\u529f\u7684\u3002<\/p>\n

\u5173\u952e\u95ee\u98981\uff1a\u5173\u4e8eESXI\u7684\u76f4\u901a\u8bbe\u7f6e<\/p>\n

\u8fd9\u513f\u6211\u4eec\u4f7f\u7528\u7684\u662fESXI8.0\u7248\u672c\uff0c\u76f4\u901a\u8bbe\u7f6e\u987b\u8981\u5355\u72ec\u5728\u3010\u5bfc\u822a\u5668\u3011-\u3010\u4e3b\u673a\u3011-\u3010\u7ba1\u7406\u3011-\u3010\u786c\u4ef6\u3011-\u3010PCI\u8bbe\u5907\u3011\u8fd9\u91cc\u505a\u5207\u6362\uff0c\u62c9\u5230\u4e0b\u8fb9\u627e\u5230\u8fd9\u4e2a\u4e3b\u677f\u786c\u4ef6\uff0c\u987b\u8981\u201c\u5207\u6362\u76f4\u901a\u201d<\/p>\n

\u663e\u5361\u9a71\u52a8\u5b89\u88c5\u9ed1\u5c4f\u540e\u4e00\u76f4\u4e0d\u4eae_ubuntu nvidia\u663e\u5361\u9a71\u52a8\u5b89\u88c5_\u663e\u5361\u9a71\u52a8\u5b89\u88c5\u6559\u7a0b<\/p>\n

\u663e\u5361\u9a71\u52a8\u5b89\u88c5\u9ed1\u5c4f\u540e\u4e00\u76f4\u4e0d\u4eae_\u663e\u5361\u9a71\u52a8\u5b89\u88c5\u6559\u7a0b_ubuntu nvidia\u663e\u5361\u9a71\u52a8\u5b89\u88c5<\/p>\n

ubuntu nvidia\u663e\u5361\u9a71\u52a8\u5b89\u88c5_\u663e\u5361\u9a71\u52a8\u5b89\u88c5\u9ed1\u5c4f\u540e\u4e00\u76f4\u4e0d\u4eae_\u663e\u5361\u9a71\u52a8\u5b89\u88c5\u6559\u7a0b<\/p>\n

\u5173\u952e\u95ee\u98982\uff1a\u865a\u62df\u673a\u7684\u8bbe\u7f6e\uff0c\u4ee5\u53ca\u76f8\u5173\u7684\u53c2\u6570\u8bbe\u7f6e<\/p>\n

\uff081\uff09\u865a\u62df\u673a\u8bbe\u7f6e\uff0c\u987b\u8981\u5355\u72ec\u4e3a\u8fd9\u53f0\u865a\u62df\u673a\u6dfb\u52a0PCI\u8bbe\u5907\u2014\u2014\u5373\u6dfb\u52a0\u76f4\u901a\u7684\u4e3b\u677f<\/p>\n

\u663e\u5361\u9a71\u52a8\u5b89\u88c5\u9ed1\u5c4f\u540e\u4e00\u76f4\u4e0d\u4eae_ubuntu nvidia\u663e\u5361\u9a71\u52a8\u5b89\u88c5_\u663e\u5361\u9a71\u52a8\u5b89\u88c5\u6559\u7a0b<\/p>\n

\uff082\uff09\u3010\u865a\u62df\u673a\u9009\u9879\u3011-\u3010\u5f15\u5bfc\u9009\u9879\u3011\uff0c\u8fd9\u513f\u5fc5\u987b\u8bbe\u7f6e\u4e3a\u4e0d\u542f\u7528UEFI\u5b89\u5168\u5f15\u5bfc\uff0c\u628a\u52fe\u53bb\u9664\u3002\u6216\u5219\u5e72\u8106\u76f4\u63a5\u9009\u201cBIOS\u201d\uff0c\u5426\u5219\u9a71\u52a8\u7a0b\u5e8f\u53ef\u80fd\u56e0\u4e3a\u5b89\u5168\u4fdd\u62a4\u673a\u5236\u5f15\u8d77\u5b89\u88c5\u5931\u8d25\uff08\u8fd9\u4e2a\u4e3b\u8981\u662f\u4e3a\u4e86\u4fdd\u62a4\u5185\u6838\u5b89\u5168\u7684\u8bbe\u7f6e\uff0c\u8fd9\u513f\u5fc5\u987b\u53bb\u9664\uff09<\/p>\n

ubuntu nvidia\u663e\u5361\u9a71\u52a8\u5b89\u88c5_\u663e\u5361\u9a71\u52a8\u5b89\u88c5\u9ed1\u5c4f\u540e\u4e00\u76f4\u4e0d\u4eae_\u663e\u5361\u9a71\u52a8\u5b89\u88c5\u6559\u7a0b<\/p>\n

\u5728ubuntu\u4e0a\u9762\uff0c\u53ef\u4ee5\u7528\u8fd9\u4e2a\u547d\u4ee4<\/a>\u786e\u8ba4\u4e00\u4e0b\uff0c\u4f60\u5f53\u524d\u662f\u5426\u662f\u5185\u6838\u4fdd\u62a4\u72b6\u6001\uff0c\u5018\u82e5\u662fenabled\uff0c\u5219\u662f\uff0c\u8fd9\u4e9b\u72b6\u6001\u53ef\u80fd\u9020\u6210\u9a71\u52a8\u7a0b\u5e8f\u5b89\u88c5\u4e0d\u6210\u529f\uff1a<\/p>\n

\u663e\u5361\u9a71\u52a8\u5b89\u88c5\u6559\u7a0b_ubuntu nvidia\u663e\u5361\u9a71\u52a8\u5b89\u88c5_\u663e\u5361\u9a71\u52a8\u5b89\u88c5\u9ed1\u5c4f\u540e\u4e00\u76f4\u4e0d\u4eae<\/p>\n

\n

mokutil --sb-state<\/code><\/pre>\n<\/p>\n

\u5047\u5982\u662f\u663e\u793a\uff1aSecureBootenabled\uff0c\u8fd9\u4e48\u8fd9\u4e9b\u6709\u53ef\u80fd\u662f\u4e0d\u884c\u7684\uff1b<\/p>\n

\u5047\u5982\u663e\u793a\uff1aSecureBootdisabled\uff0c\u8fd9\u4e48\u8fd9\u4e9b\u53ef\u4ee5\uff1b<\/p>\n

\uff083\uff09\u3010\u865a\u62df\u673a\u9009\u9879\u3011-\u3010\u9ad8\u7ea7\u3011-\u3010\u914d\u7f6e\u53c2\u6570\u3011\uff0c\u8fd9\u513f\u5fc5\u987b\u6dfb\u52a0\u5982\u4e0b\u53c2\u6570\uff1a<\/p>\n

hypervisor.cpuid.v0False<\/p>\n

pciPassthru.use64bitMMIOTrue<\/p>\n

pciPassthru.64bitMMIOSizeGB32\uff08\u5355\u5f20\u4e3b\u677f\uff0c\u503c\u4e3a32\uff1b\u5047\u5982\u662f\u591a\u5f20\u4e3b\u677f\uff0c\u8bbe\u7f6e\u503c\u4e3a64\u3002\uff09<\/p>\n

ubuntu nvidia\u663e\u5361\u9a71\u52a8\u5b89\u88c5_\u663e\u5361\u9a71\u52a8\u5b89\u88c5\u9ed1\u5c4f\u540e\u4e00\u76f4\u4e0d\u4eae_\u663e\u5361\u9a71\u52a8\u5b89\u88c5\u6559\u7a0b<\/p>\n

ubuntu nvidia\u663e\u5361\u9a71\u52a8\u5b89\u88c5_\u663e\u5361\u9a71\u52a8\u5b89\u88c5\u9ed1\u5c4f\u540e\u4e00\u76f4\u4e0d\u4eae_\u663e\u5361\u9a71\u52a8\u5b89\u88c5\u6559\u7a0b<\/p>\n

\u5173\u952e\u95ee\u98983\uff1aubuntu\u5c4f\u853dnouveau\uff0c\u4ee5\u53ca\u9a71\u52a8\u5b89\u88c5\u76f8\u5173\u7684\u4e00\u4e9b\u64cd\u4f5c<\/p>\n

\uff081\uff09\u7f16\u8f91blacklist.conf\u6587\u4ef6\uff1a<\/p>\n

\n

sudo vim \/etc\/modprobe.d\/blacklist.conf\n<\/code><\/pre>\n<\/p>\n

\u672b\u5c3e\u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n

blacklistnouveau<\/p>\n

optionsnouveaumodeset=0<\/p>\n

\uff082\uff09\u7f16\u8f91nvidia.conf\u6587\u4ef6<\/p>\n

\n

sudo vim \/etc\/modprobe.d\/nvidia.conf\n<\/code><\/pre>\n<\/p>\n

\u663e\u5361\u9a71\u52a8\u5b89\u88c5\u9ed1\u5c4f\u540e\u4e00\u76f4\u4e0d\u4eae_ubuntu nvidia\u663e\u5361\u9a71\u52a8\u5b89\u88c5_\u663e\u5361\u9a71\u52a8\u5b89\u88c5\u6559\u7a0b<\/p>\n

\u672b\u5c3e\u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n

optionsnvidiaNVreg_OpenRmEnableUnsupportedGpus=1<\/p>\n

\uff083\uff09\u66f4\u65b0\u4ee5\u4e0a\u914d\u7f6e\u751f\u6548<\/p>\n

\n

sudo update-initramfs -u\n<\/code><\/pre>\n<\/p>\n

\n

sudo reboot\n<\/code><\/pre>\n<\/p>\n

\uff084\uff09\u5047\u5982\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6ca1\u6709\u4efb\u4f55\u8f93\u51fa\uff0c\u8fd9\u4e48\u5c31\u4ee3\u8868\u6210\u529f\u5c4f\u853d\u4e86nouveau<\/p>\n

\n

lsmod |grep nouveau\n<\/code><\/pre>\n<\/p>\n

\uff085\uff09\u518d\u5b89\u88c5\u9a71\u52a8\u5c31\u7b80\u5355\u4e86\uff0c\u53ef\u4ee5\u4ece\u5b98\u7f51\u4e0b\u8f7d\u5bf9\u5e94\u7684\u9a71\u52a8\u7248\u672c\uff0c\u7136\u540e\u4f20\u5230Ubuntu\u524d\u9762\u6765\uff0c\u6267\u884c\u5b89\u88c5\u547d\u4ee4\u5373\u53ef\uff08\u627e\u9a71\u52a8\u548c\u4e0a\u4f20\u6587\u4ef6\u7684\u6b65\u9aa4\u5c31\u4e0d\u8d58\u8a00\u4e86\uff09:<\/p>\n

ubuntu nvidia\u663e\u5361\u9a71\u52a8\u5b89\u88c5_\u663e\u5361\u9a71\u52a8\u5b89\u88c5\u9ed1\u5c4f\u540e\u4e00\u76f4\u4e0d\u4eae_\u663e\u5361\u9a71\u52a8\u5b89\u88c5\u6559\u7a0b<\/p>\n

\n

sudo apt install build-essential pkg-config libglvnd-dev\nsudo chmod +x NVIDIA-Linux-x86_64-550.78.run\nsudo .\/NVIDIA-Linux-x86_64-550.78.run  -no-x-check -no-nouveau-check -no-opengl-files -m=kernel-open\n<\/code><\/pre>\n<\/p>\n

\u5907\u6ce8\uff1a\u5047\u5982\u4e4b\u524d\u5b89\u88c5\u8fc7\uff0c\u5c31\u5148\u5378\u8f7d\u539f\u5148\u7684\u9a71\u52a8redhat linux\u4e0b\u8f7d\uff0c\u91cd\u542f\u673a\u5668\uff0c\u518d\u91cd\u65b0\u5b89\u88c5\u4e00\u6b21\u5c31\u884c\uff0c\u5378\u8f7d\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n

\n

sudo nvidia-uninstall\nsudo apt purge -y '^nvidia-*' '^libnvidia-*'\nsudo rm -r \/var\/lib\/dkms\/nvidia\nsudo apt -y autoremove\nsudo update-initramfs -c -k uname -r\nsudo reboot\n<\/code><\/pre>\n<\/p>\n

\u5047\u5982\u5b89\u88c5\u6210\u529f\uff0c\u5c31\u53ef\u4ee5\u770b\u89c1\u719f\u6089\u7684\u4fe1\u606f\u590d\u5370\u754c\u9762\u4e86\uff0c\u4f7f\u7528nvidia-smi\u547d\u4ee4\u67e5\u770b\uff1a<\/p>\n

\n

nvidia-smi<\/code><\/pre>\n<\/p>\n

\u5927\u529f\u544a\u6210\uff01\uff01\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

8.0\u7248\u672c\uff0c\u76f4\u901a\u8bbe\u7f6e\u9700\u8981\u5355\u72ec\u5728\u3010\u5bfc\u822a\u5668\u3011-\u3010\u4e3b\u673a\u3011-\u3010\u7ba1\u7406\u3011-\u3010\u786c\u4ef6\u3011-\u3010PCI\u8bbe\u5907\u3011\u8fd9\u91cc\u505a\u5207\u6362\uff0c\u62c9\u5230\u4e0b\u9762\u627e\u5230\u8fd9\u4e2a\u663e\u5361\u786c\u4ef6\uff0c\u9700\u8981\u201c\u5207\u6362\u76f4\u901a\u201d\u5173\u952e\u95ee\u98983\uff1aubuntu\u5c4f\u853dnouveau\uff0c\u4ee5\u53ca\u9a71\u52a8\u5b89\u88c5\u76f8\u5173\u7684\u4e00\u4e9b\u64cd\u4f5c<\/p>\n","protected":false},"author":1,"featured_media":294179,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[4089],"class_list":["post-294178","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-ESXI-8-Ubuntu22-enabled-disabled"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/294178","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=294178"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/294178\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/294179"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=294178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=294178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=294178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}