I'm curious about this as well. Is there any way to enable nested virtualization (make hardware assisted virtualization available to the guest os?)
Yes, you can enable cpu_passthrough flag in ACLI vm.update
That will expose typical nested virtualization support.
Note: Enabling nested virtualization precludes that specific vm from many features, such as ADS and live migration. It also precludes the cluster from doing any sort of rolling maintenance that would require live migration.
i.e if you had to upgrade the hypervisor or BIOS, you'd have to shut down the VM with this flag enabled.
This is because KVM/QEMU based systems, just at general technology level, do not support live migration for nested virtualization enabled VMs. Google apparently just patched this for GCP but that code hasnt made it upstream yet.
I am trying to enable an nested ESXi 6.5 instance running on AHV.
I have neabled the setting which allows the install to process however am now presented with a Network Driver Issue. "No Networks Adapaters were deteced"
Incase it helps I got this working by doing the below:-
1. Created New VM meeting min requirements for ESXi 6.5
Using ACLI changed the following
2. Add compatible Nic to stop NIC error:-
vm.nic_create VMNAME network="NETWORKNAME" model=e1000
3. Enable CPU Passthrough stop CPU error:-
vm.update VMNAME cpu_passthrough=true
4. Add and ATA / IDE disk so a boot disk is discoverable at install
vm.disk_create VMNAME container=default-container-XXXX create_size=100G bus=ide index=1
Similarly I got it to install however, after sometime, it purple screened. On subsequent reboots, it vails while loading the Balloon VMCI piece. It ran successfuly for quite awhile though. How is yours working?
I enabled cpu_passtrough flag for my VM, but when trying to configure the Hyper-V on my Windows 2016 Guest VM, I am now getting a different error stating that "virtualization support is not enabled in the BIOS".
I saw there is the argument "nested_hv", so I gave it a try, but I receives the error "Unknow keyword argument: nested_hv"
Any idea of what I'm doing wrong?
Hyper-V on KVM based platforms (like AHV) is still maturing upstream. To be clear, nested virtualization in AHV currently is only targeted at KVM based guests. Hyper-V and ESXi are "wild wild west" at best.
As that support matures upstream, and we consume those upstream updates, we'll get better and better here, but for now, I'd suspect this won't work well for now.
Out of posterity, the universal recommendation here is to make sure you're on the absolute latest AOS, with the absolute latest AHV. This will be true when AOS 5.5 comes out (shortly) as we've done quite a massive update on the AHV side, so you may find support here is a bit better. Can't promise as I haven't tested it myself, but its worth checking out.
If you're still having an issue there, feel free to submit a support ticket so we can make sure we're tracking this properly.