In Host
Blacklist Nouveau Driver if you haven’t
shell
ls -l /etc/modprobe.dNano into the listed .conf file
text
blacklist nouveau
options nouveau modeset=0shell
update-initramfs -u
lsmod | grep nouveauInstall Nvidia Driver
shell
wget https://us.download.nvidia.com/XFree86/Linux-x86_64/550.90.07/NVIDIA-Linux-x86_64-550.90.07.run
chmod +x NVIDIA-Linux-x86_64-550.90.07.run
apt install build-essential pve-headers-$(uname -r)
./NVIDIA-Linux-x86_64-550.90.07.run
nvidia-smiModify CT .conf
nano /etc/pve/lxc/{CT}.conf
text
lxc.cgroup2.devices.allow: c 195:* rwm
lxc.cgroup2.devices.allow: c 243:* rwm
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
lxc.mount.entry: /dev/nvidia0 dev/nvidia0 none bind,optional,create=file
lxc.mount.entry: /dev/nvidiactl dev/nvidiactl none bind,optional,create=file
lxc.mount.entry: /dev/nvidia-uvm dev/nvidia-uvm none bind,optional,create=file
lxc.mount.entry: /dev/nvidia-uvm-tools dev/nvidia-uvm-tools none bind,optional,create=fileIn CT
Install Driver
shell
wget http://launchpadlibrarian.net/782912522/nvidia-utils-570_570.133.07-0ubuntu0.24.04.1_amd64.deb
wget https://answers.launchpad.net/~canonical-kernel-team/+archive/ubuntu/nvidia-graphics/+build/30435124/+files/libnvidia-compute-570_570.133.07-0ubuntu0.24.04.1_amd64.deb
dpkg -i libnvidia-compute-550_550.90.07-0ubuntu2_amd64.deb
dpkg -i nvidia-utils-550_550.90.07-0ubuntu2_amd64.debYou’ll Need Yo Uninstall The Existing Nvidia Drivers, Which Depend On Your LXC Image
Check Driver
shell
nvidia-smi