google/android-emulator-hypervisor-driver

Win 10, Ryzen 5 3400G, Error 4294967201

47gv opened this issue · 9 comments

47gv commented

image

tl:
[SC] ControlService FAILURE 1062:

Service was not started

[SC] DeleteService SUCCESS
[SC] StartService FAILURE com error 4294967201.

C:\Users\User\AppData\Local\Android\Sdk\extras\google\Android_Emulator_Hypervisor_Driver-2>

I am having issues while installing the driver. Here's what I've done so far:

CPU: Ryzen 5 3400G
GPU: GTX 1650 Super
MB: Gigabyte A320M-H

Please help

Same problem here :(

I had the same issue until I realized I had to enable virtualization on my CPU.

Got to the BIOS, turned it on, and now the hypervisor is installed and my Android emu works fine 😄

@RobbWatershed Thanks man, this worked for me!

So everyone who are still facing this issue in 2022 this is what worked for me finally!
Make sure you have enabled Virtualization support for your AMD CPU (SVM is enabled in BIOS), then follow the steps below.

OS Windows 10
CPU: Ryzen 5 5600X

NOTE: WSL won't work if you follow these steps.

Steps:

  1. In search box type "gpedit" then Goto -> Computer Configuration -> Administrative Templates -> System -> Device Guard -> Turn on Virtualization Based Security. Now Double click that and "Disable". Apply and Save.
  2. In search box, type Turn Windows features on or off, now uncheck Hyper-V and restart system.
  3. Open Registry Editor by typing regedit in search box, now Go to HKEYLOCALMACHINE\System\CurrentControlSet\Control\DeviceGuard. If it doesn't exist, add a new DWORD value named EnableVirtualizationBasedSecurity and set it to 0 to disable it (I already had it).
  4. Next Go to HKEYLOCALMACHINE\System\CurrentControlSet\Control\LSA. If it doesn't exis, add a new DWORD value named LsaCfgFlags and set it to 0 to disable it. (Also had it)
  5. Open command prompt (not powershell) as a administrator and type the following commands:
  • bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloader
  • bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path "\EFI\Microsoft\Boot\SecConfig.efi"
  • bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215}
  • bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO,DISABLE-VBS
  • bcdedit /set hypervisorlaunchtype off

Restart system and now it should work when you run "silent_install.bat"

So everyone who are still facing this issue in 2022 this is what worked for me finally! Make sure you have enabled Virtualization support for your AMD CPU (SVM is enabled in BIOS), then follow the steps below.

OS Windows 10 CPU: Ryzen 5 5600X

NOTE: WSL won't work if you follow these steps.

Steps:

1. In search box type "gpedit" then Goto -> Computer Configuration -> Administrative Templates -> System -> Device Guard -> Turn on Virtualization Based Security. Now Double click that and "Disable". Apply and Save.

2. In search box, type Turn Windows features on or off, now uncheck Hyper-V and restart system.

3. Open Registry Editor by typing regedit in search box, now Go to HKEYLOCALMACHINE\System\CurrentControlSet\Control\DeviceGuard. If it doesn't exist, add a new DWORD value named EnableVirtualizationBasedSecurity and set it to 0 to disable it (I already had it).

4. Next Go to HKEYLOCALMACHINE\System\CurrentControlSet\Control\LSA. If it doesn't exis, add a new DWORD value named LsaCfgFlags and set it to 0 to disable it. (Also had it)

5. Open command prompt (not powershell) as a administrator and type the following commands:


* bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloader

* bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path "\EFI\Microsoft\Boot\SecConfig.efi"

* bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215}

* bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO,DISABLE-VBS

* bcdedit /set hypervisorlaunchtype off

Restart system and now it should work when you run "silent_install.bat"

The only solution that worked for me! Thanks!

So everyone who are still facing this issue in 2022 this is what worked for me finally! Make sure you have enabled Virtualization support for your AMD CPU (SVM is enabled in BIOS), then follow the steps below.

OS Windows 10 CPU: Ryzen 5 5600X

NOTE: WSL won't work if you follow these steps.

Steps:

  1. In search box type "gpedit" then Goto -> Computer Configuration -> Administrative Templates -> System -> Device Guard -> Turn on Virtualization Based Security. Now Double click that and "Disable". Apply and Save.
  2. In search box, type Turn Windows features on or off, now uncheck Hyper-V and restart system.
  3. Open Registry Editor by typing regedit in search box, now Go to HKEYLOCALMACHINE\System\CurrentControlSet\Control\DeviceGuard. If it doesn't exist, add a new DWORD value named EnableVirtualizationBasedSecurity and set it to 0 to disable it (I already had it).
  4. Next Go to HKEYLOCALMACHINE\System\CurrentControlSet\Control\LSA. If it doesn't exis, add a new DWORD value named LsaCfgFlags and set it to 0 to disable it. (Also had it)
  5. Open command prompt (not powershell) as a administrator and type the following commands:
  • bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloader
  • bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path "\EFI\Microsoft\Boot\SecConfig.efi"
  • bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215}
  • bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO,DISABLE-VBS
  • bcdedit /set hypervisorlaunchtype off

Restart system and now it should work when you run "silent_install.bat"

I also disabled HypervisorEnforcedCodeIntegrity in regedit.exe:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity
set the dword named "Enabled" to 0

this worked for me

So everyone who are still facing this issue in 2022 this is what worked for me finally! Make sure you have enabled Virtualization support for your AMD CPU (SVM is enabled in BIOS), then follow the steps below.

OS Windows 10 CPU: Ryzen 5 5600X

NOTE: WSL won't work if you follow these steps.

Steps:

  1. In search box type "gpedit" then Goto -> Computer Configuration -> Administrative Templates -> System -> Device Guard -> Turn on Virtualization Based Security. Now Double click that and "Disable". Apply and Save.
  2. In search box, type Turn Windows features on or off, now uncheck Hyper-V and restart system.
  3. Open Registry Editor by typing regedit in search box, now Go to HKEYLOCALMACHINE\System\CurrentControlSet\Control\DeviceGuard. If it doesn't exist, add a new DWORD value named EnableVirtualizationBasedSecurity and set it to 0 to disable it (I already had it).
  4. Next Go to HKEYLOCALMACHINE\System\CurrentControlSet\Control\LSA. If it doesn't exis, add a new DWORD value named LsaCfgFlags and set it to 0 to disable it. (Also had it)
  5. Open command prompt (not powershell) as a administrator and type the following commands:
  • bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloader
  • bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path "\EFI\Microsoft\Boot\SecConfig.efi"
  • bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215}
  • bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO,DISABLE-VBS
  • bcdedit /set hypervisorlaunchtype off

Restart system and now it should work when you run "silent_install.bat"

What are the commands to revert all the bcdedit commands?
For me this did not work. Sadly it made it worse.

So everyone who are still facing this issue in 2022 this is what worked for me finally! Make sure you have enabled Virtualization support for your AMD CPU (SVM is enabled in BIOS), then follow the steps below.

OS Windows 10 CPU: Ryzen 5 5600X

NOTE: WSL won't work if you follow these steps.

Steps:

  1. In search box type "gpedit" then Goto -> Computer Configuration -> Administrative Templates -> System -> Device Guard -> Turn on Virtualization Based Security. Now Double click that and "Disable". Apply and Save.
  2. In search box, type Turn Windows features on or off, now uncheck Hyper-V and restart system.
  3. Open Registry Editor by typing regedit in search box, now Go to HKEYLOCALMACHINE\System\CurrentControlSet\Control\DeviceGuard. If it doesn't exist, add a new DWORD value named EnableVirtualizationBasedSecurity and set it to 0 to disable it (I already had it).
  4. Next Go to HKEYLOCALMACHINE\System\CurrentControlSet\Control\LSA. If it doesn't exis, add a new DWORD value named LsaCfgFlags and set it to 0 to disable it. (Also had it)
  5. Open command prompt (not powershell) as a administrator and type the following commands:
  • bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloader
  • bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path "\EFI\Microsoft\Boot\SecConfig.efi"
  • bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215}
  • bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO,DISABLE-VBS
  • bcdedit /set hypervisorlaunchtype off

Restart system and now it should work when you run "silent_install.bat"

You're a saver, mate!

Thank you very much!!

So everyone who are still facing this issue in 2022 this is what worked for me finally! Make sure you have enabled Virtualization support for your AMD CPU (SVM is enabled in BIOS), then follow the steps below.
OS Windows 10 CPU: Ryzen 5 5600X
NOTE: WSL won't work if you follow these steps.
Steps:

  1. In search box type "gpedit" then Goto -> Computer Configuration -> Administrative Templates -> System -> Device Guard -> Turn on Virtualization Based Security. Now Double click that and "Disable". Apply and Save.
  2. In search box, type Turn Windows features on or off, now uncheck Hyper-V and restart system.
  3. Open Registry Editor by typing regedit in search box, now Go to HKEYLOCALMACHINE\System\CurrentControlSet\Control\DeviceGuard. If it doesn't exist, add a new DWORD value named EnableVirtualizationBasedSecurity and set it to 0 to disable it (I already had it).
  4. Next Go to HKEYLOCALMACHINE\System\CurrentControlSet\Control\LSA. If it doesn't exis, add a new DWORD value named LsaCfgFlags and set it to 0 to disable it. (Also had it)
  5. Open command prompt (not powershell) as a administrator and type the following commands:
  • bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloader
  • bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path "\EFI\Microsoft\Boot\SecConfig.efi"
  • bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215}
  • bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO,DISABLE-VBS
  • bcdedit /set hypervisorlaunchtype off

Restart system and now it should work when you run "silent_install.bat"

What are the commands to revert all the bcdedit commands? For me this did not work. Sadly it made it worse.

Really sorry to hear that, I am not exactly sure of the steps to undo, but basically you have to just follow the steps in reverse and undo the structures created!