Skip to content

Instantly share code, notes, and snippets.

@Cyberes
Created November 10, 2022 04:21
Show Gist options
  • Save Cyberes/bc33b3f4d36742ea7a036a8c7c37061e to your computer and use it in GitHub Desktop.
Save Cyberes/bc33b3f4d36742ea7a036a8c7c37061e to your computer and use it in GitHub Desktop.

How to Install Nvidia Drivers on Proxmox

  1. Your /etc/apt/sources.list should look like this:
deb http://ftp.us.debian.org/debian bullseye main contrib non-free

deb http://ftp.us.debian.org/debian bullseye-updates main contrib non-free

# security updates
deb http://security.debian.org bullseye-security main contrib

# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
  1. apt update
  2. apt upgrade
  3. apt install pve-headers
  4. apt install libnvidia-cfg1 nvidia-kernel-source nvidia-kernel-common nvidia-driver
  5. Reboot
  6. nvidia-smi should print something like this:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.141.03   Driver Version: 470.141.03   CUDA Version: 11.4     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA RTX A4000    On   | 00000000:42:00.0 Off |                  Off |
| 41%   44C    P8     7W / 140W |      1MiB / 16117MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment