3

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

6
  • What CPU is your system running on? – music2myear Feb 15 '19 at 21:59
  • Intel i7-7700HQ CPU. As mentioned, I am having this issue with AS on ubuntu on virtualbox. On my main Windows OS the AVD works. – Manthan_Admane Feb 16 '19 at 21:13
  • That's not clear in the question. You say you're running VB AND AS, not AS ON VB. Please edit your question to make this more clear. As a note your PS repeats this unclear phrasing. The computer has VB on it: saying "Windows without VB" does not appear to accurately convey the state of things. – music2myear Feb 18 '19 at 17:19
  • This is my first ever question. Sorry for the inconvenience, I have edited the question. Is it understandable now? Thanks : ) – Manthan_Admane Feb 23 '19 at 7:25
  • Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. Any information should be contained in the question body instead of a comment – Ramhound Feb 23 '19 at 7:57
7

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.

3
  • Oh! Yeah, I am running an Intel CPU. So my guess was right it was something with nested virtualization. Any way to fix it with current hardware constraints? – Manthan_Admane Feb 23 '19 at 7:27
  • @Manthan_Admane - No; Nested virtualization isn’t supported by VirtualBox on Intel systems – Ramhound Feb 23 '19 at 7:58
  • No, hardware constraints are typically not possible to be worked around. – music2myear Feb 24 '19 at 22:33
1

Recently VirtualBox released a new beta which includes: "Support for nested hardware-virtualization on Intel CPUs (starting with 5th generation Core i, codename Broadwell)"

You can find it here: https://forums.virtualbox.org/viewtopic.php?f=15&t=94724

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.