Installing Nvidia drivers on host

salpot

New Member
Nov 17, 2021
19
8
3
44
Hello All,

I installed docker on the Proxmox host in order to run Frigate. I have an Nvidia 1070Ti that I want to use for hardware acceleration/decoding in Frigate. How do I install the Nvidia drivers? I downloaded "NVIDIA-Linux-x86_64-515.48.07.run" from Nvidia.com and tried to run it but it ended with the "Unable to find the kernel source tree for the currently running kernel" error. I'm not even sure if this is the right way to install the drivers in Proxmox.

Any help is appreciated.

Code:
# lspci | grep -i nvidia
08:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070 Ti] (rev a1)
08:00.1 Audio device: NVIDIA Corporation GP104 High Definition Audio Controller (rev a1)

# pveversion -v
proxmox-ve: 7.2-1 (running kernel: 5.15.35-1-pve)
pve-manager: 7.2-4 (running version: 7.2-4/ca9d43cc)
pve-kernel-5.15: 7.2-3
pve-kernel-helper: 7.2-3
pve-kernel-5.13: 7.1-9
pve-kernel-5.11: 7.0-10
pve-kernel-5.15.35-1-pve: 5.15.35-3
pve-kernel-5.13.19-6-pve: 5.13.19-15
pve-kernel-5.13.19-2-pve: 5.13.19-4
pve-kernel-5.11.22-7-pve: 5.11.22-12
pve-kernel-5.11.22-4-pve: 5.11.22-9
ceph-fuse: 15.2.14-pve1
corosync: 3.1.5-pve2
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown2: 3.1.0-1+pmx3
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libknet1: 1.22-pve2
libproxmox-acme-perl: 1.4.2
libproxmox-backup-qemu0: 1.3.1-1
libpve-access-control: 7.2-1
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.2-2
libpve-guest-common-perl: 4.1-2
libpve-http-server-perl: 4.1-2
libpve-storage-perl: 7.2-4
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 4.0.12-1
lxcfs: 4.0.12-pve1
novnc-pve: 1.3.0-3
proxmox-backup-client: 2.2.1-1
proxmox-backup-file-restore: 2.2.1-1
proxmox-mini-journalreader: 1.3-1
proxmox-widget-toolkit: 3.5.1
pve-cluster: 7.2-1
pve-container: 4.2-1
pve-docs: 7.2-2
pve-edk2-firmware: 3.20210831-2
pve-firewall: 4.2-5
pve-firmware: 3.4-2
pve-ha-manager: 3.3-4
pve-i18n: 2.7-2
pve-qemu-kvm: 6.2.0-8
pve-xtermjs: 4.16.0-1
qemu-server: 7.2-3
smartmontools: 7.2-pve3
spiceterm: 3.2-2
swtpm: 0.7.1~bpo11+1
vncterm: 1.7-1
zfsutils-linux: 2.1.4-pve1
 
Last edited:
Did you install the kernel headers?

apt update && apt install pve-headers
I did not. But before going through this, I wanted to confirm that it is the correct way to install them. I don't want issues to arise with my current LXCs/VMs.
 
So I installed pve-headers and tried installing the drivers again, ended up with

Code:
 ERROR: Unable to load the kernel module 'nvidia.ko'.  This happens most frequently when this kernel module was built against the wrong or
 improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if another
 driver, such as nouveau, is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA device(s), or no NVIDIA
 device installed in this system is supported by this NVIDIA Linux graphics driver release.

 Please see the log entries 'Kernel module load error' and 'Kernel messages' at the end of the file '/var/log/nvidia-installer.log' for
 more information.

So I assume this is not the right way to install them on the Proxmox host?
 
I am wondering, if your version of the headers match your (not most recent, from your output above) kernel version.
Would suggest to fully update your host and reboot it to have a up-to-date state and try it again.

But I have no experience with the manual installed nvidia drivers.

I am using the (sadly much older) nvidia-driver from bullseye-backports [1] on one of my hosts without problems.

[1] https://packages.debian.org/bullseye-backports/nvidia-driver
 
I am wondering, if your version of the headers match your (not most recent, from your output above) kernel version.
Would suggest to fully update your host and reboot it to have a up-to-date state and try it again.

But I have no experience with the manual installed nvidia drivers.

I am using the (sadly much older) nvidia-driver from bullseye-backports [1] on one of my hosts without problems.

[1] https://packages.debian.org/bullseye-backports/nvidia-driver
I updated everything and rebooted before installing the driver. That error message was after.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!