Nvidia GPU not detected in WIN VM

adminkc

Member
Sep 28, 2020
91
0
11
29
The Nvidia GPU is not detected in the VM.
when I open cat /proc/cmdline it shows everthing right BOOT_IMAGE=/boot/vmlinuz-5.11.22-5-pve root=/dev/mapper/pve-root ro quiet intel_iommu=on.

Do I have to install the nvidia driver? when yes how?

BR,
KC IT-Team
 

Attachments

  • gpu not detected.PNG
    gpu not detected.PNG
    81 KB · Views: 76
hi,

if the passthrough worked (a.k.a. the device is in the VM config and it started), then you'll need to install the nvidia driver inside the VM. just go to their website and find the drivers for your GPU model.
 
but the strange thing is that other nodes worked without driver, other question is should the drive be installed on the Proxmox Node?
 
but the strange thing is that other nodes worked without driver, other question is should the drive be installed on the Proxmox Node?
if you're doing passthrough then no. the drivers should be installed inside the VM.

the host shouldn't be accessing the GPU (if you install driver on host, it will try accessing it and loading kernel modules etc.), you have to even explicitly blacklist the nvidia modules on host. otherwise the VM with the GPU passthrough won't be able to use it. see our notes on GPU PCI passthrough [0]

[0]: https://pve.proxmox.com/wiki/Pci_passthrough#GPU_Passthrough
 
yes I already blacklist the nvidia modules, but when I try to install the driver they say me could not found, but this is the right driver

BR
 

Attachments

  • blacklist.PNG
    blacklist.PNG
    2.6 KB · Views: 51
  • nvidia error.PNG
    nvidia error.PNG
    120.3 KB · Views: 44
can you post your VM config and the relevant VFIO configuration files?

* qm config VMID
* cat /etc/modprobe.d/vfio.conf
* lspci -nnk | grep -i nvidia
 
the vfio.conf I can't find because this command doesn't exist
 

Attachments

  • qm config.PNG
    qm config.PNG
    14.9 KB · Views: 73
  • nvidia grep.PNG
    nvidia grep.PNG
    8.1 KB · Views: 74
you're still loading the nvidiafb and nouveau kernel modules for the device, these also need to be blacklisted.

as for the vfio.conf, if it doesn't exist then you'll need to add it. read the link i've sent previously for details
 
okeey the vfio.conf i got now, how to blacklist the nvidiafb and nouveau?
follow the instructions on the page i've linked, there are some examples
 
the thing that i doesn't understand is that the node always load the wrong modules.
I already blacklist it?
 

Attachments

  • loading wrong moduels.PNG
    loading wrong moduels.PNG
    12.6 KB · Views: 32
  • balcklist drivers.PNG
    balcklist drivers.PNG
    2.3 KB · Views: 31
Hi,

also added the nvidiafb to blacklist still the same thing, and how should be possible to switch the SeaBios to the OVMF UEFI to an existing VM.
We had two nodes that worked perfect which we add the backports for nvida, but that changend with the new update I think.

BR