Nvidia-smi not working. How to verify nvidia drivers are working?

Hello,

I am having an issue with the first steps of getting hardware acceleration set up on scale. I cannot seem to verify that nvidia drivers are installed or working correctly. I would eventually like to use HW acceleration for things like jellyfin and immich.

Running lspci does show the card

admin@truenas[~]$ lspci |grep NVIDIA
0d:00.0 VGA compatible controller: NVIDIA Corporation TU104 [GeForce RTX 2080 Rev. A] (rev a1)
0d:00.1 Audio device: NVIDIA Corporation TU104 HD Audio Controller (rev a1)
0d:00.2 USB controller: NVIDIA Corporation TU104 USB 3.1 Host Controller (rev a1)
0d:00.3 Serial bus controller: NVIDIA Corporation TU104 USB Type-C UCSI Controller (rev a1)

However, when I try to run nvidia-smi, the command is not found


admin@truenas[~]$ nvidia-smi
zsh: command not found: nvidia-smi

I only have a month or so of TrueNAS experience, but am I correct in understanding that nvidia drivers are supposed to come preinstalled and usually just work - indicating I have something wrong in my setup?

Most related forum posts I’ve found on google are cases where nvidia-smi is found at least. I feel like I’m doing something dumb.

Thanks in advance for the support and for reading.

OS Version: Truenas scale ElectricEel-24.10.0
CPU: AMD 5950x
GPU: Nvidia RTX 2080
MoBo: ASRock AM4/X570 Steel Legend
RAM: 128GB ECC

1 Like

I forgot to mention that one thing I did was ensure secure boot was disabled in the BIOS. I believe it has been disabled since day 1

Try “sudo nvidia-smi” as you are logged in as admin and not root

Unfortunately no luck there

admin@truenas[~]$ sudo nvidia-smi
[sudo] password for admin: 
sudo: nvidia-smi: command not found

There are no Nvidia drivers included in 24.10.

@altoop4
Have you installed the drivers?
Apps / Configuration / Settings

3 Likes

Doh! That’ll do it.

nvidia-smi is working now that I’ve ticked that box to install NVIDIA drivers. I didn’t think to look in the apps menus - would have been great if the search bar returned that tick box when you search “NVIDIA”, but alas :slight_smile:
Thanks for the support!

1 Like

I had the same problem. 3 days ago i just went into app settings and enabled the gpu option. also nvidia-smi worked and it did output my gpu. It also worked correctly in my apps (emby).

Now i changed nothing, but suddenly nvidia-smi gives this output:
NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

In my Apps Configuration Settings i can’t find any checkbox for GPU anymore.

and when i check gpu passthrough in one of my apps, there isn’t any gpu to choose

I really don’t know what to do, because like 3 days ago it was totally fine. The gpu seems to be connected correct, the fans are spinning.

Hi there! Did you ever figure out how to make your GPU work again?

Never mind. I had isolated my GPU (System > Advanced Settings) and that’s why I couldn’t see the Install NVIDIA Drivers checkbox in Apps > Configuration > Settings.

Now I have to sort out an NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver… error.

You probably should start your own thread along with your systems details and maybe screenshots of your settings. Have you worked through this thread and the troubleshooting they did?

Browse some other threads and do the Tutorial by the Bot to get your forum trust level up if you need to post images, etc.

TrueNAS-Bot
Type this in a new reply and send to bring up the tutorial, if you haven’t done it already.

@TrueNAS-Bot start tutorial