Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HAXM says Hyper-V is enabled when Windows says it is not #105

Closed
SqlBenjamin opened this issue Sep 22, 2018 · 26 comments

Comments

@SqlBenjamin
Copy link

commented Sep 22, 2018

I continually get an error when trying to install haxm that says:
"This computer does not support Intel Virtualization Technology (VT-x) or it is being exclusively used by Hyper-V."
When I run "emulator-check.exe accel hyper-v" in a command prompt I get the following:


accel:
0
HAXM is not installed, but Windows Hypervisor Platform is available.
accel
hyper-v:
2
Hyper-V is enabled
Hyper-V


However, Windows shows that it is not enabled:
image
I've even made sure the services were not running and they aren't.
I've double, no triple, checked that virturalization is enabled in the BIOS - it is. I've not only restarted but cut power to the machine for a bit too.
I'm running a Lenovo Yoga X1. The processor is an Intel Core i7 6600U.
I'm running it on Windows 10 Enterprise version 1803, build 17134.228. x64
This is happening with version 7.3 of haxm.

I'm seriously at a loss as to what to do in order to install haxm. All the forums say to do the same thing which I've already done to no avail. Is it that the check incorrectly detects Hyper-V being enabled? Do I need to uninstall a specific KB?

@raphaelning

This comment has been minimized.

Copy link
Contributor

commented Sep 25, 2018

Thanks for the detailed description of the issue. It's similar to one I resolved before: https://issuetracker.google.com/issues/110260335#comment6

The gist of that post is:

Basically, Hyper-V could still be running despite what Turn Windows features on and off reports. To completely turn it off, you will need to disable a Windows Defender feature called HVCI through Windows Defender settings > Device security > Core isolation details > Memory integrity > Off (see attached screenshot). A reboot is required for this change to take effect.

windows-defender-memory-integrity

@SqlBenjamin

This comment has been minimized.

Copy link
Author

commented Sep 28, 2018

Thanks for the reply. I just checked that and it was already off. Unfortunately, I turned it on while thinking "I'll just make sure it's off by seeing if it turns on". (facepalm). Now I have to restart and turn it back off and restart again. :) Could there be something else preventing it or causing it to think it's on?

@raphaelning

This comment has been minimized.

Copy link
Contributor

commented Oct 17, 2018

Sorry for the very late reply. This is one of the posts I missed during my time off...

Besides HVCI, I'm not aware of anything else that can prevent Hyper-V from being turned off. One last try: there's a CLI way to disable Hyper-V, and it may work more reliably than the GUI way (Windows Features dialog).

  1. Open an elevated (i.e. Run as administrator) Command Prompt.
  2. bcdedit /set hypervisorlaunchtype off
  3. Also make sure HVCI (Windows Defender's memory integrity setting) is off.
  4. Reboot.
@raphaelning raphaelning added the windows label Oct 17, 2018
@jkk88

This comment has been minimized.

Copy link

commented Nov 28, 2018

You can prepare Windows host with Device Guard and Credential Guard hardware readiness tool on https://www.microsoft.com/en-us/download/details.aspx?id=53337
DG_Readiness_Tool_v3.6.ps1 -disable

@joshuamataaraya

This comment has been minimized.

Copy link

commented Dec 26, 2018

I'm also not been able to install HAXM.
image
Hyper-V is already off
image
My processor is Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz, 2801 Mhz, 2 Core(s), 4 Logical Processor(s) and based on their specification it supports Intel Virtualization Technology.
I can't access the core isolation setting as the device security option is not shown in my Windows Defender Security Center Menu
image

@raphaelning

This comment has been minimized.

Copy link
Contributor

commented Dec 27, 2018

@joshuamataaraya Your CPU definitely supports VT-x. Have you checked whether VT-x is enabled in your BIOS? If you launch the System Information tool from Start menu, it should report whether VT-x is enabled in BIOS:

Hyper-V - Virtualization Enabled in Firmware Yes

You can actually copy the entire System Summary and paste it here, because it also gives us details about your Windows installation. Of course, please feel free to redact irrelevant/personal information.

@jkk88

This comment has been minimized.

Copy link

commented Dec 27, 2018

I'm also not been able to install HAXM.

You need to use Device Guard and Credential Guard hardware readiness tool as I wrote in previous post.

@joshuamataaraya

This comment has been minimized.

Copy link

commented Dec 27, 2018

Thanks @raphaelning and @jkk88 I've used the Device Guard and Credential Guard hardware readiness tool and it's working now

@raphaelning

This comment has been minimized.

Copy link
Contributor

commented Dec 28, 2018

Great! Thanks @jkk88 for pointing us to the Device Guard readiness tool. I'm closing this issue now, but if @SqlBenjamin still can't get Hyper-V completely turned off after using the new tool, we can reopen the issue.

@impactx

This comment has been minimized.

Copy link

commented Jan 16, 2019

Hyper-V isn't showing up for me . I already enabled VT in bios and tried a bunch of things.

@HaHoYou

This comment has been minimized.

Copy link
Contributor

commented Jan 17, 2019

So do you mean you already tried Device Guard readiness tool, disable it?

@HaHoYou

This comment has been minimized.

Copy link
Contributor

commented Jan 17, 2019

What is your output of these command: `

bcdedit /v
sc query intelhaxm
powershell dgreadiness_v3.6\DG_Readiness_Tool_v3.6.ps1 -Ready`

@abdulvahidcetinturk

This comment has been minimized.

Copy link

commented Feb 19, 2019

I did pretty much everything mentioned above. But I still get the same error. I am trying to download haxm for androidstudio. I cannot continue without intelhaxm. Things I've done are mentioned below.

image

This is processor specs.

lenovospecs

Hyper-v is already disabled from features and in command.

hypervclosed
hypervclosedcommand

I've used the Device Guard and Credential Guard hardware readiness tool as well.

credentialguard

Virtualization is enabled when I check through task manager. But I cannot access enabling virtualization through BIOS setting because it does not show up.

virtualization

Working for a solution for 5 days but still no progress. I disabled the antivirus program as well. I guess I do something wrong or missing sth important. Is there any other issues that can prevent downloading haxm ?
Helps are appreciated. Thanks.

@Nittu88

This comment has been minimized.

Copy link

commented Mar 6, 2019

I found some kind of trick that worked for me!
Hope it will help you solve your problems too.
At first I enabled Virtualization in the BIOS settings, but when I started Android emulation via Android Studio it failed to use hardware acceleration.
I followed the instructions here:

Open an elevated (i.e. Run as administrator) Command Prompt.
bcdedit /set hypervisorlaunchtype off
Also make sure HVCI (Windows Defender's memory integrity setting) is off.
Reboot.

but it didn't work.

Then I read the suggestion here:
45989491-8a2f5380-c0ae-11e8-9e62-e2fc17c55e0e
and my tick has been disabled all the time.

I enabled it and restarted.
When Windows restarted i ran Android Studio again, just to check it was sending the same error on screen and I got struck seeing that, instead, it was working!!!

So, what worked for me was:

  1. Running the command in the Command Prompt as Administrator
  2. Enable virtualization in the BIOS
  3. Check the following ticks were off
    53020975-d1085600-3460-11e9-9220-df7d4d9d2ba8
  4. Enable this option here that was always disabled:
    45989491-8a2f5380-c0ae-11e8-9e62-e2fc17c55e0e

Don't ask me why but now it works properly.

@Nittu88

This comment has been minimized.

Copy link

commented Mar 6, 2019

Also, I uninstalled intel HAXM in Android Studio in "tools>SDK manager>SDK tools>Intel x86 Emulator Accelerator.
If I try to reinstall it I get the same error as before, but at least now I can Virtualize Android...

@jkk88

This comment has been minimized.

Copy link

commented Mar 8, 2019

Would be nice to change that misleading error message above (Ensure Hyper-V is disabled in Windows Feature), because there are more features they need to be turned off. MS article about disabling Device Guard or Credential Guard is here: https://docs.microsoft.com/en-us/windows/security/identity-protection/credential-guard/credential-guard-manage.

@Nittu88

This comment has been minimized.

Copy link

commented Mar 12, 2019

Would be nice to change that misleading error message above (Ensure Hyper-V is disabled in Windows Feature), because there are more features they need to be turned off. MS article about disabling Device Guard or Credential Guard is here: https://docs.microsoft.com/en-us/windows/security/identity-protection/credential-guard/credential-guard-manage.

Thanks,
I followed the instructions and it worked for me.

@candice-dick

This comment has been minimized.

Copy link

commented Mar 29, 2019

My laptop runs on AMD and I have followed all instructions above and I am still unable to run the emulator. Please assist, thanks

@MagicAndre1981

This comment has been minimized.

Copy link

commented Apr 21, 2019

@candice-dick for AMD based system use Hyper-V platform, HAXM is Intel only.

@fakeinc

This comment has been minimized.

Copy link

commented Jun 1, 2019

Just came across this today. After 1903 update, Windows Sandbox has to be also turned off in Windows features. This fixed the problem for me.

@MagicAndre1981

This comment has been minimized.

Copy link

commented Jun 3, 2019

@fakeinc also use Hyper-V platform instead

@cihangocmen

This comment has been minimized.

Copy link

commented Jun 16, 2019

bcdedit /set hypervisorlaunchtype off this code worked.

@Omar2002

This comment has been minimized.

Copy link

commented Jun 18, 2019

@bakeyevrus

This comment has been minimized.

Copy link

commented Jul 2, 2019

A combination of bcdedit /set hypervisorlaunchtype off and disabling Windows Hypervisor Platform in Windows Features worked for me.
intel_haxm

@sampalmer

This comment has been minimized.

Copy link

commented Aug 21, 2019

To elaborate on @MagicAndre1981's suggestion of using Hyper-V instead of HAXM, Google recently added Hyper-V support to the official Android emulator. So instead of disabling OS security features to get HAXM working, some users can use Hyper-V by opening "Windows Features" and turning on both "Hyper-V" and "Windows Hypervisor Platform".

@nikolayAleksandrov

This comment has been minimized.

Copy link

commented Sep 16, 2019

I had the same issue and guess what once I enabled Hyper-V the problem had been solved. And yes also the message was to disable this feature as recommendation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.