RmInitAdapter failed! on ubuntu 18.04 server VM in ESXi 6.7u2 (gfx 1050)


System: Dell R730 running ESXi 6.7u2 with nvidia 1050 graphics card, intended use is CUDA (not graphics)
OS: ubuntu server 18.04.2 in a VM with the GPU connected via PCI passthrough
nvidia drivers v430 installed via ppa with no obvious errors

Problem: nvidia-smi reports
Unable to determine the device handle for GPU 0000:03:00.0: Unknown Error

Kernel errors:
[ 50.295927] NVRM: GPU 0000:03:00.0: RmInitAdapter failed! (0x23:0x56:498)
[ 50.295989] NVRM: GPU 0000:03:00.0: rm_init_adapter failed, device minor number 0

Any ideas?

See this:

Thanks, the trick is to add this to the .vmx file (or via the preferences GUI):
hypervisor.cpuid.v0 = FALSE

You also need to patch vmware esxi 6.7 to the latest patch as it’s buggy when using the above option (the VMs hang and never boot).

I try to add this to the .vmx file:hypervisor.cpuid.v0 = FALSE,but my system can’t start, it has been stuck in the black screen.Can you tell me how to deal with it in detail?

That symptom suggests you need to fully patch your esxi - 6.7 U3 is now available

I also encountered this problem and asked for help;ubuntu 18.04 and GTX 1080

The above suggestions worked for me. Let us know how you get on after you’ve followed those steps.