windows 安装 HAXM 时不支持 VT
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20019231/
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
VT Not Supported when Installing HAXM
提问by Aleksei Petrenko
I am trying to install fast Android emulator which uses Intel x86 emulator accelerator. I've downloaded the accelerator via SDK manager but when I tried to install it I got following error message in the beginning of the installation:
我正在尝试安装使用 Intel x86 仿真器加速器的快速 Android 仿真器。我已经通过 SDK 管理器下载了加速器,但是当我尝试安装它时,我在安装开始时收到以下错误消息:
I know that my CPU (i7-3520M) supports VT-X virtualization so I went to BIOS to make sure that it is enabled:
我知道我的 CPU (i7-3520M) 支持 VT-X 虚拟化,所以我去 BIOS 以确保它已启用:
As you can see, the feature is enabled in BIOS. I've found 'securable.exe' utility on the internet and when I launch it the following window is shown:
如您所见,该功能已在 BIOS 中启用。我在 Internet 上找到了“securable.exe”实用程序,当我启动它时,会显示以下窗口:
Any thoughts or recommendations? I have Lenovo Z580 Laptop with Intel Core i7 and I know for sure it should support such a basic virtualization functionality.
有什么想法或建议吗?我有配备英特尔酷睿 i7 的联想 Z580 笔记本电脑,我确信它应该支持这种基本的虚拟化功能。
OS is Windows 8 Pro, I also have Hyper-V enabled, I use this machine for Windows Phone 8 development.
操作系统是Windows 8 Pro,我也启用了Hyper-V,我用这台机器来开发Windows Phone 8。
--- edit ---
- - 编辑 - -
It turns out that VT-x starts working when you turn off the Hyper-V! It is very annoying because I cannot use Android and WP emulators at the same time. Does anyone know how to fix it?
事实证明,当您关闭 Hyper-V 时,VT-x 开始工作!这很烦人,因为我不能同时使用 Android 和 WP 模拟器。有谁知道如何修理它?
回答by Aleksei Petrenko
So the only solution I've found to make it work is to completely disable Hyper-V in Control Panel -> Programs and Features -> Turn Features On or Off.
因此,我发现使其工作的唯一解决方案是在“控制面板”->“程序和功能”->“打开或关闭功能”中完全禁用 Hyper-V。
If anyone knows how to enable VT-x without disabling Hyper-V please answer this question...
如果有人知道如何在不禁用 Hyper-V 的情况下启用 VT-x,请回答这个问题...
回答by metacircle
I had the same problem and I just found, that in Avast 9 there is an option to prevent it from using the virtualization feature. It has some impact on the Avast Sandbox, but after I disabled it, I could finally install HAXM.
我遇到了同样的问题,我刚刚发现,在 Avast 9 中有一个选项可以阻止它使用虚拟化功能。它对 Avast Sandbox 有一些影响,但是在我禁用它之后,我终于可以安装 HAXM。
回答by Daniel Wilson
To turn offHyper-V run this from cmd: bcdedit /set hypervisorlaunchtype off
, and then reboot.
要关闭Hyper-V,请从 cmd: 运行此命令bcdedit /set hypervisorlaunchtype off
,然后重新启动。
To turn Hyper-V back on, run this: bcdedit /set hypervisorlaunchtype auto
要重新开启的Hyper-V上,运行以下命令:bcdedit /set hypervisorlaunchtype auto
回答by TheOpti
First of all you have to disable Hyper-V technology. You can do this by disabling this technology in Control Panel, Programs, Windows Functions
If you use Avast, disable it for the installation time. You can restore all Avast services after installation process.
首先,您必须禁用 Hyper-V 技术。您可以通过在控制面板、程序、Windows 功能中禁用此技术来实现此目的
如果您使用 Avast,请在安装期间禁用它。您可以在安装过程后恢复所有 Avast 服务。
I've recently had some problems with installing HAXM on my Machine (I use Dell Inspiron 5521 with Core i7 processor) and nothing helped. Finally, I downloaded this pack:
我最近在我的机器上安装 HAXM 时遇到了一些问题(我使用戴尔 Inspiron 5521 和 Core i7 处理器),但没有任何帮助。最后,我下载了这个包:
copied it to my HAXM folder and then started .cmd file as an Administrator. After restarting computer HAXM was installed on my computer. You can check it by typing
将它复制到我的 HAXM 文件夹,然后以管理员身份启动 .cmd 文件。重新启动计算机后,我的计算机上安装了 HAXM。您可以通过键入来检查它
sc query intelhaxm
sc query intelhaxm
in your cmd.
在你的 cmd 中。
回答by chronospoon
Hyper-V enables a hypervisor under Windows, so the OS you're running is already virtualized. VT-x is a hardware feature, so nested VT-x is not possible (without adding hardware + software support, which seems unlikely), so you will not be able to enable Hyper-V and another VT-x solution (HAXM, VirtualBox, etc) at the same time.
Hyper-V 在 Windows 下启用管理程序,因此您运行的操作系统已经虚拟化。VT-x 是一个硬件特性,所以嵌套 VT-x 是不可能的(不添加硬件 + 软件支持,这似乎不太可能),所以你将无法启用 Hyper-V 和另一个 VT-x 解决方案(HAXM、VirtualBox等)同时进行。
回答by Nikita G.
All the suggestions above basically involve disabling Hyper-V. It's a valid approach if you're not planning to use it. But in case you do (e.g. developing for both Windows Phone and Android on the same machine etc.).
以上所有建议基本上都涉及禁用 Hyper-V。如果您不打算使用它,这是一种有效的方法。但万一您这样做(例如,在同一台机器上为 Windows Phone 和 Android 开发等)。
If you need to keep Hyper-V enabledand still use Android Studio for development and debugging, you can follow steps from Using Android-X86 as an Emulator in Hyper-V for Windows. The idea is:
如果您需要保持 Hyper-V 启用并仍使用 Android Studio 进行开发和调试,您可以按照使用 Android-X86 作为 Windows 版 Hyper-V 中的模拟器中的步骤进行操作。这个想法是:
- Download Android ISO and create a Hyper-V VM off of it
- Enable developer Developer Options, USB debugging and app installation from unknown sources
- Connect to the Hyper-V VM image via adb
- Launch your project from Android Studio and the VM will show up in the list of devices to connect to
- 下载 Android ISO 并从中创建一个 Hyper-V 虚拟机
- 启用来自未知来源的开发人员开发人员选项、USB 调试和应用程序安装
- 通过 adb 连接到 Hyper-V VM 映像
- 从 Android Studio 启动您的项目,VM 将显示在要连接的设备列表中
回答by peku33
For me, this was caused by avast.
对我来说,这是由 avast 引起的。
During installation I was getting 'unknown error'. The intelhaxm service was being installed, but trying to start resulted in Access Denied.
在安装过程中,我收到“未知错误”。正在安装 intelhaxm 服务,但尝试启动导致拒绝访问。
- I disabled virtualization support in Avast
- I uninstalled what was left from HAXM
- I downloaded latest installer from intel
- I unpacked it using 7zip, unpack 64bit installer as well.
- I restarted my PC in safe mode. I installed
HaxInst64.exe
- I changed *.win10_64 to *, manually installed .inf file
- I restarted the PC into normal mode, the service was running, but HAXM still not instaleld.
- I ran standard HAXM installer.
- 我在 Avast 中禁用了虚拟化支持
- 我卸载了 HAXM 剩下的东西
- 我从英特尔下载了最新的安装程序
- 我使用 7zip 解压了它,也解压了 64 位安装程序。
- 我在安全模式下重新启动了我的电脑。我安装了
HaxInst64.exe
- 我将 *.win10_64 改为 *,手动安装的 .inf 文件
- 我将 PC 重新启动到正常模式,服务正在运行,但 HAXM 仍未安装。
- 我运行了标准的 HAXM 安装程序。
Done
完毕
回答by Pavel Biryukov
For now (2018) Android emulator works with Hyper-V and Windows 10 (without intel haxm), you have to check Windows version (1803+) and install "Windows Hypervisor Platform" in windows features. All recomedations are here: https://docs.microsoft.com/ru-ru/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?tabs=vswin
目前(2018 年)Android 模拟器适用于 Hyper-V 和 Windows 10(没有 intel haxm),您必须检查 Windows 版本(1803+)并在 Windows 功能中安装“Windows Hypervisor Platform”。所有推荐都在这里:https://docs.microsoft.com/ru-ru/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?tabs =vswin
回答by tower120
Intel made hotfix for Windows 8.1 (HAMX 1.0.7):
https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
英特尔为 Windows 8.1 (HAMX 1.0.7) 制作了修补程序:https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
So now you only have to disable AVAST during installation :)
所以现在你只需要在安装过程中禁用 AVAST :)