The container shares the host kernel. Only userspace libraries are installed — no kernel modules.
Important: The NVIDIA driver version inside the LXC must match the host driver version exactly. If you updated the host driver, repeat these steps inside the container.
# On the Proxmox host — use the same .run file from the host GPU setupcd drivers/lsNVIDIA-Linux-x86_64-580.126.09.runpct push 102 NVIDIA-Linux-x86_64-580.126.09.run /root/NVIDIA-Linux-x86_64-580.126.09.run
If you no longer have the .run file on the host, re-download it:
cd /rootwget https://us.download.nvidia.com/XFree86/Linux-x86_64/580.126.09/NVIDIA-Linux-x86_64-580.126.09.runchmod +x NVIDIA-Linux-x86_64-580.126.09.run
# Install driver — compute-only, no display/OpenGL libraries# Replace the filename if your host uses a different driver version.chmod +x /root/NVIDIA-Linux-x86_64-580.126.09.run/root/NVIDIA-Linux-x86_64-580.126.09.run \ --no-kernel-module \ --no-opengl-files