Android Studio running on VMware virtual machine: KVM is not installed

You have vCenter and vSphere Web client use this to edit the VMs config Right click the Your_Windows_GuestOs > Edit Settings > CPU > Check the box "Expose hardware assisted virtualization to the guest OS .


Install Android on a Cloud Virtual machine (AWS windows server)

Since my machine was slow with Android Studio I created a virtual machine on windows server on AWS with the best processor and RAM configurations, which gave me seamless programming and execution experience. But to use the emulator I face the error listed below.

Error:
Unable to install Intel HAXM
HAXM doesn't support nested virtual machines.
Unfortunately, the Android Emulator can't support virtual machine acceleration from within a virtual machine.
Here are some of your options:
 1) Use a physical device for testing
 2) Start the emulator on a non-virtualized operating system
 3) Use an Android Virtual Device based on an ARM system image (This is 10x slower than hardware accelerated virtualization)

Since we can't connect our device to the Cloud machine, the option #3 is the best way to go.

Once the Android studio is installed,

Go to Tools -> Android -> AVD Manager

Click "Create Virtual Device"

Select which device you want to use from the list (i.e Nexus 5) and click "Next".

Here you're given a list of android release versions. Look at the ABI column. 

Choose "Armeabi-v7a" for whichever API Level you want.

Hit "Next" and modify name/size, click "Finish" when done.

if 'Next' doesn't work, download the desired image and continue

Bad news found in the Using the Emulator section of the official Android developer website:

Not Inside a VM - You cannot run a VM-accelerated emulator inside another virtual machine, such as a VirtualBox or VMWare-hosted virtual machine. You must run the emulator directly on your system hardware.

So it seems my best alternative is look for a real device compatible with the Android Studio for running the apps.


I faced the same problem. I searched and I found the solution it works with me now:

In VMware:

  1. Open Virtual machine setting.
  2. Go to the processor.
  3. Check the virtualize Intel VT-x/EPT or AMD-RVI option.
  4. Click ok and run the Virtual machine, it should work fine with you.

Hope that works with you.

This link HW virtualization in VMware (KVM - Android Studio) helped me to find the solution.