google / android-emulator-hypervisor-driver

Other
773 stars 251 forks source link

Issue while installing Android Emulator Hypervisor for AMD Processor #25

Open Dinesh-Murugesan opened 4 years ago

Dinesh-Murugesan commented 4 years ago

I am facing the below issue while trying to install Android Emulator for AMD Processor

"Running Android Emulator Hypervisor Driver for AMD Processors installer [SC] ControlService FAILED 1062:

The service has not been started.

[SC] DeleteService SUCCESS [SC] StartService FAILED with error 4294967201. Android Emulator Hypervisor Driver for AMD Processors installation failed. To install Android Emulator Hypervisor Driver for AMD Processors follow the instructions found at: https://github.com/google/android-emulator-hypervisor-driver-for-amd-processors Done"

I have enable the virtualization in BIOS and disabled Hyper-V in the windows feature. But still I am not able to install the Android Emulator. Please help

wesleydeland commented 4 years ago

I am also having this exact issue. Please advise

Taogle2018 commented 4 years ago

Can you run "emulator-check.exe hyper-v" and post the result?

MagicCrafter200 commented 4 years ago

I had the same problem, and if I run "emulator-check.exe hyper v" my computer opens a window, but close it instantly

Taogle2018 commented 4 years ago

@MagicCrafter200 This is what it looks like when I run it on my desktop. Capture I don't quite understand what do you mean by "opens a window, but close it instantly".

Taogle2018 commented 4 years ago

@Veteranfighter Did you turn on virtualization in BIOS?

danherrera commented 4 years ago

After verifying that none of the virtualization features were enabled and the BIOS virtualization is disabled, I also am encountering this. The silent_install.bat simply terminates in the exact error already posted here.

UPDATE: After enabling virtualization from the BIOS, it worked! I misread the requirement to ensure the virtualization be enabled in the BIOS.

tarpaha commented 4 years ago

If it helps - in Windows 10 ver.2004 I can disable Hyper-V only after removing "Hyper-V", "Windows Hypervisor Plarform" and "Virtual Machine Platform" components from Windows features. Until that "emulator-check.exe hyper-v" showed that Hyper-V is enabled.

karanjadhav12 commented 4 years ago

I am facing the same problem . Virtualization is enabled from bios. Hypervisor platform is unchecked from windows features but when i typed "emulator-check.exe hyper v" in cmd it shows 2 and hyper v is enabled. what to do now to install emulator? help ..!!!

Taogle2018 commented 4 years ago

Did you have a chance to read the following wiki page? https://github.com/google/android-emulator-hypervisor-driver-for-amd-processors/wiki/Is-Hyper-V-really-disabled%3F

But be noted that certain version of Windows 10 has a bug. Basically you cannot disable Hyper-V once you enable it. I hope you are not getting into that trouble.

karanjadhav12 commented 4 years ago

Done. Android Emulator for AMD processors installed. Thank You!!! I think hyper v takes some time to disable . I tried to do the same thing few hours back , it showed the same error ... but then it got installed when i tried again... now when i type the above command in cmd it shows "hyper v is not installed" which is the requirement.

Taogle2018 commented 4 years ago

Great to hear that the problem is solved.

arixank commented 4 years ago

I am facing the same problem . Virtualization is enabled from bios. Hypervisor platform is unchecked from windows features but when i typed "emulator-check.exe hyper v" in cmd it shows 2 and hyper v is enabled. what to do now to install emulator? help ..!!!

I'm facing the same issue !! Plzz resolve sooner !! Thanks a million !!

arixank commented 4 years ago

I am facing the below issue while trying to install Android Emulator for AMD Processor

"Running Android Emulator Hypervisor Driver for AMD Processors installer [SC] ControlService FAILED 1062:

The service has not been started.

[SC] DeleteService SUCCESS [SC] StartService FAILED with error 4294967201. Android Emulator Hypervisor Driver for AMD Processors installation failed. To install Android Emulator Hypervisor Driver for AMD Processors follow the instructions found at: https://github.com/google/android-emulator-hypervisor-driver-for-amd-processors Done"

I have enable the virtualization in BIOS and disabled Hyper-V in the windows feature. But still I am not able to install the Android Emulator. Please help

Here is a solution that worked for me : https://github.com/google/android-emulator-hypervisor-driver-for-amd-processors/issues/31#issuecomment-678628022

jchaitanya16 commented 3 years ago

You have to enable the SVM mode to enable in BIOS. Even i have faced the issue then have enabled it worked out. To help out others i have made youtube video so that it can help others who are facing the issue like me. Please checkout to visualize the steps and rectify it. https://youtu.be/OB1IxZ8hq7g

linus-ha commented 3 years ago

Did you have a chance to read the following wiki page? https://github.com/google/android-emulator-hypervisor-driver-for-amd-processors/wiki/Is-Hyper-V-really-disabled%3F

But be noted that certain version of Windows 10 has a bug. Basically you cannot disable Hyper-V once you enable it. I hope you are not getting into that trouble.

So am I seeing this right? You cannot use the android emulator while running WSL / Docker for Desktop? Okay, sorry: Disabling the Windows Virtual Machine Platform is not an option for me. Seems to be a good time switching to Linux.

XeonG commented 3 years ago

"Windows Subsystem for Linux version 2 requires Virtual Machine Platform" so if you use WSL2 with that feature on you can't use this?

DPSB commented 3 years ago

Yes. But you still could use WSL1 if that is enough. I have disabled vbs and hyper-v and virtual machine platform and so on, and when i run: wsl --set-default-version 2 i get the following output:

Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
For information please visit https://aka.ms/wsl2-install

But my debian VM running on WSL1 still is working fine.

earonesty commented 3 years ago

[SC] StartService FAILED with error 4294967201 + this error in the event log "The resource loader failed to find MUI file". SVM definitely on (i used to run an earlier version of android studio just fine), hyperv definitely off (checked with powershell, etc.). Also tried setting the "disabling" settings for deviceguard. wsl v2 not running.

DPSB commented 3 years ago

@earonesty You might take a look here, there is some more usefull information related to this error code

Make sure Hyper-V, Guarded Host, Virtual Machine Platform, Windows Sandbox & Microsoft Defender Application Guard are disabled in the optional features, and check if your antivirus is blocking anything.

Gianguyen1234 commented 1 year ago

You can try this way, I fix it by turning on virtuallization on Bios: https://youtu.be/9LVazV4IJ_g