Unable to load nvidia drivers (not blacklisted)

iamspartacus

Member
Sep 9, 2020
35
0
11
40
I'm having trouble getting nvidia drivers to load on my Proxmox 6.2 server. I get the following error when trying to run nvidia-smi.

root@sparta:~# nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.


See my below outputs:

root@sparta:~# lspci | grep -i nvidia
81:00.0 VGA compatible controller: NVIDIA Corporation TU116 [GeForce GTX 1660] (rev a1)
81:00.1 Audio device: NVIDIA Corporation Device 1aeb (rev a1)
81:00.2 USB controller: NVIDIA Corporation Device 1aec (rev a1)
81:00.3 Serial bus controller [0c80]: NVIDIA Corporation Device 1aed (rev a1)


root@sparta:~# nvidia-detect
Detected NVIDIA GPUs:
81:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU116 [GeForce GTX 1660] [10de:2184] (rev a1)

Checking card: NVIDIA Corporation TU116 [GeForce GTX 1660] (rev a1)
Your card is supported by the default drivers.
It is recommended to install the
nvidia-driver
package.


root@sparta:~# apt install nvidia-driver
Reading package lists... Done
Building dependency tree
Reading state information... Done
nvidia-driver is already the newest version (450.80.02-1~bpo10+1).
The following packages were automatically installed and are no longer required:
libnvidia-fatbinaryloader libnvidia-ptxjitcompiler1
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.


Contents of /etc/modprobe.d/pve-blacklist.conf
Code:
# This file contains a list of modules which are not supported by Proxmox VE

# nidiafb see bugreport https://bugzilla.proxmox.com/show_bug.cgi?id=701
#blacklist nvidiafb



I even added the following per another post I found on this topic:
Code:
echo 'nvidia' >> /etc/modules
echo 'nvidia_uvm' >> /etc/modules

vi /etc/udev/rules.d/70-nvidia.rules

# Add the two following lines.
KERNEL=="nvidia", RUN+="/bin/bash -c '/usr/bin/nvidia-smi -L && /bin/chmod 666 /dev/nvidia*'"
KERNEL=="nvidia_uvm", RUN+="/bin/bash -c '/usr/bin/nvidia-modprobe -c0 -u && /bin/chmod 0666 /dev/nvidia-uvm*'"
 
Last edited:
can you try to install nvidia driver from this here

I had same issue with nvidia driver, I followed this guide and fixed the problem

Simply running the install from that link did not help. Will check that guide you posted in case there was something else needed. Thanks.
 
Last edited:
Still no dice. No matter how many different ways I try to install the driver I get the same issue. Trying to load the module manually I get this:

root@sparta:~# modprobe nvidia
modprobe: FATAL: Module nvidia-current not found in directory /lib/modules/5.4.60-1-pve
modprobe: ERROR: ../libkmod/libkmod-module.c:979 command_do() Error running install command for nvidia
modprobe: ERROR: could not insert 'nvidia': Operation not permitted
 

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!