Virtualization inside VirtualBox (nested virtualization)

hardware accelerationvirtualboxvirtualization

I have created a Debian VM (using VirtualBox in my Windows 10 host machine) and installed various features necessary for developing an android application. While installing Android Studio,

I noticed that in order to have the accelerated performance mode, I had to install KVM which led to me finding out that, inside VirtualBox, hardware virtualization seems to not be supported. A few minutes of googling confirmed that but most answers were a few years old.

  1. Has anything changed since?
  2. In Android Studio without KVM, is the speed difference significant?

Best Answer

Hardware acceleration (accelerated performance mode), as the name suggests requires hardware assistance from the CPU (see Intel VT, not sure what AMD's equivalent is).

Within your Debian VM it's only aware the instruction sets provided by the virtual CPU (vCPU) opposed to the physical core so the accelerated mode isn't available.

Basically avoid nested virtualisation if you need the performance.

Why not just develop on the Windows 10 host? If you need a Linux environment try using the Windows subsystem for Linux functionality. That'd allow you to install Ubuntu and then the Android development suite within that. Suspect that'd provide a better experience.

Related Question