Virtualbox inside KVM VM

I’m trying to make nested virtualization to work.

Layers look like this:
L0:Debian 5.4.2 QEMU/KVM
L1:Windows 10 Pro
L2:Debian VirtualBox

dmesg shows “kvm: Nested Virtualization enabled” and I’ve added to vm’s XML.

L2 VM starts and goes to grub, but after choosing OS, vm hangs on black screen. I’ve tried different distros on L2 but usually it goes same, but for Debian it shows:

Spectre V2 : Spectre mitigation: LFENCE not serializing, switching to generic retpoline
Failed to access perfctr msr (MSR c0010007 is 0)

What am I missing to make this work?

If it helps, cpu is Ryzen 2700.
L1 VM chipset is Q35.
L1 VM firmware ovmf.

  1. Is layer zero the host, or…? The layers are a bit confusing to be.
  2. I think that this might help: KVM not showing correct CPU in VM

Yes. L0 would be host.

From what i found out, looks like its not supported from virtualbox. Had some success with vmware player. Guest inside a guest booted, but i had some restrictions, like i could only use 2 cores.

So seems vmware also has limited support for this type of case.

I’ve read that it could work with older versions of vitualbox, but i had no good outcomes from this.

Seems i’ll stick with vmware solution for now.