问题
Windows phone emulator requires Hyper-V to run, but Android emulator in turn requires Intel Hardware Acceleration Manager (HAXM), which is intolerant to Hyper-V.
Is there a way to keep Hyper-V and disable it temporarily to have Intel HAXM operational, without rebooting?
I run Windows Hyper-V manager and stopped the server (this involves stopping all services), but that didn't help: Android emulator still refused to start.
I called services.msc to see if some Hyper-V services were still running. Indeed, all services starting with Hyper-V were NOT running. I also stopped HV Host service (Microsoft Hypervisor Host service), but it still didn't help!
Any ideas?
回答1:
Update to Windows 10 v1801 and April 2018 update and it will work. Windows now supports Android emulation using Hyper-V. Thanks to @JunleLi for the tip.
https://blogs.msdn.microsoft.com/visualstudio/2018/05/08/hyper-v-android-emulator-support/
回答2:
This is probably the best work around:
http://blogs.msdn.com/b/virtual_pc_guy/archive/2008/04/14/creating-a-no-hypervisor-boot-entry.aspx
You keep two BCD entries referring to same Windows 10 partition, but one with Hyper-V activated (hypervisorlaunchtype Auto), and another one with Hyper-V suppressed (hypervisorlaunchtype Off). Still you have to reboot the system, but no need to install/uninstall Hyper-V, which is a significant relief.
A proposito, this article uses bcdedit which is a standard Windows command line utility. As an alternative, you can use a GUI application Visual BCD editor
回答3:
You cannot disable Hyper-V without booting.
- Hyper-V is a type 1 hypervisor. It runs on the bare metal.
- When you run Windows 10 with the Hyper-V enabled, the Windows root OS runs on the Hyper-V.
- When you run Windows 10 with the Hyper-V disabled, the Windows runs on the bare metal without the Hyper-V in the middle.
The only way to "remove" the Hyper-V below the Windows is restarting the machine.
来源:https://stackoverflow.com/questions/32226559/making-hyper-v-and-intel-haxm-to-co-exist