Update nvidia.md

This commit is contained in:
MacRimi 2025-02-16 01:07:59 +01:00 committed by GitHub
parent 86474cc63d
commit 399c6aba83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,7 +22,7 @@ cat /etc/modprobe.d/blacklist.conf
``` ```
The example image shows that "blacklist nouveau" is already added to the blacklist. The example image shows that "blacklist nouveau" is already added to the blacklist.
![Blacklist check](/nvidia/nvidia-2.png) ![Blacklist check](/guides/nvidia/nvidia-2.png)
If in our case it doesn't show: blacklist nouveau If in our case it doesn't show: blacklist nouveau
@ -100,7 +100,7 @@ https://download.nvidia.com/XFree86/Linux-x86_64/525.116.03/
Once inside the directory, we copy the link of the installer that ends with the .run extension Once inside the directory, we copy the link of the installer that ends with the .run extension
![NVIDIA driver download](/nvidia/nvidia-1.png) ![NVIDIA driver download](/guides/nvidia/nvidia-1.png)
For example: For example:
``` ```
@ -187,11 +187,11 @@ We check that the driver is installed and the service is running:
``` ```
nvidia-smi nvidia-smi
``` ```
![NVIDIA SMI output](/nvidia/nvidia-3.png) ![NVIDIA SMI output](/guides/nvidia/nvidia-3.png)
``` ```
systemctl status nvidia-persistenced systemctl status nvidia-persistenced
``` ```
![NVIDIA persistence service status](/nvidia/nvidia-4.png) ![NVIDIA persistence service status](/guides/nvidia/nvidia-4.png)
### - Patch: ### - Patch:
@ -203,7 +203,7 @@ git clone https://github.com/keylase/nvidia-patch.git
cd nvidia-patch cd nvidia-patch
./patch.sh ./patch.sh
``` ```
![NVIDIA patch application](/nvidia/nvidia-5.png) ![NVIDIA patch application](/guides/nvidia/nvidia-5.png)
## 2- Configure the drivers to be able to use them in any LXC. ## 2- Configure the drivers to be able to use them in any LXC.
@ -211,7 +211,7 @@ First, we need to obtain this data:
``` ```
ls -l /dev/nv* ls -l /dev/nv*
``` ```
![NVIDIA device list](/nvidia/nvidia-6.png) ![NVIDIA device list](/guides/nvidia/nvidia-6.png)
Let's say, for example, that we're going to use the Plex LXC from tteck's script with ID100. If we have it running, we turn it off. Let's say, for example, that we're going to use the Plex LXC from tteck's script with ID100. If we have it running, we turn it off.
``` ```
@ -238,7 +238,7 @@ lxc.mount.entry: /dev/nvidia-uvm-tools dev/nvidia-uvm-tools none bind,optional,c
lxc.mount.entry: /dev/nvram dev/nvram none bind,optional,create=file lxc.mount.entry: /dev/nvram dev/nvram none bind,optional,create=file
``` ```
![LXC configuration](/nvidia/nvidia-7.png) ![LXC configuration](/guides/nvidia/nvidia-7.png)
We save: We save:
ctrl + x. ctrl + x.
@ -264,7 +264,7 @@ chmod +x NVIDIA-Linux-x86_64-525.116.03.run
When this screen appears, we select everything by default, each time it asks us. When this screen appears, we select everything by default, each time it asks us.
![NVIDIA driver installation](/nvidia/nvidia-8.png) ![NVIDIA driver installation](/guides/nvidia/nvidia-8.png)
Once the installation is finished, we check that everything is correct Once the installation is finished, we check that everything is correct
@ -272,21 +272,21 @@ Once the installation is finished, we check that everything is correct
nvidia-smi nvidia-smi
``` ```
![NVIDIA SMI in LXC](/nvidia/nvidia-9.png) ![NVIDIA SMI in LXC](/guides/nvidia/nvidia-9.png)
``` ```
ls -l /dev/nv* ls -l /dev/nv*
``` ```
![NVIDIA devices in LXC](/nvidia/nvidia-10.png) ![NVIDIA devices in LXC](/guides/nvidia/nvidia-10.png)
## We check that Plex uses the graphics card. ## We check that Plex uses the graphics card.
As we can see, the Plex LXC container makes use of the Nvidia graphics card from our Proxmox host. As we can see, the Plex LXC container makes use of the Nvidia graphics card from our Proxmox host.
![Plex using NVIDIA GPU 1](/nvidia/nvidia-11.png) ![Plex using NVIDIA GPU 1](/guides/nvidia/nvidia-11.png)
![Plex using NVIDIA GPU 2](/nvidia/nvidia-12.png) ![Plex using NVIDIA GPU 2](/guides/nvidia/nvidia-12.png)
If we want any LXC to use our graphics card, we simply follow the same steps. If we want any LXC to use our graphics card, we simply follow the same steps.