I have a Intel NUC 9 with a Quadro P2200. ESXi 7.01 is installed on the nuc.
I have enabled passthrough on the host and rebooted the nuc.
Passed both parts of the GPU - Audio and Video to the Ubuntu 20.04 VM
Added both entries on the VMs advanced settings
SVGA.Present FALSE
hypervisor.cpuid.v0 FALSE
If i build the VM fresh, install drivers via ubuntu-drivers devices it works fine. NVIDIA0-smi shows the device and details fine. Hardware transcoding works fine.
I can then reboot / shutdown thevm and it still works fine. The issue begins when i reboot the host.
If the host is rebooted the vm stlll boots up but hardware transcoding stops, the command nvidia-smi returns "no devices found"
I can however still see the device - see below
lspci |grep VGA
13:00.0 VGA compatible controller: NVIDIA Corporation GP106GL [Quadro P2200] (rev a1)
ajay@plex:~$ lspci -k |grep -EA3 'VGA'
13:00.0 VGA compatible controller: NVIDIA Corporation GP106GL [Quadro P2200] (rev a1)
DeviceName: pciPassthru0
Subsystem: NVIDIA Corporation GP106GL [Quadro P2200]
Kernel driver in use: nvidia
nvidia-smi
No devices were found'
My NUC does have the onboard graphis set as the default so i can see it boot into esxi if a cable is plugged into the onboard HDMI port. So not sure if this is an issue. if it was then it wouldn't have worked on the first instance.
so i'm pretty sure rebooting the HOST(NUC) is what is causing this issue.
The GPU is still showing assigned to the vm if go to the vm and click edit settings. Still shows as active under the hardware tab as well.
Can't seem to browse to /dev/dri on the Ubuntu VM either after host reboot.
I can browse to that directory via winscp and can see Card0 and renderD128 within the directry /dev/dri
so not sure if this has something to do with it?