17

I'm developing a suite of mobile apps - specifically Windows Store/Mobile 8 and Android.

Having installed VS2012 and then Monodroid, I was then able to start x86 Android images in the emulator and take advantage of the Intel HAXM acceleration (emulator output confirms HAXM working) to make the VM buttery-smooth.

I then installed the Windows Phone 8 SDK - which enables the Hyper V role - and now the emulator says it can't find HAXM. I then uninstalled and tried to reinstall HAXM, but now it won't - saying that my processor doesn't support it.

The VT-x extensions are still enabled in the BIOS - so I'm thinking that Hyper-V has blocked the Intel HAXM from working.

Of course it's not a killer - but a non-accelerated Android image is considerably slower than one with HAXM enabled - anybody else encountered this problem? Googling isn't bringing up anything obvious...

Update (30th Nov 2012)

Per @alexw's suggestion I tried stopping & disabling Hyper-V; with a restart. It still doesn't work.

I realise the next step is probably to the Windows Phone SDK (and remove Hyper-V) and then try again - to confirm that it really is the presence of Hyper-V. At the moment this is less than convenient - but I'll try and do it soon and update.

2
  • Interesting. With WP7-Emulator I had the same problem in the opposite direction - with installed HAXM the WP7-Emulator won't start because of missing processor feature. Looks like Microsoft and Intel should agree on a common schema how to use the VT-x processor feature in a non-exclusive way.
    – Robert
    Nov 8, 2012 at 16:20
  • very interesting... would seem there is definitely a link there then... damn... Nov 8, 2012 at 17:21

5 Answers 5

18

The best thing you can do to get HAXM detect VT again, is turning the whole Hyper-V "Feature" off. Open "Control Panel -> "Programs" -> "Turn Windows features on or off" (under "Programs and Features") and locate "Hyper-V", uncheck, reboot.

Looks like Hyper-V and HAXM are mutually exclusive, which is kind of a nuisance, because you even need to reboot twice to enable or disable either feature.

2
  • thanks a lot for the answer. I upgraded my computer t0 Core i5 primarily for using the Intel Android image, but could not get it to work until I found your tip.
    – Hong
    Jan 22, 2013 at 1:29
  • 1
    It is enough to turn off "Hyper-V Platform" (Which still disables Hyper-V functionality, but leaves the management tools installed) Jul 3, 2013 at 19:05
16

I was in your same case that needed to support Hyper-V and Intel HAXM. Disabling and enabling the feature and then restarting was overkill so I found an alternative solution.

You can create 2 boot entries, one for Windows with the regular configuration of Hyper-V enabled and another one with Hyper-V disabled. I logged in with the second one (Hyper-V disabled) and I was able to install Intel HAXM.

To accomplish this you need:

  1. Open a command prompt as Administrator
  2. Enter the command: bcdedit /copy {current} /d "Windows 8 - No Hyper-V"
  3. This will output an id with the format {GUID} that you need to copy it to use it in the next command.
  4. Enter the command: bcdedit /set { copied GUID of step 3 } hypervisorlaunchtype off

More details in this post.

3

I had a similar problem installing HAXM on Windows 8. I did the following with no effect:

However, I tried installing VirtualBox after the above actions (VirtualBox installed fine) and created a new VM. Running the VM caused my machine to blue screen, but after the reboot HAXM installed fine. Perhaps running VirtualBox flips some sort of flag at the OS level to allow HAXM to install.

I was also running AVAST at that time, and according this (Running the new Intel emulator for Android), that may cause a problem. However, I didn't have to disable AVAST to get HAXM installed.

2
  • Thank you k3v! Your solution worked for me. As you explained, VirtualBox is doing some magic.
    – emcoding
    Feb 15, 2014 at 9:57
  • Anyone wondering why this works: When enabling the hypervisor, Windows actually virtualises the host operating system. Because the host operating system runs virtual the intel extensions cannot access the hardware directly.
    – Sebazzz
    Aug 12, 2015 at 20:27
0

You could try stopping the Hyper-V service when not needed and re-enabling it when you want to work on a WP8 project. It's a pain but the performance improvement offered by HAXM is immense.

Open services.msc, find the hvboot service (Hyper-V) and stop it. If this doesn't help you may need to disable the service and restart your pc.

4
  • meant to try this on Friday, but will do so tomorrow and report back. It would be a simple, if annoying, fix :-) Nov 11, 2012 at 8:22
  • @AndrasZoltan how did you go with this?
    – Alex Wiese
    Nov 15, 2012 at 5:00
  • yeah... uh... spent the last three days with qa on the Web service project that the android app (and third parties) will talk to (gotta prioritise!). Don't worry, I don't leave questions hanging Nov 15, 2012 at 6:15
  • 4
    okay finally got round to trying this... stopped the Hyper-V services; no joy. Disabled the Hyper-V services and restarted - no joy. It would seem simply installing Hyper-V prevents the HAXM from detecting VT-x (or causing some other problem that manifests as that user message)... what a load of rubbish! Nov 16, 2012 at 17:42
0

I had the same problem. After a long search I found the answer. In my case, I had installed Avast Antivirus, first uninstall avast, reboot your PC, install Haxm, reboot. you can install again antivirus.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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