This guide will help people that wants to use their nvidia gpu
- Download latest nvidia drivers: https://www.nvidia.com/en-us/drivers/unix/
- For this guide, it will be https://us.download.nvidia.com/XFree86/Linux-x86_64/580.95.05/NVIDIA-Linux-x86_64-580.95.05.run
- make it executable:
chmod +x NVIDIA-Linux-x86_64-580.95.05.run - Install proxmox headers:
apt install pve-headers - Install nvidia driver:
./NVIDIA-Linux-x86_64-580.95.05.run --dkms - Reboot
- Then check if it worked:
nvidia-smi
- Create your container
- Make device passthrough (using lxc config or in proxmox ui) for:
dev0: /dev/nvidia0dev1: /dev/nvidiactldev2: /dev/nvidia-uvmdev3: /dev/nvidia-uvm-tools
- Download and install nvidia driver, but this time with
--no-kernel-moduleparam instead of--dkms - Check if it works with
nvidia-smi