I am new to VMWare and my current ESXi 7.0 instance, and I'm hoping someone may be able to point out a very obvious oversight on my part. I have an Ubuntu 20.0 VM (5.11.0-43 kernel) running in VSphere that I am in turn trying to use nested virtualization and run a VM using QEMU. Specifically I'm attempting to run the following test:
qemu-system-x86_64 -m 4096 -cpu host -enable-kvm -drive if=virtio,file=qc2img,cache=none -cdrom ubuntu-18.04.6-live-server-amd64.iso
However, I consistently get the following error:
qemu-system-x86_64: error: failed to set MSR 0x48f to 0x7fffff00036dfb
qemu-system-x86_64: /build/qemu-A1914X/qemu-4.2/target/i386/kvm.c:2691: kvm_buf_set_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.
Aborted (core dumped)
I have attempted to disable MSRS by running:
echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs
KVM-ok reports that KVM acceleration can be used, though I'm not certain how relevant that is. I have verified I can run the same QEMU command successfully on my Ubuntu 20 system running on the metal (as opposed to my VSphere instance), leading me to believe its a configuration issue with my ESXI system or host Ubuntu 20 VM. I do realize nested virtualization isn't optimal, but in this case I'm looking to use my VSphere setup to test several QEMU/KVM based solutions for a test lab. I appreciate any help.