Install NVIDIA Drivers on the Host
Install the NVIDIA proprietary driver on a Proxmox VE host using ProxMenux. The installer filters maintained branches by GPU PCI ID, validates the selected release through DKMS, manages nouveau, installs the persistence service and can propagate the driver to LXC containers with NVIDIA passthrough.
What this does
nouveau, downloads the official .run installer, uses DKMS, installs nvidia-persistenced, udev rules and the NVIDIA Container Toolkit, and offers an optional NVENC patch. Build checks assess the running kernel; successful compilation does not guarantee every app works. Existing NVIDIA LXCs are offered a userspace library update, version-matched except on Arch.Who is this for?
For GPU-accelerated video or compute apps such as Plex, Jellyfin, Frigate, Immich or Stable Diffusion inside LXC, install the supported NVIDIA driver on the Proxmox host first. Assigning a GPU directly to a VM uses the separate VFIO workflow.
Before you start
- An NVIDIA GPU physically installed in the host. The script auto-detects it; AMD and Intel GPUs are not handled here.
lspci | grep -i nvidia - The GPU is not currently assigned to a VM via VFIO passthrough. If it is, the script will refuse to install the host driver to avoid breaking the passthrough config.
- Internet access on the host. The installer downloads the driver from
download.nvidia.comand, optionally, clonesnvidia-persistencedandnvidia-patchfrom GitHub. - Allow disk space in
/opt/nvidiafor the.runinstaller and RAM for compilation. The non-Arch LXC update path checks for 1500 MiB free and can request a temporary increase to 2048 MiB RAM if lower, restoring the prior limit afterwards. Plan for the host reboot prompt.
GPU assigned to a VM? Stop here
vfio-pci, this installer aborts, including when the VM is stopped. A reserved device is not necessarily in active use by a VM. Plan the return to host-driver mode and remove obsolete VM and VFIO assignments before rebooting and installing.Running the installer
Open ProxMenux on the host, go to Hardware: GPUs and Coral-TPU → Install/Update NVIDIA Drivers (Host + LXC). What you see depends on whether a driver is already present.

How the script runs
The workflow detects devices, selects a release and performs installation. A separately confirmed stale-VFIO cleanup can occur before the overview. Repository/header preparation and downloading also precede replacement of the existing driver, so there is no single final confirmation after which all changes begin.
GPU detection and overview
The script scans the PCI bus and shows every NVIDIA video controller it finds, the current driver status (or "No NVIDIA driver installed"), and any LXC container that already has NVIDIA passthrough configured (driver version inside each one).
Review the detected GPU and host/container versions before proceeding. Cancel at the overview if the selection is unexpected; any separately confirmed earlier VFIO cleanup has already taken place.

Choose the driver version
ProxMenux fetches the list of available drivers from NVIDIA and narrows the picker to versions that list your GPU's PCI Device ID in the supported chips table of the corresponding branch on nvidia.com. Additional heuristics discard developer / beta CDN drops that would otherwise appear at the top. The first entry is labelled <version> — Recommended: it prefers the head of the branch of the driver already installed on the host (bugfix in place), otherwise the head of the current Production Branch, otherwise the highest supported numeric.
When the installed driver is tracked as NVENC-patched through keylase, the picker narrows to versions listed in the patch table. The Reinstall / update workflow still includes confirmation and patch prompts; check the final patch result.
How kernel compatibility is validated

Clean uninstall (only if reinstalling)
After downloading and checking the selected installer, an existing driver is removed before replacement. ProxMenux stops NVIDIA services, unloads modules, removes DKMS entries and purges nvidia-* / libnvidia-* / cuda-* packages. This also applies to a confirmed reinstall of the same version.
Prepare the system
During preparation, the script:
- Checks the repositories of the host before anything is removed or installed: a host with no active subscription and only the Enterprise repository is asked before switching to no-subscription, and the installation stops when the switch is declined.
- Installs
pve-headers-$(uname -r)(orproxmox-headers-$(uname -r)),build-essentialanddkms. - Creates the ProxMenux-owned
/etc/modprobe.d/proxmenux-nouveau-blacklist.confwithblacklist nouveauandoptions nouveau modeset=0, records whether it added the companion line toblacklist.conf, and tries to unload the module immediately. - Writes
/etc/modules-load.d/nvidia-vfio.confwithnvidiaandnvidia_uvmso the modules load early at boot.
Download and run the NVIDIA installer
Downloads NVIDIA-Linux-x86_64-<version>.run into /opt/nvidia, checking file size and executable type. These are file-format checks, not cryptographic signature verification. The installer registers DKMS for rebuilds on kernel changes; source and kernel compatibility are still required.
# What ProxMenux runs under the hood (you don't have to type this):
sh NVIDIA-Linux-x86_64-VERSION.run \
--no-questions \
--ui=none \
--disable-nouveau \
--no-nouveau-check \
--dkms
Persistence service and udev rules
ProxMenux then installs nvidia-persistenced and writes udev rules at /etc/udev/rules.d/70-nvidia.rules so /dev/nvidia* device nodes appear reliably on boot. Without these, LXC passthrough can race on container startup and end up with a container that can't see the GPU.
Optional: apply the NVENC patch
NVENC session limits depend on GPU and driver. The community keylase/nvidia-patch can remove the driver session limit for supported versions. Choose Yes only if you need that encoding change and your version is supported. This does not accelerate decoding or remove hardware capacity limits.
Check patch support for your driver
Optional: propagate the driver to LXC containers
If the overview screen listed containers with NVIDIA passthrough, ProxMenux now offers to update the userspace libraries inside each one to match the host. Host kernel module and container userspace must be the exact same version — otherwise nvidia-smi inside the container will fail with a "version mismatch" error.
Debian / Ubuntu and other glibc containers receive the extracted .run installer with --no-kernel-modules --no-dkms --no-install-compat32-libs; RAM can temporarily increase to 2 GiB and is restored afterwards. Arch, Manjaro and EndeavourOS use pacman -Syu nvidia-utils from configured repositories, without pinning to the host version: verify the result. Alpine receives the extracted .run payload through pct push, installs gcompat and binutils with apk, and builds SONAME links using readelf. Check runtime functionality; compatibility shims do not guarantee every driver library works on musl.

Reboot
After the driver installation, the script rebuilds initramfs for all kernels; its last step offers a reboot. Plan that restart to verify the persistent module and nouveau configuration on a fresh boot, even when the new driver already responds before reboot.
Reinstall or uninstall
If nvidia is loaded and nvidia-smi returns a version, an action menu appears. This identifies an active driver for the menu; driver files can still be installed even when the module is not loaded.

Reinstall / update
Continues through release selection, repository/header preparation, download and pre-build checking before removing the old driver and installing the new one. It can update within a maintained branch or select another supported branch. LXC library and NVENC patch prompts appear again afterwards.
Uninstall — what gets removed
After a yes/no confirmation, the uninstall removes the following driver components:
- Stops and disables
nvidia-persistencedandnvidia-powerd, attempts to unloadnvidia_uvm,nvidia_drm,nvidia_modesetandnvidia, then runsnvidia-uninstall --silentfor the.runinstallation. NVIDIA-dependent LXC workloads are affected; active clients can prevent unloading. - Runs
apt purgeonnvidia-*,libnvidia-*,cuda-*andlibcudnn*, removes the DKMS source tree and thenvidia-persistencedandnvidia-patchfolders under/opt/nvidia. - Removes the modules-load config (
/etc/modules-load.d/nvidia-vfio.conf) and the nouveau blacklist entries owned by ProxMenux. Legacy two-line ProxMenux blacklist files are migrated and removed too; modified or unrelated administrator files are preserved. - Removes the udev rules (
/etc/udev/rules.d/70-nvidia.rules) and clears the NVENC patch state (a field in the ProxMenux managed-installs registry, set to removed — no separate file to delete). - Rebuilds
initramfsfor all kernels, runsproxmox-boot-tool refreshon systemd-boot hosts, and prompts for a reboot to finalise.
LXC containers with NVIDIA passthrough
Update notifications
The installed NVIDIA driver is tracked in ProxMenux's managed-installs registry. On startup and every 24h the Monitor checks the upstream listing at download.nvidia.com/XFree86/Linux-x86_64/ against the version nvidia-smi reports, and notifies only when a newer maintenance release exists in the installed branch.
Update message
- Same-branch maintenance. A newer release in your current driver branch (e.g. installed 580.65.06 → available 580.105.08). The Monitor does not infer cross-branch kernel compatibility.
Anti-cascade by design
Applying the update
Verifying the install
Once the host is back up, log in over SSH or the Proxmox shell and run:
nvidia-smiCheck that your GPU and the expected driver version appear. Processes may already be listed if host services or autostarted containers use the GPU. Then check the persistence service:
systemctl status nvidia-persistenced
Troubleshooting
`nvidia-smi` says 'NVIDIA-SMI has failed'
lsmod | grep nouveau and dmesg | grep -i nvidia, plus the installer/DKMS logs. If nouveau policy needs fixing, check /etc/modprobe.d/proxmenux-nouveau-blacklist.conf before rebuilding with update-initramfs -u -k all and rebooting. Do not assume every build error is a header mismatch.LXC container can't see the GPU after host update
--no-kernel-modules. Reinstalling libraries will not repair missing device mounts or permissions.Check the install log
/tmp/nvidia_install.log. If something fails silently, that file has the full output (downloads, DKMS build, service installs). Attach it when reporting issues on GitHub.Looking for the manual steps?
See Guides → NVIDIA for manual background, including wget and ./NVIDIA-Linux-...run. It explains the components but is not an exact transcript of the automated installer. Use the maintained ProxMenux workflow for its GPU filtering, build checks, LXC updates and VFIO checks.
Related
- Add GPU to VM (Passthrough) — pass the NVIDIA GPU to a VM (different binding model from LXC).
- Add GPU to LXC — share the NVIDIA GPU with one or more containers.
- Switch GPU Mode (VM ↔ LXC) — toggle the same GPU between passthrough (VM) and shared (LXC) modes.
- ProxMenux Monitor — Hardware tab — the GPU modal that triggers this installer in one click, plus live monitoring once it's done.
- GPU Passthrough commands — lspci / dmesg / IOMMU / nvidia-smi reference.