Ubuntu – Virtual box running android studio virtual device needs vtx

android-studioubuntu 18.04virtualboxvirtualization

I am having a windows machine as base(main/default) OS and using virtual box on top of it to run Ubuntu 18.04. On this linux machine(running via virtualbox on windows base machine) I am running android studio. The problem is when I try to run a virtual device(to emulate my app development) on android studio it throws an error as Vt-x required (Shown in the image) Now I have vt-x running (as per the configs in VirtualBox settings) and want to fix this.

IMO virtualbox is an emulator itself and cant power another emulator I guess or something on this line. Not sure shot in dark.

P.s: It works fine with AS on my windows without virtual box.

enter image description here

Best Answer

VirtualBox didn't support nested VMs until version 6 and this is only currently supported with AMD CPUs. Intel CPUs do not support nested virtualization on VirtualBox.

VirtualBox Documentation: https://www.virtualbox.org/manual/ch09.html#nested-virt

Oracle VM VirtualBox supports nested virtualization on host systems that run AMD CPUs.

Related Question