I was not able to get this to work. I did change it a little.
A vendor wants to use nested virtualization to do an upgrade on a VM that is using Nvidia. The instructions they sent were for VMware 6.5 and we are on VMware 8.0.3.
Their instructions say to edit the vmx and add:
vhv.enable = "TRUE"
hypervisor.cpuid.v0 = "FALSE"
When this didn't work, I found this thread and modified it a little to look like this:
vhv.allowPassthru = "TRUE"
vhv.enable = "TRUE"
hypervisor.cpuid.v0 = "FALSE"
Seemed to work, before I booted it up, I checked and the box next to "Expose hardware assisted virtualization to the guest OS" and the PCI device NVIDIA was still there.
When I powered it on, I found the network adapter was not connected, the box was unchecked. When I checked the box, I got the error "Nested Hardware-Assisted Virtualization is not supported on a virtual machine with a PCI passthrough device."
I'm wondering if there is a way to get this to work....
------------------------------
KY1121
------------------------------
Original Message:
Sent: Jun 09, 2023 08:13 AM
From: 390843759
Subject: vSphere 7.0- Unable to perform PCI pass through with Nested Virtualization Enabled
Many thanks for your inspiration on that!
I had the same problem in vSphere 8, fixed doing that:
1) unregister vm esxi from vCenter
2) browse datastore containing vm esxi
3) In the vm .vmx file, add:
vhv.allowPassthru = "TRUE"
vhv.enable = "TRUE"
Good luck!