Install NVIDIA Drivers on the Host

Hardware: GPUs and Coral-TPU~20 minView script

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

ProxMenux detects the GPU and offers maintained NVIDIA branches listing its PCI ID. It blacklists 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.com and, optionally, clones nvidia-persistenced and nvidia-patch from GitHub.
  • Allow disk space in /opt/nvidia for the .run installer 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

If any NVIDIA device is bound to 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.

Hardware: GPUs and Coral-TPU menu with the Install/Update NVIDIA Drivers entry highlighted

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.

Step 1

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.

Pre-install overview showing detected GPUs, current driver status and LXC containers with NVIDIA passthrough
Step 2

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

The list uses maintained branches and GPU PCI support, rather than a fixed kernel/driver matrix. A pre-build check tests the selected release against the running kernel. A confirmed build failure returns to selection; an unavailable pre-check can produce a warning and continue. Final installation and runtime checks still matter.
Driver version selector with GPU-supported NVIDIA branches and the Recommended entry on top
Step 3

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.

Step 4

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) (or proxmox-headers-$(uname -r)), build-essential and dkms.
  • Creates the ProxMenux-owned /etc/modprobe.d/proxmenux-nouveau-blacklist.conf with blacklist nouveau and options nouveau modeset=0, records whether it added the companion line to blacklist.conf, and tries to unload the module immediately.
  • Writes /etc/modules-load.d/nvidia-vfio.conf with nvidia and nvidia_uvm so the modules load early at boot.
Step 5

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
Download progress followed by the NVIDIA installer running its DKMS build
Step 6

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.

Step 7

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

Check your exact release in the patch table. If it is missing, keep an unpatched driver or select another maintained release that supports your GPU and kernel as well as the patch; do not choose an older release solely because it is nearby in the list.
Step 8

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.

Prompt listing LXCs with NVIDIA passthrough and current driver version, with Yes/No to update them all
Step 9

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.

NVIDIA action menu offered when a driver is already installed — two choices: Reinstall / update driver, or Uninstall the NVIDIA driver completely
The action menu only appears when an NVIDIA driver is currently active on the host.

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-persistenced and nvidia-powerd, attempts to unload nvidia_uvm, nvidia_drm, nvidia_modeset and nvidia, then runs nvidia-uninstall --silent for the .run installation. NVIDIA-dependent LXC workloads are affected; active clients can prevent unloading.
  • Runs apt purge on nvidia-*, libnvidia-*, cuda-* and libcudnn*, removes the DKMS source tree and the nvidia-persistenced and nvidia-patch folders 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 initramfs for all kernels, runs proxmox-boot-tool refresh on systemd-boot hosts, and prompts for a reboot to finalise.

LXC containers with NVIDIA passthrough

Removing the host driver interrupts NVIDIA-dependent LXC workloads, even when their userspace libraries remain installed. Schedule maintenance for Frigate, Plex, Jellyfin, Ollama or other apps that use the GPU.

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

One notification per distinct upstream version, never on every 24h scan. If no newer release exists in the installed branch, the tracker stays quiet.

Applying the update

Monitor reports updates without installing them automatically. Open the installer and choose Reinstall / update, select a supported version, and complete its build and installation steps. The workflow ends with a reboot prompt; plan the restart and verify the host and LXC libraries afterwards.

Verifying the install

Once the host is back up, log in over SSH or the Proxmox shell and run:

nvidia-smi

Check 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
Output of nvidia-smi on the host showing the detected GPU and installed driver version

Troubleshooting

`nvidia-smi` says 'NVIDIA-SMI has failed'

Possible causes include nouveau claiming the GPU, missing or mismatched kernel headers, incompatible driver sources or other module-load errors. Inspect 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

Check host device nodes, LXC permissions and the driver-library version before reinstalling. A version mismatch can require the matching userspace driver inside the LXC, using the supported distro path; on glibc systems the installer uses --no-kernel-modules. Reinstalling libraries will not repair missing device mounts or permissions.

Check the install log

Every install writes to /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