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 box。
答案 0 :(得分:2)
我也遇到了这个问题,发现了这篇文章: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
(Longmode似乎并不重要)
但后来我遇到了这个问题:Vagrant stuck connection timeout retrying
从根本上说,VM启动64位系统,如果关闭VT-x,则VM无法以64位启动。
事实证明Hyper-V禁用了VT-x(如果你进行任何Android开发,你就会遇到这种情况。听起来像最新版本的windows / Hyper-V甚至不能禁用,必须完全安装。
此选项位于
中程序和功能>打开或关闭Windows功能