Nvidia drivers installed, but nvidia-smi says 'no device were found'

I’m trying to install and use my Nvidia GTX 1070 in an Ubuntu VM on Proxmox. The Ubuntu version is 22.04.1
I’ve setup passthrough for the GP and added the PCI device to the hardware-list of the VM

I’ve installed the drivers using sudo ubuntu-drivers autoinstall. Installation seemingly went of without a hitch.

When I use nvidia-settings the setting app shows up.
When I use systemctl status nvidia-persistenced.service the service is shown as active.

However, when I use nvidia-smi the output tells me ‘no devices were found’

I’m not sure if I am missing something or if a prerequisite is missing. I’s like to use nvidia-smi the check the functioning of the card when using for transcoding.

nvidia-bug-report.log.gz (100.3 KB)

Please run nvidia-bug-report.sh as root and attach the resulting nvidia-bug-report.log.gz file to your post.

Ugh, I completely forgot. Apologies. Added to the original post.

NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x24:0x72:1427)
Looks like a host problem, please check if this helps:
https://forum.proxmox.com/threads/problem-with-gpu-passthrough.55918/page-2#post-474131

Thanks for your help, and sorry for being a n00b, but:

lspci shows 00:08.0 for my GTX 1070.
lspci -n -s 08:00 shows 08:00.0 0300: 10de:1b81 (rev a1)

Given the example in the script in the thread you directed me to (0000:0X:00.0), what should I use here as the PCI ID?

Please try X=8

That worked! I set things up as described in the thread and now nvidi-smi does what is is supposed to do and the Nvidia Settings app shows the details of the GTX 1070.

Again, MANY thanks for your patience and assistance!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.