{"id":11298,"date":"2023-04-02T11:02:26","date_gmt":"2023-04-02T18:02:26","guid":{"rendered":"https:\/\/www.xh86.me\/?p=11298"},"modified":"2023-04-02T11:02:26","modified_gmt":"2023-04-02T18:02:26","slug":"%e5%9c%a8proxmox-ve-7-2-%e4%b8%ad%e5%bc%80%e5%90%afvgpu_unlock%ef%bc%8c%e5%ae%9e%e7%8e%b0%e6%98%be%e5%8d%a1%e8%99%9a%e6%8b%9f%e5%8c%96","status":"publish","type":"post","link":"https:\/\/www.xh86.me\/?p=11298","title":{"rendered":"\u5728Proxmox VE 7.2 \u4e2d\u5f00\u542fvGPU_unlock\uff0c\u5b9e\u73b0\u663e\u5361\u865a\u62df\u5316"},"content":{"rendered":"<p>\u5728Proxmox VE 7.2 \u4e2d\u5f00\u542fvGPU_unlock\uff0c\u5b9e\u73b0\u663e\u5361\u865a\u62df\u5316<\/p>\n<p><strong>\u4e00\uff1a\u53c2\u80037.1\u5b89\u88c5vGPU_unlock<\/strong><\/p>\n<p>https:\/\/foxi.buduanwang.vip\/virtualization\/1683.html\/<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u4e8c\uff1a \u914d\u7f6e\u8f6f\u4ef6\u6e90<\/strong><\/p>\n<ol>\n<li>rm \/etc\/apt\/sources.list<\/li>\n<li>rm \/etc\/apt\/sources.list.d\/*<\/li>\n<li>echo &#8220;deb https:\/\/mirrors.tuna.tsinghua.edu.cn\/debian\/ bullseye main contrib non-free&#8221;&gt;&gt;\/etc\/apt\/sources.list<\/li>\n<li>echo &#8220;deb https:\/\/mirrors.tuna.tsinghua.edu.cn\/debian\/ bullseye-updates main contrib non-free&#8221;&gt;&gt;\/etc\/apt\/sources.list<\/li>\n<li>echo &#8220;deb https:\/\/mirrors.tuna.tsinghua.edu.cn\/debian\/ bullseye-backports main contrib non-free&#8221;&gt;&gt;\/etc\/apt\/sources.list<\/li>\n<li>echo &#8220;deb https:\/\/mirrors.tuna.tsinghua.edu.cn\/debian-security bullseye-security main contrib non-free&#8221;&gt;&gt;\/etc\/apt\/sources.list<\/li>\n<li>echo &#8220;deb https:\/\/mirrors.tuna.tsinghua.edu.cn\/proxmox\/debian bullseye pve-no-subscription&#8221;&gt;&gt;\/etc\/apt\/sources.list<\/li>\n<\/ol>\n<p><strong>\u4e09\uff1a\u5b89\u88c5\u8f6f\u4ef6\u5305<\/strong><\/p>\n<ol>\n<li>apt update &amp;&amp; apt install dkms git build-essential pve-kernel-5.15 pve-headers-5.15 dkms cargo jq uuid-runtime -y<\/li>\n<\/ol>\n<p>\u5b89\u88c5mdevctl<\/p>\n<ol>\n<li>wget -P \/opt\/ http:\/\/ftp.br.debian.org\/debian\/pool\/main\/m\/mdevctl\/mdevctl_0.81-1_all.deb<\/li>\n<li>dpkg -i \/opt\/mdevctl_0.81-1_all.deb<\/li>\n<\/ol>\n<p><strong>\u56db\uff1a\u914d\u7f6e\u5185\u6838<\/strong><\/p>\n<ol>\n<li>echo vfio &gt;&gt; \/etc\/modules<\/li>\n<li>echo vfio_iommu_type1 &gt;&gt; \/etc\/modules<\/li>\n<li>echo vfio_pci &gt;&gt; \/etc\/modules<\/li>\n<li>echo vfio_virqfd &gt;&gt; \/etc\/modules<\/li>\n<li>echo &#8220;blacklist nouveau&#8221; &gt;&gt; \/etc\/modprobe.d\/blacklist.conf<\/li>\n<li>echo &#8220;options kvm ignore_msrs=1&#8221; &gt; \/etc\/modprobe.d\/kvm.conf<\/li>\n<li>update-initramfs -k all -u<\/li>\n<\/ol>\n<p><strong>\u4e94\uff1a\u914d\u7f6e\u5f15\u5bfc<\/strong><\/p>\n<ol>\n<li>#\u7f16\u8f91grub\uff0c\u8bf7\u4e0d\u8981\u76f2\u76ee\u6539\u3002\u6839\u636e\u81ea\u5df1\u7684\u73af\u5883\uff0c\u9009\u62e9\u8bbe\u7f6e<\/li>\n<li>nano \/etc\/default\/grub<\/li>\n<li>#\u5728\u91cc\u9762\u627e\u5230\uff1a<\/li>\n<li>GRUB_CMDLINE_LINUX_DEFAULT=&#8221;quiet&#8221;<\/li>\n<li>#\u7136\u540e\u4fee\u6539\u4e3a\uff1a<\/li>\n<li>GRUB_CMDLINE_LINUX_DEFAULT=&#8221;quiet intel_iommu=on iommu=pt&#8221;<\/li>\n<li>#\u5982\u679c\u662famd cpu\u8bf7\u6539\u4e3a\uff1a<\/li>\n<li>GRUB_CMDLINE_LINUX_DEFAULT=&#8221;quiet amd_iommu=on iommu=pt&#8221;<\/li>\n<li>#\u66f4\u65b0\u5f15\u5bfc<\/li>\n<li>update-grub<\/li>\n<\/ol>\n<p>\u91cd\u65b0\u542f\u52a8<\/p>\n<p><strong>\u516d\uff1a\u5b89\u88c5\u9a71\u52a8<\/strong><\/p>\n<p>\u4e0b\u8f7d\u9a71\u52a8\u6587\u4ef6<\/p>\n<ol>\n<li>wget https:\/\/mirrors.apqa.cn\/d\/vGPU\/vgpu_unlock\/drivers\/NVIDIA-Linux-x86_64-510.47.03-vgpu-kvm-custom.run -P \/opt<\/li>\n<\/ol>\n<p>\u5b89\u88c5\u9a71\u52a8<\/p>\n<ol>\n<li>sh -c \/opt\/NVIDIA-Linux-x86_64-510.47.03-vgpu-kvm-custom.run &#8211;dkms<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1196\" height=\"396\" class=\"wp-image-11299\" src=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2023\/04\/unnamed-file.png\" alt=\"\u7535\u8111\u8424\u5e55\u753b\u9762\n\n\u63cf\u8ff0\u5df2\u81ea\u52a8\u751f\u6210\" srcset=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2023\/04\/unnamed-file.png 1196w, https:\/\/www.xh86.me\/wp-content\/uploads\/2023\/04\/unnamed-file-300x99.png 300w, https:\/\/www.xh86.me\/wp-content\/uploads\/2023\/04\/unnamed-file-1024x339.png 1024w, https:\/\/www.xh86.me\/wp-content\/uploads\/2023\/04\/unnamed-file-768x254.png 768w\" sizes=\"auto, (max-width: 1196px) 100vw, 1196px\" \/><\/p>\n<p>\u5b89\u88c5vgpu_unlock<\/p>\n<ol>\n<li>cd \/opt &amp;&amp; git clone https:\/\/github.com\/mbilker\/vgpu_unlock-rs.git<\/li>\n<li>cd \/opt\/vgpu_unlock-rs<\/li>\n<li>cargo build &#8211;release<\/li>\n<li>mkdir \/etc\/systemd\/system\/{nvidia-vgpud.service.d,nvidia-vgpu-mgr.service.d}<\/li>\n<li>echo -e &#8220;[Service]\\nEnvironment=LD_PRELOAD=\/opt\/vgpu_unlock-rs\/target\/release\/libvgpu_unlock_rs.so&#8221; &gt; \/etc\/systemd\/system\/nvidia-vgpud.service.d\/vgpu_unlock.conf<\/li>\n<li>echo -e &#8220;[Service]\\nEnvironment=LD_PRELOAD=\/opt\/vgpu_unlock-rs\/target\/release\/libvgpu_unlock_rs.so&#8221; &gt; \/etc\/systemd\/system\/nvidia-vgpu-mgr.service.d\/vgpu_unlock.conf<\/li>\n<li>systemctl daemon-reload<\/li>\n<\/ol>\n<p>\u91cd\u542f\u4e3b\u673a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728Proxmox VE 7.2 \u4e2d\u5f00\u542fvGPU_unlock\uff0c\u5b9e\u73b0\u663e\u5361\u865a\u62df\u5316 \u4e00\uff1a\u53c2\u80037.1\u5b89\u88c5vGPU_un [&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-11298","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\/11298","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=11298"}],"version-history":[{"count":1,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/11298\/revisions"}],"predecessor-version":[{"id":11300,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/11298\/revisions\/11300"}],"wp:attachment":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}