2
votes

My host laptop has an Intel i7 processor and virtualization is enabled in the BIOS. I know that since Virtual Box 6.0, Virtual Box allows nested virtualization, with passthrough of hardware virtualization functions to the guest VM.

The following checkboxes are enabled in my GuestOS (Ubuntu) settings in the VirtualBox:

Processor > Extended Features > Enable Nested VT-x/AMD-V
Acceleration > Paravirtualization Interface > KVM
Acceleration > Hardware Virtualization > Enable VT-x/AMD-V
Acceleration > Hardware Virtualization > Enable Nested Paging

I would assume that since VT-x is enabled, I would be able to run KVM on my Guest OS, but after running kvm-ok, I saw that my GuestOS does not support KVM extensions.

$ kvm-ok
INFO: Your CPU does not support KVM extensions
INFO: For more detailed results, you should run this as root
HINT:   sudo /usr/sbin/kvm-ok

$ egrep -c '(vmx|svm)' /proc/cpuinfo
0

Do anyone know how to run nested virtualization (ie. KVM Android Emulator) on Virtual Box Linux GuestOS?

2
Is KVM Android Emulator so good you would tolerate running it nested?John
Well, I need to run an Andorid Emulator on my guest OS. Any other recommendations are welcome!blackbeard
Android development is typically resource intensive, I presume the emulator is for test purposes and not development. Android used to use QEMU which was more simulation than emulation, dreadfully slow, but not dependent on hardware virtualization.John

2 Answers

2
votes

You can't because Virtualbox did not support nested virtualization for Intel processor in version 6.0. However, it only supported AMD processors in v6.0.

Consider updating your Virtual box to v6.1 or greater. As on that version, Virtualbox started to support nested visualization on Intel processors.

-1
votes

Pay attention: it is disabled by default, you have to enable it manually.

enter image description here

P.