Android 安装 HAXM 时出错,VT-X 不工作
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21635504/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error during installing HAXM, VT-X not working
提问by Arek Biela
I am an entry-level Android software developer. I recently heard about HAXM that support emulator in rendering graphics more smoothly. I downloaded appropriate file HAXM file for Windows 7 64 bit, unpacked and started installing. However, during the installation process I get this error:
我是一名入门级 Android 软件开发人员。我最近听说 HAXM 支持模拟器更流畅地渲染图形。我下载了适用于 Windows 7 64 位的相应文件 HAXM 文件,解压并开始安装。但是,在安装过程中,我收到此错误:
"This computer meets requirements for HAXM, but VT-x is not turned on..."
“这台电脑符合HAXM的要求,但是VT-x没有开启……”
I checked many forum about this problem, including checking the version of BIOS and enabling Virtual Technology on BIOS. I followed the steps posted in the following forum:
我查了很多关于这个问题的论坛,包括检查 BIOS 的版本和在 BIOS 上启用虚拟技术。我按照以下论坛中发布的步骤操作:
英特尔 HAXM 安装错误 - 此计算机不支持英特尔虚拟化技术 (VT-x)
However, I don't have any lines about Hyperlaunch and I could not find Hyper-V options in my Windows features. I don't have any idea how to solve this problem.
但是,我没有任何关于 Hyperlaunch 的内容,并且在我的 Windows 功能中找不到 Hyper-V 选项。我不知道如何解决这个问题。
回答by JLM74
Even if you have enabled the Virtualization(VT) in BIOS settings, some antivirus options prevent HAXM installation.
即使您在 BIOS 设置中启用了虚拟化 (VT),一些防病毒选项也会阻止 HAXM 安装。
For example: In Avast antivirus under Settings (parametres) tab > Troubleshooting (depannage), you should uncheck"Enable Hardware-assisted Virtualization" ("activer l'assistance a la virtualisation").
例如:在设置(参数)选项卡 > 故障排除(depannage)下的 Avast 防病毒软件中,您应该取消选中“启用硬件辅助虚拟化”(“activer l'assistance a la virtualisation”)。
Now restart your computer and re-install the Intel's HAXM which can be found under ~SDK_LOCATION\extras\intel\Hardware_Accelerated_Execution_Manager
. You can also manually download the standalone HAXM installer from Intel's website.
现在重新启动您的计算机并重新安装 Intel 的 HAXM,它可以在~SDK_LOCATION\extras\intel\Hardware_Accelerated_Execution_Manager
. 您还可以从英特尔网站手动下载独立的HAXM 安装程序。
回答by Timmmm
I had to enable it in my BIOS as shown below (for Asus):
我必须在我的 BIOS 中启用它,如下所示(对于华硕):
回答by Alex
I had exactly the same problem. And this is how I could fix it.
我遇到了完全相同的问题。这就是我可以修复它的方法。
Step 1:Turn virtualization on in BIOS settings.
步骤 1:在 BIOS 设置中打开虚拟化。
Step 2:Control Panel -> "Programs" -> "Turn Windows features on or off" (under "Programs and Features") and locate "Hyper-V", uncheck, reboot.
第 2 步:控制面板 ->“程序”->“打开或关闭 Windows 功能”(在“程序和功能”下)并找到“Hyper-V”,取消选中,重新启动。
Step 3:In Avast->Settings->Troubleshooting. Uncheck "Enable hardware-assisted virtualization" & "Enable avast self-defense module"
第 3 步:在 Avast->设置->疑难解答中。取消选中“启用硬件辅助虚拟化”和“启用 avast 自卫模块”
Final step and the main:
Go to MyPC / right click / Advanced System Settings / Advanced / In Performance click SETTINGS / Data Execution Prevention and enable DEP for all programs and services.
最后一步和主要步骤:
转到 MyPC/右键单击/高级系统设置/高级/在性能中单击设置/数据执行保护并为所有程序和服务启用 DEP。
The last step helped me to solve this problem. Hope you too.
最后一步帮助我解决了这个问题。希望你也是。
回答by emcoding
I had the same issues on my notebook which runs Windows 8.1
我在运行 Windows 8.1 的笔记本上遇到了同样的问题
Try this:
尝试这个:
- Check if Hyper-V options in "Windows Features activate or deactivate" are deactivated
- Download and install the latest Oracle VirtualBox
- Reboot
- Install HAXM
- Reboot-->open BIOS--> Enable 'Execute Disable'
- 检查“Windows 功能激活或停用”中的 Hyper-V 选项是否已停用
- 下载并安装最新的Oracle VirtualBox
- 重启
- 安装 HAXM
- 重启-->打开BIOS-->启用'执行禁用'
It looks like that the installation of VirtualBox sets a flag that "turns" VT-X on.
看起来 VirtualBox 的安装设置了一个“打开”VT-X 的标志。
回答by zahid
For Windows 10:
对于 Windows 10:
First of all, install the intelhaxm-android.exe located in the folder SDK\extras\Intel\Hardware_Accelerated_Execution_Manager if it gives error during installation then try these solution.
首先,安装位于文件夹 SDK\extras\Intel\Hardware_Accelerated_Execution_Manager 中的 intelhaxm-android.exe 如果在安装过程中出错,然后尝试这些解决方案。
First all enable the virtualization from bios setting. To enable this, restart the computer, when the computer started then press Esc, then select the F2if the manufacturer is dell.
Even if you have enabled the Virtualization (VT) in BIOS settings, some antivirus options prevent HAXM installation.
For example: In Avast antivirus under Settings (parameters) tab > Troubleshooting (depannage), you should uncheck "Enable Hardware-assisted Virtualization" ("activer l'assistance a la virtualisation").
Now restart your computer and re-install the Intel's HAXM, which can be found under
SDK\extras\intel\Hardware_Accelerated_Execution_Manager
. You can also manually download the standalone HAXM installer from Intel's website.Check that hyper-v is disabled. To disable it, go to the control panel then select the Programs --> Program and Features--> Turn windows Feature on or off (located on left side), then find the HYPER-V, uncheck the check box and restart the computer and try to install the hxm again.
Go to properties of "This PC" by right clicking on it, then select the advanced system setting (located on left side) then in Advance (tab) under performance click the setting button, then select the Data Execution Prevention (tab), then select this option: "turn on the DEP for all programs and services except those I select" and restart the computer and try to install the hxm.
首先从bios设置启用虚拟化。要启用此功能,请重新启动计算机,当计算机启动时按Esc,然后选择F2制造商是否为戴尔。
即使您在 BIOS 设置中启用了虚拟化 (VT),一些防病毒选项也会阻止 HAXM 安装。
例如:在设置(参数)选项卡 > 故障排除(depannage)下的 Avast 防病毒软件中,您应该取消选中“启用硬件辅助虚拟化”(“activer l'assistance a la virtualisation”)。
现在重新启动您的计算机并重新安装 Intel 的 HAXM,它可以在
SDK\extras\intel\Hardware_Accelerated_Execution_Manager
. 您还可以从英特尔网站手动下载独立的 HAXM 安装程序。检查 hyper-v 是否已禁用。要禁用它,请转到控制面板,然后选择程序--> 程序和功能--> 打开或关闭 Windows 功能(位于左侧),然后找到 HYPER-V,取消选中复选框并重新启动计算机并尝试再次安装 hxm。
右键单击“这台电脑”的属性,然后选择高级系统设置(位于左侧),然后在性能下的高级(选项卡)中单击设置按钮,然后选择数据执行保护(选项卡),然后选择此选项:“为除我选择的程序和服务之外的所有程序和服务打开 DEP”并重新启动计算机并尝试安装 hxm。
Solution 3 works for me.
解决方案 3 对我有用。
回答by user1720817
I tried all of the above methods. I wasn't running Avast, tried Oracle VirtualBox, and then tried to install the HAXM software from the intel link.
我尝试了上述所有方法。我没有运行 Avast,尝试了 Oracle VirtualBox,然后尝试从intel link安装 HAXM 软件。
None of these worked, I was still getting the same error.
这些都没有奏效,我仍然遇到同样的错误。
What did work (and I'm not sure why) was to install another Android simulator that is available from Genymotion. I was actually very surprised that it did work because during the process of creating the Android virtual device, I received an error that the Hypervisor was not turned on. However, setup continued and the Genymotion simulator runs successfully. Genymotion is free for personal use.
有效的(我不知道为什么)是安装另一个可从Genymotion获得的 Android 模拟器。我真的很惊讶它确实有效,因为在创建 Android 虚拟设备的过程中,我收到一个错误,即 Hypervisor 没有打开。但是,设置继续并且 Genymotion 模拟器成功运行。Genymotion 可免费供个人使用。
This was on a Lenova T430 laptop.
这是在 Lenova T430 笔记本电脑上。
回答by Sam Wheeler
1st. uninstall antivirus.
第一。卸载杀毒软件。
I had avast but I believe AVG also affects it and probably many more, just turning off the the anti virus dose not work, it has to be completely uninstalled and then the computer restarted, then run the install of the Intel HAXM, once this is complete the anti virus can be reinstalled like normal.
我有avast,但我相信AVG也会影响它,可能还有更多,只是关闭防病毒不起作用,必须完全卸载然后重新启动计算机,然后运行英特尔HAXM的安装,一旦这是完成反病毒后可以正常重新安装。
2nd. turn off hyper-V.
第二。关闭 Hyper-V。
This is a setting only found on the windows Pro and enterprise, this is used to create windows mobile apps, but is you are using other software's like HAXM this needs to be off, to do this go to, control panel, all control panel items, Programs and Features, turn windows features on or off. then un-tick hyper-V
这是仅在 windows Pro 和企业版上才能找到的设置,用于创建 windows mobile 应用程序,但是您是否正在使用其他软件,例如 HAXM,这需要关闭,要执行此操作,请转到控制面板,所有控制面板项目, 程序和功能,打开或关闭 Windows 功能。然后取消勾选hyper-V
回答by LCJ
There is a tool called Speccy. I went to the CPU tab in Speccy and checked whether virtualizationis "Supported, Enabled". Originally it was "Supported, Disabled", so I went to BIOS --> Security menu and enabled virtualization. In my Lenovo Thinkpad, F12
brings the BIOS.
有一个工具叫做Speccy。我转到 Speccy 中的 CPU 选项卡并检查虚拟化是否为“支持,已启用”。最初它是“支持,禁用”,所以我转到 BIOS --> 安全菜单并启用虚拟化。在我的联想 Thinkpad 中,F12
自带 BIOS。
Enabling virtualization helped me to overcome this error. Other answers here recommeds to check "Hyper-V" also.
启用虚拟化帮助我克服了这个错误。这里的其他答案也建议检查“Hyper-V”。
回答by Joe Healy
If you are still having issues, try running these steps from VMware to disable credential guard. Worked for me, finally. Steps and link are posted below, not taking credit for them.
如果仍有问题,请尝试从 VMware 运行这些步骤以禁用凭据保护。终于为我工作了。步骤和链接张贴在下面,不承认它们。
Original content from https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2146361
To disable Device Guard or Credential Guard on Itanium based computers:
在基于 Itanium 的计算机上禁用 Device Guard 或 Credential Guard:
Disable the group policy setting that was used to enable Credential Guard.
On the host operating system, click Start > Run, type gpedit.msc, and click Ok. The Local group Policy Editor opens.
Go to Local Computer Policy > Computer Configuration > Administrative Templates > System > Device Guard > Turn on Virtualization Based Security.
Select Disabled.
Go to Control Panel > Programs and Features > Turn Windows features on or offto turn off Hyper-V. [ remove a program on Windows 8 or earlier]
Select Do not restart.
Delete the related EFI variables by launching a command prompt on the host machine using an Administrator account and run these commands:
enter code here
mountvol X: /s
copy %WINDIR%\System32\SecConfig.efi X:\EFI\Microsoft\Boot\SecConfig.efi /Y
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 {0cb3b571-2f2e-4343-a879-d86a476d7215} device partition=X:
mountvol X: /d
禁用用于启用 Credential Guard 的组策略设置。
在主机操作系统上,单击开始 > 运行,键入gpedit.msc,然后单击确定。本地组策略编辑器打开。
转到本地计算机策略 > 计算机配置 > 管理模板 > 系统 > Device Guard > 打开基于虚拟化的安全性。
选择已禁用。
转到控制面板 > 程序和功能 > 打开或关闭 Windows 功能以关闭 Hyper-V。[删除 Windows 8 或更早版本的程序]
选择不重新启动。
通过使用管理员帐户在主机上启动命令提示符并运行以下命令来删除相关的 EFI 变量:
在此处输入代码
mountvol X: /s
复制 %WINDIR%\System32\SecConfig.efi X:\EFI\Microsoft\Boot\SecConfig.efi /Y
bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloader
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} 路径“\EFI\Microsoft\Boot\SecConfig.efi”
bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215}
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} 加载选项禁用-LSA-ISO,禁用-VBS
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} 设备分区=X:
mountvol X: /d
Note: Ensure X is an unused drive, else change to another drive.
注意:确保 X 是未使用的驱动器,否则更改为另一个驱动器。
Restartthe host.
Accept the prompt on the boot screen to disable Device Guard or Credential Guard.
重启主机。
接受启动屏幕上的提示以禁用 Device Guard 或 Credential Guard。
You should be able to install and start HAXM now
您现在应该可以安装并启动 HAXM
回答by Radha Satam
I had the same issue. Enabling the Data Execution Prevention for all programs and services helped. I tried using the method Alex suggested above -
我遇到过同样的问题。为所有程序和服务启用数据执行保护有帮助。我尝试使用亚历克斯上面建议的方法 -
Go to MyPC / right click / Advanced System Settings / Advanced / In Performance click SETTINGS / Data Execution Prevention and enable DEP for all programs and services.
转到 MyPC/右键单击/高级系统设置/高级/在性能中单击设置/数据执行保护并为所有程序和服务启用 DEP。
But I found the Data Execution Prevention page was all disabled and said "To use these settings, you must be a computer administrator and you must use the bcdedit.exe file."
但是我发现数据执行保护页面全部被禁用,并说“要使用这些设置,您必须是计算机管理员,并且必须使用 bcdedit.exe 文件。”
This site explains how to enable DEP from cmd. http://www.thewindowsclub.com/disable-data-execution-prevention
该站点解释了如何从 cmd 启用 DEP。 http://www.thewindowsclub.com/disable-data-execution-prevention