mirror of
https://gitlab.com/polloloco/vgpu-proxmox.git
synced 2026-04-10 09:15:49 +03:00
Compare commits
3 Commits
3110f37d80
...
ab653f9877
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab653f9877 | ||
|
|
c0f220dcc3 | ||
|
|
1e468dcc97 |
BIN
535.161.05.patch
Normal file
BIN
535.161.05.patch
Normal file
Binary file not shown.
49
README.md
49
README.md
@@ -135,17 +135,20 @@ Depending on which system you are using to boot, you have to chose from the foll
|
|||||||
|
|
||||||
If you are using an Intel system, append this after `quiet`:
|
If you are using an Intel system, append this after `quiet`:
|
||||||
```
|
```
|
||||||
intel_iommu=on iommu=pt
|
intel_iommu=on
|
||||||
```
|
```
|
||||||
|
|
||||||
On AMD systems, append this after `quiet`:
|
On AMD systems, you don't have to add anything and amd_iommu=on does not exist:
|
||||||
|
https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html?highlight=amd_iommu
|
||||||
|
|
||||||
|
For either AMD or Intel there is an option incase you have heavy performance issues, but with the loss of security and stability of the system:
|
||||||
```
|
```
|
||||||
amd_iommu=on iommu=pt
|
iommu=pt
|
||||||
```
|
```
|
||||||
|
|
||||||
The result should look like this (for intel systems):
|
The result should look like this (for intel systems):
|
||||||
```
|
```
|
||||||
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt"
|
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"
|
||||||
```
|
```
|
||||||
|
|
||||||
Now, save and exit from the editor using Ctrl+O and then Ctrl+X and then apply your changes:
|
Now, save and exit from the editor using Ctrl+O and then Ctrl+X and then apply your changes:
|
||||||
@@ -169,17 +172,20 @@ Depending on which system you are using to boot, you have to chose from the foll
|
|||||||
|
|
||||||
On Intel systems, append this at the end
|
On Intel systems, append this at the end
|
||||||
```
|
```
|
||||||
intel_iommu=on iommu=pt
|
intel_iommu=on
|
||||||
```
|
```
|
||||||
|
|
||||||
For AMD, use this
|
On AMD systems, you don't have to add anything and amd_iommu=on does not exist:
|
||||||
|
https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html?highlight=amd_iommu
|
||||||
|
|
||||||
|
For either AMD or Intel there is an option incase you have heavy performance issues, but with the loss of security and stability of the system:
|
||||||
```
|
```
|
||||||
amd_iommu=on iommu=pt
|
iommu=pt
|
||||||
```
|
```
|
||||||
|
|
||||||
After editing the file, it should look similar to this
|
After editing the file, it should look similar to this
|
||||||
```
|
```
|
||||||
root=ZFS=rpool/ROOT/pve-1 boot=zfs intel_iommu=on iommu=pt
|
root=ZFS=rpool/ROOT/pve-1 boot=zfs intel_iommu=on
|
||||||
```
|
```
|
||||||
|
|
||||||
Now, save and exit from the editor using Ctrl+O and then Ctrl+X and then apply your changes:
|
Now, save and exit from the editor using Ctrl+O and then Ctrl+X and then apply your changes:
|
||||||
@@ -256,7 +262,8 @@ 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.
|
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:
|
I've created patches for the following driver versions:
|
||||||
- 16.2 (535.129.03) - Use this if you are on pve 8.1 (kernel 6.2, 6.5 should work too)
|
- 16.4 (535.161.05) - Use this if you are on pve 8.1 (kernel 6.2, 6.5 should work too)
|
||||||
|
- 16.2 (535.129.03)
|
||||||
- 16.1 (535.104.06)
|
- 16.1 (535.104.06)
|
||||||
- 16.0 (535.54.06)
|
- 16.0 (535.54.06)
|
||||||
|
|
||||||
@@ -267,7 +274,7 @@ I've created patches for the following driver versions:
|
|||||||
> - 14.3 (510.108.03)
|
> - 14.3 (510.108.03)
|
||||||
> - 14.2 (510.85.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 (16.2 in this case).
|
You can choose which of those you want to use, but generally its recommended to use the latest, most up-to-date version (16.4 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.
|
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.
|
||||||
|
|
||||||
@@ -281,11 +288,11 @@ I've created a small video tutorial to find the right driver version on the NVID
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
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.129.03`) 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.161.05`) 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 16.2 driver, but the steps are the same for other driver versions
|
### ⚠️ From here on, I will be using the 16.4 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-535.129.03-vgpu-kvm.run`, you should replace `535.129.03` 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.161.05-vgpu-kvm.run`, you should replace `535.161.05` 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: ⚠️
|
Every step where you potentially have to replace the version name will have this warning emoji next to it: ⚠️
|
||||||
|
|
||||||
@@ -297,8 +304,8 @@ Every step where you potentially have to replace the version name will have this
|
|||||||
>
|
>
|
||||||
> ⚠️
|
> ⚠️
|
||||||
> ```bash
|
> ```bash
|
||||||
> chmod +x NVIDIA-Linux-x86_64-535.129.03-vgpu-kvm.run
|
> chmod +x NVIDIA-Linux-x86_64-535.161.05-vgpu-kvm.run
|
||||||
> ./NVIDIA-Linux-x86_64-535.129.03-vgpu-kvm.run --dkms
|
> ./NVIDIA-Linux-x86_64-535.161.05-vgpu-kvm.run --dkms
|
||||||
> ```
|
> ```
|
||||||
>
|
>
|
||||||
> To finish the installation, reboot the system
|
> To finish the installation, reboot the system
|
||||||
@@ -314,21 +321,21 @@ Now, on the proxmox host, make the driver executable
|
|||||||
|
|
||||||
⚠️
|
⚠️
|
||||||
```bash
|
```bash
|
||||||
chmod +x NVIDIA-Linux-x86_64-535.129.03-vgpu-kvm.run
|
chmod +x NVIDIA-Linux-x86_64-535.161.05-vgpu-kvm.run
|
||||||
```
|
```
|
||||||
|
|
||||||
And then patch it
|
And then patch it
|
||||||
|
|
||||||
⚠️
|
⚠️
|
||||||
```bash
|
```bash
|
||||||
./NVIDIA-Linux-x86_64-535.129.03-vgpu-kvm.run --apply-patch ~/vgpu-proxmox/535.129.03.patch
|
./NVIDIA-Linux-x86_64-535.161.05-vgpu-kvm.run --apply-patch ~/vgpu-proxmox/535.161.05.patch
|
||||||
```
|
```
|
||||||
That should output a lot of lines ending with
|
That should output a lot of lines ending with
|
||||||
```
|
```
|
||||||
Self-extractible archive "NVIDIA-Linux-x86_64-535.129.03-vgpu-kvm-custom.run" successfully created.
|
Self-extractible archive "NVIDIA-Linux-x86_64-535.161.05-vgpu-kvm-custom.run" successfully created.
|
||||||
```
|
```
|
||||||
|
|
||||||
You should now have a file called `NVIDIA-Linux-x86_64-535.129.03-vgpu-kvm-custom.run`, that is your patched driver.
|
You should now have a file called `NVIDIA-Linux-x86_64-535.161.05-vgpu-kvm-custom.run`, that is your patched driver.
|
||||||
|
|
||||||
### Installing the driver
|
### Installing the driver
|
||||||
|
|
||||||
@@ -336,7 +343,7 @@ Now that the required patch is applied, you can install the driver
|
|||||||
|
|
||||||
⚠️
|
⚠️
|
||||||
```bash
|
```bash
|
||||||
./NVIDIA-Linux-x86_64-535.129.03-vgpu-kvm-custom.run --dkms
|
./NVIDIA-Linux-x86_64-535.161.05-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`.
|
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`.
|
||||||
@@ -345,7 +352,7 @@ Depending on your hardware, the installation could take a minute or two.
|
|||||||
|
|
||||||
If everything went right, you will be presented with this message.
|
If everything went right, you will be presented with this message.
|
||||||
```
|
```
|
||||||
Installation of the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version: 535.129.03) is now complete.
|
Installation of the NVIDIA Accelerated Graphics Driver for Linux-x86_64 (version: 535.161.05) is now complete.
|
||||||
```
|
```
|
||||||
|
|
||||||
Click `Ok` to exit the installer.
|
Click `Ok` to exit the installer.
|
||||||
|
|||||||
Reference in New Issue
Block a user