Question

I am trying to install fast Android emulator which uses Intel x86 emulator accelerator. I've downloaded the accelerator via SDK manager but when I tried to install it I got following error message in the beginning of the installation:

HAXM failed

I know that my CPU (i7-3520M) supports VT-X virtualization so I went to BIOS to make sure that it is enabled:

BIOS

As you can see, the feature is enabled in BIOS. I've found 'securable.exe' utility on the internet and when I launch it the following window is shown:

securable

Any thoughts or recommendations? I have Lenovo Z580 Laptop with Intel Core i7 and I know for sure it should support such a basic virtualization functionality.

OS is Windows 8 Pro, I also have Hyper-V enabled, I use this machine for Windows Phone 8 development.

--- edit ---

It turns out that VT-x starts working when you turn off the Hyper-V! It is very annoying because I cannot use Android and WP emulators at the same time. Does anyone know how to fix it?

Was it helpful?

Solution

So the only solution I've found to make it work is to completely disable Hyper-V in Control Panel -> Programs and Features -> Turn Features On or Off.

If anyone knows how to enable VT-x without disabling Hyper-V please answer this question...

enter image description here

OTHER TIPS

I had the same problem and I just found, that in Avast 9 there is an option to prevent it from using the virtualization feature. It has some impact on the Avast Sandbox, but after I disabled it, I could finally install HAXM.

To turn off Hyper-V run this from cmd: bcdedit /set hypervisorlaunchtype off, and then reboot.

To turn Hyper-V back on, run this: bcdedit /set hypervisorlaunchtype auto

  1. First of all you have to disable Hyper-V technology. You can do this by disabling this technology in Control Panel, Programs, Windows Functions

  2. If you use Avast, disable it for the installation time. You can restore all Avast services after installation process.

I've recently had some problems with installing HAXM on my Machine (I use Dell Inspiron 5521 with Core i7 processor) and nothing helped. Finally, I downloaded this pack:

http://software.intel.com/en-us/blogs/2013/04/25/workaround-patch-for-haxm-installation-error-failed-to-configure-driver-unknown

copied it to my HAXM folder and then started .cmd file as an Administrator. After restarting computer HAXM was installed on my computer. You can check it by typing

sc query intelhaxm

in your cmd.

Hyper-V enables a hypervisor under Windows, so the OS you're running is already virtualized. VT-x is a hardware feature, so nested VT-x is not possible (without adding hardware + software support, which seems unlikely), so you will not be able to enable Hyper-V and another VT-x solution (HAXM, VirtualBox, etc) at the same time.

All the suggestions above basically involve disabling Hyper-V. It's a valid approach if you're not planning to use it. But in case you do (e.g. developing for both Windows Phone and Android on the same machine etc.).

If you need to keep Hyper-V enabled and still use Android Studio for development and debugging, you can follow steps from Using Android-X86 as an Emulator in Hyper-V for Windows. The idea is:

  1. Download Android ISO and create a Hyper-V VM off of it
  2. Enable developer Developer Options, USB debugging and app installation from unknown sources
  3. Connect to the Hyper-V VM image via adb
  4. Launch your project from Android Studio and the VM will show up in the list of devices to connect to

For me, this was caused by avast.

During installation I was getting 'unknown error'. The intelhaxm service was being installed, but trying to start resulted in Access Denied.

  1. I disabled virtualization support in Avast
  2. I uninstalled what was left from HAXM
  3. I downloaded latest installer from intel
  4. I unpacked it using 7zip, unpack 64bit installer as well.
  5. I restarted my PC in safe mode. I installed HaxInst64.exe
  6. I changed *.win10_64 to *, manually installed .inf file
  7. I restarted the PC into normal mode, the service was running, but HAXM still not instaleld.
  8. I ran standard HAXM installer.

Done

For now (2018) Android emulator works with Hyper-V and Windows 10 (without intel haxm), you have to check Windows version (1803+) and install "Windows Hypervisor Platform" in windows features. All recomedations are here: https://docs.microsoft.com/ru-ru/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?tabs=vswin

Intel made hotfix for Windows 8.1 (HAMX 1.0.7):
https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager

So now you only have to disable AVAST during installation :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top