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框时,我遇到了上述问题。

最佳答案

我也遇到了这个问题,并找到了这篇文章: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关闭--hwvirtex关闭


(长模式似乎无关紧要)

但是后来我遇到了这个问题: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

关于vagrant - Stderr:VBoxManage.exe:错误:VT-x不可用(VERR_VMX_NO_VMX),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/36856181/

10-09 13:52