- Your
/etc/apt/sources.list
should look like something like this:
deb http://ftp.us.debian.org/debian [bullseye, bookworm, etc] main contrib non-free
deb http://ftp.us.debian.org/debian [bullseye, bookworm, etc]-updates main contrib non-free
# security updates
deb http://security.debian.org [bullseye, bookworm, etc]-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, bookworm, etc] pve-no-subscription
Don't blindly replace your /etc/apt/sources.list
with the above contents!!
apt update
apt upgrade
apt install pve-headers
apt install libnvidia-cfg1 nvidia-kernel-source nvidia-kernel-common nvidia-driver
- Reboot
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 |
+-----------------------------------------------------------------------------+
I decided to reinstall Proxmox in addition to other reasons, and I followed a different guide for this: https://gist.github.com/egg82/90164a31db6b71d36fa4f4056bbee2eb#containerlxc