【问题标题】:Stderr: VBoxManage.exe: error: VT-x is not available (VERR_VMX_NO_VMX)标准错误:VBoxManage.exe:错误:VT-x 不可用(VERR_VMX_NO_VMX)
【发布时间】:2016-08-19 18:22:11
【问题描述】:
 PS C:\vagrant_projects> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'opentable/win-2012r2-standard-amd64-nocm' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
   default: Adapter 1: nat
==> default: Forwarding ports...
   default: 5985 (guest) => 55985 (host) (adapter 1)
   default: 5986 (guest) => 55986 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "efff1950-9700-4fbf-8ab8-7a8ed3f31740", "--type", "headless"]

Stderr: VBoxManage.exe: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole

当我尝试“流浪”win-2012r2-standard-amd64-nocm 盒子时,我遇到了上述问题。

【问题讨论】:

    标签: vagrant winrm


    【解决方案1】:

    我也遇到了这个问题,发现这篇文章:https://forums.virtualbox.org/viewtopic.php?f=6&t=58820(如果它对你有帮助的话)。

    我尝试关闭 VT-x:

    PS C:\Program Files\Oracle\VirtualBox> .\VBoxManage.exe modifyvm 0150_default_1465225816011_20737 --paravirtprovider off --hwvirtex off

    (长模式似乎无关紧要)

    但后来我遇到了这个问题:Vagrant stuck connection timeout retrying

    从根本上说,VM 启动的是 64 位系统,如果关闭 VT-x,您的 VM 将无法以 64 位启动。


    最终结果是我需要卸载(不仅仅是禁用)Hyper-V。

    事实证明 Hyper-V 禁用了 VT-x(如果你进行任何 android 开发,你就会遇到这个问题。听起来最近版本的 windows/Hyper-V 甚至不能被禁用,它们必须完全安装。

    此选项位于

    程序和功能 > 打开或关闭 Windows 功能

    更多信息: https://social.technet.microsoft.com/Forums/windows/en-US/118561b9-7155-46e3-a874-6a38b35c67fd/hyperv-disables-vtx-for-other-hypervisors?forum=w8itprogeneral

    【讨论】:

    • 在我的情况下,在我取消选中控制面板中打开或关闭 Windows 功能部分下的 Hyper-V 框/复选框并重新启动我的机器后,运行“vagrant up”仍然给我同样的错误消息.有任何想法吗!谢谢。 stackoverflow.com/questions/37955942/…
    • 抱歉,我相信您现在已经知道了,但以防万一您还没有 @ArunSangal => 在 Windows 10 中,您必须完全卸载 Hyper-V 才能使用它停止拦截对 VT-x 的请求并返回“false” 你不能只关闭它。希望对您有所帮助...
    • 这是真的,我也必须这样做。
    猜你喜欢
    • 1970-01-01
    • 2016-05-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-28
    • 2016-03-26
    • 2016-02-16
    • 2011-09-20
    相关资源
    最近更新 更多