intel / haxm

Intel® Hardware Accelerated Execution Manager (Intel® HAXM)
BSD 3-Clause "New" or "Revised" License
3.18k stars 853 forks source link

Nested virtualization not working: Processor does not support VMX operation #479

Open alexanderwwagner opened 1 year ago

alexanderwwagner commented 1 year ago

Describe the Bug I try to use qemu with haxm on windows host to run FreeBSD as guest. For my project I have to use bhyve as hypervisor to run some virtualmachines within FreeBSD. If I try to load the vmm kernel module I get the following error. If I try the same procedure with VmWare it works without any problems. If I try it on a linux host with kvm instead of haxm it works without any problems.

# kldload vmm
vmx_modinit: processor does not support VMX operation
module_register_init: MOD_LOAD (vmm, 0xffffffff82c04200, 0) error 6
driver bug: Unable to set devclass (class: fdc devname: (unknown))

Are there at the moment some problems with nested virtualization?

Summary:

Host Environment

Guest Environment

To Reproduce

qemu-system-x86_64.exe -m 1G -smp 2 -boot order=dc -hda .\freebsd.img -nic tap,ifname=TAP -accel hax

// Load vmm within the guest
# kldload vmm
vmx_modinit: processor does not support VMX operation
module_register_init: MOD_LOAD (vmm, 0xffffffff82c04200, 0) error 6
driver bug: Unable to set devclass (class: fdc devname: (unknown))

Expected Behavior

Working bhyve within FreeBSD Guest.

Reproducibility

100%