From 9e3df0bdffcb884a86f9d38ac598fcc1418b7655 Mon Sep 17 00:00:00 2001 From: PolloLoco Date: Mon, 10 Jul 2023 20:52:37 +0200 Subject: [PATCH] Update guide to Proxmox VE 8.0 and vGPU 16.0 drivers --- 535.54.06.patch | Bin 0 -> 12144 bytes README.md | 36 +++++++++++++++++------------------- 2 files changed, 17 insertions(+), 19 deletions(-) create mode 100644 535.54.06.patch diff --git a/535.54.06.patch b/535.54.06.patch new file mode 100644 index 0000000000000000000000000000000000000000..2be08d760ab70a13f525c86562f38a4a59724bb8 GIT binary patch literal 12144 zcmeHN4{#ILncuZ#P>ho`X`1upNZB@~wE=@P5U?A#(IN>}K_(_4;Diujh+Uj;vCok( zxl0vxI`E%o(cph*lqip!41N5y6~Zd))QHt(#jL+iu!_08z27q_?6 zKiC*}RQ!5*;T`Mz_lONmEuwSTB8Rxyld+-MVyQwc#s?egaH-H57By|%*7!(W%VUKL7A%+!nad?sIGt6M3zv%v^edVI zg`&G-!{dCc#z6*!RY%<&w#R+S0AF2oDfsg>F@FV@e2nKfVJ^3_@*g-Z5Ea^P!E?on zcu>Z8q3xf?$H%?SQLpoyH<}P451_L_nCsyMJamjq^c$XQ7_#uLvo4oT_frPqgp;g@aT?IG{@$v80BeFF(PnH+m&KQ3%y zZ}c1{v!RIT*!a)C<%xQ|33GK%ioii2lE@k;28557fC$&edHl*o+Xc)(<^I^daxA?%Ix0kuV(z32IzvDM?uYTjNy5Rl60Ez!-6W}NN{IV+ zxXdB$-{T?@_n&YnCGHf+)-3FBzmG=;abLjYapHF4vXr<#qMel;?r}Vp5%+mX-QWI3!>JoqOV&0roB2k zE<~QggTE>zL=NLdQda}`8lT!GVkI(h-yx}OWw<5oO}JaJjoy6&-45KLd#e;WQi)sG z$0(GKrz$-0@jNssr^bo<;p88wk!U6vdU7ErM3=)F2HfYN1TMJ%_nmU%mJ%v|2-^;o z6swUEKLkp6XJT{4WRzoKpD;IsLEPrJ3%?V3uvIt5Z_3%;wF%8fxZ=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MdCS?U zdW+C{HjV^_y`R$+r~wJ>zKMJ6*QqnvJ)kA3Uf zAYXYck3LZ&WluIq?Jo5cF1YG+FBiqGI$hH@U00nh+p<@k?qAmFG7rf<=lNT9x?(28 z1iqmB{$m`ok}X=~M%sX~o_S`22*Hb-Qci!2(lKA~oH7%$$U3^ZfDg_T4z4OtPV*fz u^)_B><7wL(?eo>q)qGy?8W8d)hFNo-L2C;ZinKj3oX0xyjShRT@P7dj`d2*w literal 0 HcmV?d00001 diff --git a/README.md b/README.md index c47b4c5..49867fb 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/polloloco) -This document serves as a guide to install NVIDIA vGPU host drivers on the latest Proxmox VE version, at time of writing this its pve 7.4. +This document serves as a guide to install NVIDIA vGPU host drivers on the latest Proxmox VE version, at time of writing this its pve 8.0. You can follow this guide if you have a vGPU supported card from [this list](https://docs.nvidia.com/grid/gpus-supported-by-vgpu.html), or if you are using a consumer GPU from the GeForce series or a non-vGPU qualified Quadro GPU. There are several sections with a title similar to "Have a vGPU supported GPU? Read here" in this document, make sure to read those very carefully as this is where the instructions differ for a vGPU qualified card and a consumer card. @@ -20,12 +20,11 @@ If you have GPUs from the Ampere and Ada Lovelace generation, you are out of luc This guide and all my tests were done on a RTX 2080 Ti which is based on the Turing architechture. ## Important notes before starting -- This tutorial assumes you are using a clean install of Proxmox VE 7.4. -- Do **NOT** use the opt-in 6.x linux kernel, use the standard 5.15 that proxmox has by default +- This tutorial assumes you are using a clean install of Proxmox VE 8.0. +- If you are using Proxmox VE 8.0, you **MUST** use 16.x drivers. Older versions only work with pve 7 - If you tried GPU-passthrough before, you absolutely **MUST** revert all of the steps you did to set that up. - If you only have one GPU in your system with no iGPU, your local monitor will **NOT** give you any output anymore after the system boots up. Use SSH or a serial connection if you want terminal access to your machine. - Most of the steps can be applied to other linux distributions, however I'm only covering Proxmox VE here. -- You **HAVE TO** use a supported linux kernel version. Something in the range of 5.14 up to 6.0 should work. Newer kernels like 6.1 or 6.2 do **NOT** work at this point in time. > ## Are you upgrading from a previous version of this guide? > @@ -40,7 +39,7 @@ This guide and all my tests were done on a RTX 2080 Ti which is based on the Tur Make sure to add the community pve repo and get rid of the enterprise repo (you can skip this step if you have a valid enterprise subscription) ```bash -echo "deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription" >> /etc/apt/sources.list +echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" >> /etc/apt/sources.list rm /etc/apt/sources.list.d/pve-enterprise.list ``` @@ -257,15 +256,14 @@ Depending on your mainboard and cpu, the output will be different, in my output This repo contains patches that allow you to use vGPU on not-qualified-vGPU cards (consumer GPUs). Those patches are binary patches, which means that each patch works **ONLY** for a specific driver version. I've created patches for the following driver versions: +- 16.0 (535.54.06) - Use this if you are on pve 8.0 (kernel 6.2) - 15.1 (525.85.07) - 15.0 (525.60.12) - 14.4 (510.108.03) - 14.3 (510.108.03) - 14.2 (510.85.03) -You can choose which of those you want to use, but generally its recommended to use the latest, most up-to-date version (15.1 in this case). - -However, with the 15.0 version, some Proxmox users were experiencing issues after restarting VMs multiple times, the only way to resolve those was to reboot the whole host machine. If you are affected by this, I recommend that you downgrade to 14.4. +You can choose which of those you want to use, but generally its recommended to use the latest, most up-to-date version (16.0 in this case). If you have a vGPU qualified GPU, you can use other versions too, because you don't need to patch the driver. However, you still have to make sure they are compatible with your proxmox version and kernel. Also I would not recommend using any older versions unless you have a very specific requirement. @@ -279,11 +277,11 @@ I've created a small video tutorial to find the right driver version on the NVID ![Video Tutorial to find the right driver](downloading_driver.mp4) -After downloading, extract the zip file and then copy the file called `NVIDIA-Linux-x86_64-DRIVERVERSION-vgpu-kvm.run` (where DRIVERVERSION is a string like `525.85.07`) from the `Host_Drivers` folder to your Proxmox host into the `/root/` folder using tools like FileZilla, WinSCP, scp or rsync. +After downloading, extract the zip file and then copy the file called `NVIDIA-Linux-x86_64-DRIVERVERSION-vgpu-kvm.run` (where DRIVERVERSION is a string like `535.54.06`) from the `Host_Drivers` folder to your Proxmox host into the `/root/` folder using tools like FileZilla, WinSCP, scp or rsync. -### ⚠️ From here on, I will be using the 15.1 driver, but the steps are the same for other driver versions +### ⚠️ From here on, I will be using the 16.0 driver, but the steps are the same for other driver versions -For example when I run a command like `chmod +x NVIDIA-Linux-x86_64-525.85.07-vgpu-kvm.run`, you should replace `525.85.07` with the driver version you are using (if you are using a different one). You can get the list of version numbers [here](#nvidia-driver). +For example when I run a command like `chmod +x NVIDIA-Linux-x86_64-535.54.06-vgpu-kvm.run`, you should replace `535.54.06` with the driver version you are using (if you are using a different one). You can get the list of version numbers [here](#nvidia-driver). Every step where you potentially have to replace the version name will have this warning emoji next to it: ⚠️ @@ -295,8 +293,8 @@ Every step where you potentially have to replace the version name will have this > > ⚠️ > ```bash -> chmod +x NVIDIA-Linux-x86_64-525.85.07-vgpu-kvm.run -> ./NVIDIA-Linux-x86_64-525.85.07-vgpu-kvm.run --dkms +> chmod +x NVIDIA-Linux-x86_64-535.54.06-vgpu-kvm.run +> ./NVIDIA-Linux-x86_64-535.54.06-vgpu-kvm.run --dkms > ``` > > To finish the installation, reboot the system @@ -312,21 +310,21 @@ Now, on the proxmox host, make the driver executable ⚠️ ```bash -chmod +x NVIDIA-Linux-x86_64-525.85.07-vgpu-kvm.run +chmod +x NVIDIA-Linux-x86_64-535.54.06-vgpu-kvm.run ``` And then patch it ⚠️ ```bash -./NVIDIA-Linux-x86_64-525.85.07-vgpu-kvm.run --apply-patch ~/vgpu-proxmox/525.85.07.patch +./NVIDIA-Linux-x86_64-535.54.06-vgpu-kvm.run --apply-patch ~/vgpu-proxmox/535.54.06.patch ``` That should output a lot of lines ending with ``` -Self-extractible archive "NVIDIA-Linux-x86_64-525.85.07-vgpu-kvm-custom.run" successfully created. +Self-extractible archive "NVIDIA-Linux-x86_64-535.54.06-vgpu-kvm-custom.run" successfully created. ``` -You should now have a file called `NVIDIA-Linux-x86_64-525.85.07-vgpu-kvm-custom.run`, that is your patched driver. +You should now have a file called `NVIDIA-Linux-x86_64-535.54.06-vgpu-kvm-custom.run`, that is your patched driver. ### Installing the driver @@ -334,7 +332,7 @@ Now that the required patch is applied, you can install the driver ⚠️ ```bash -./NVIDIA-Linux-x86_64-525.85.07-vgpu-kvm-custom.run --dkms +./NVIDIA-Linux-x86_64-535.54.06-vgpu-kvm-custom.run --dkms ``` The installer will ask you `Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later.`, answer with `Yes`. @@ -343,7 +341,7 @@ Depending on your hardware, the installation could take a minute or two. If everything went right, you will be presented with this message. ``` -Installation of the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version: 525.85.07) is now complete. +Installation of the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version: 535.54.06) is now complete. ``` Click `Ok` to exit the installer.