简体   繁体   English

Hyper-V和HAXM

[英]Hyper-V and HAXM

I am brand new to the Android development scene, but I am eager to learn. 我是Android开发领域的新手,但我很想学习。 I was working on installing Android Studio when I saw that HAXM could not install because VT-X was not enabled. 当我看到HAXM无法安装因为VT-X未启用时,我正在安装Android Studio。 Some quick googling saw that I had to first disable Hyper-V and then I would be able to install HAXM? 一些快速谷歌搜索看到我必须首先禁用Hyper-V然后我将能够安装HAXM? I am wondering if it is OK to disable Hyper-V in order to install HAXM and whether I can or should re-enable it after installation of HAXM. 我想知道是否可以禁用Hyper-V以安装HAXM以及我是否可以或应该在安装HAXM后重新启用它。 Is this the right way to install this? 这是正确的安装方式吗? Do I need Hyper-V enabled? 我是否需要启用Hyper-V?

Only one virtualization can be active at a time. 一次只能激活一个虚拟化。 I would try disabling Hyper-V then try installing and using HAXM. 我会尝试禁用Hyper-V然后尝试安装和使用HAXM。

Both, Hyper-V and HAXM are hypervisors used to run virtual machines. Hyper-V和HAXM都是用于运行虚拟机的虚拟机管理程序。 You must decide which must be enabled depending on what you want to run on your laptop. 您必须根据要在笔记本电脑上运行的内容决定必须启用哪个。

  • You need Hyper-V if you want to use the Android Emulators provided by Microsofr, run Virtual Machines on Hyper-V, use Windows Containers, use Docker for Windows, use Vagrant with Hyper-V or Docker, or use any other application that requires it. 你需要的Hyper-V,如果你希望使用Microsofr提供了Android模拟器,在Hyper-V上运行虚拟机,使用Windows的容器,使用多克尔用于Windows,使用流浪的Hyper-V或码头,或使用需要任何其他应用程序它。
  • You cannot enable Hyper-V if you want to run VirtualBox or use Vagrant with VirtualBox 如果要运行VirtualBox或将Vagrant与VirtualBox一起使用, 则无法启用Hyper-V
  • You need HAXM if you want to accelerate the execution of the Android emulator (and you do not have Hyper-V and you do not use Virtualbox at the same time). 如果您想加速Android模拟器的执行(并且您没有Hyper-V并且您不同时使用Virtualbox),则需要HAXM

Right, I figured I had to enable Intel virtualization from the BIOS. 是的,我想我必须从BIOS启用Intel虚拟化。 I've got the emulator working now! 我现在有模拟器工作了! Thanks for the help! 谢谢您的帮助!

I had the same problem with a similar processor, core i3, in my VAIO laptop. 在我的VAIO笔记本电脑中,我遇到了与类似处理器核心i3相同的问题。 VT was also enabled on the BIOS and the problem was fixed when I uninstalled the avast anti-virus(no disabling the protection) and so I could finish the HAMX installation. 在BIOS上也启用了VT,当我卸载avast反病毒(没有禁用保护)时问题得到解决,因此我可以完成HAMX安装。 After that, I installed the Avast software again. 之后,我再次安装了Avast软件。

I hope this issue can help more people. 我希望这个问题可以帮助更多人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM