Skip to content

Instantly share code, notes, and snippets.

@Chuckame
Last active October 4, 2025 21:23
Show Gist options
  • Select an option

  • Save Chuckame/91b850fcc4e11cd1a95b2bc060a82930 to your computer and use it in GitHub Desktop.

Select an option

Save Chuckame/91b850fcc4e11cd1a95b2bc060a82930 to your computer and use it in GitHub Desktop.
How to install nvidia driver with LXC device passthrough (useful in Proxmox)

This guide will help people that wants to use their nvidia gpu

On (proxmox) host

In LXC container

  • Create your container
  • Make device passthrough (using lxc config or in proxmox ui) for:
    • dev0: /dev/nvidia0
    • dev1: /dev/nvidiactl
    • dev2: /dev/nvidia-uvm
    • dev3: /dev/nvidia-uvm-tools
  • Download and install nvidia driver, but this time with --no-kernel-module param instead of --dkms
  • Check if it works with nvidia-smi

In LXC container: Add nvidia runtime to docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment