我正在安装和获取Laravel
按照他们的安装文档工作。但是,当我尝试 Vagrant 时,我收到错误
There was an error while executing VBoxManage, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "e6f97d62-fd0b-4203-9735-9733f20d9e27", "--type", "headless"]
Stderr: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole
我正在运行最新版本的
VirtualBox
运行 Ubuntu 14.04.4
.然后,我在 virtualbox 中运行了一个 Vagrant Box,这给了我这个错误。我的虚拟化在 BIOS
中启用我的处理器能够支持虚拟化。我在另一个线程中读到,如果我们将 vb.cpus 更改为 1,则嵌套虚拟化是可能的。但是,我认为配置文件已更改,并且在我的 Vagrant 文件中找不到提供程序块。有谁知道如何解决这个错误?Error VT-x not available for Vagrant machine inside Virtualbox
编辑:澄清设置。我的主机正在运行“Windows 10”,其中打开了一个虚拟机。这个虚拟机运行的是 Linux 'Ubuntu 14.04.4' 64 位。从这里,我运行了命令“vagrant box add laravel/homestead”,它创建了一个 virtualbox Ubuntu 32 位。然后,我运行命令“vagrant up”,这给了我上述错误。我还想补充一点,我的虚拟机设置中的加速选项卡是灰色的。
最佳答案
根据对该问题的评论,我认为这里的解决方案是 不运行嵌套虚拟化 (例如,主机 -> 访客 [Ubuntu 14.04-64 位] -> 访客 [Ubuntu ?-32 位])。
如果你只是想要一个盒子来完成你的 laravel/homestead 开发工作,你可以直接从 Windows 启动盒子/vagrant,你不需要有一个中间的 guest 操作系统(问题中的 ubuntu/trusty64)。
在 Windows 中安装 Virtualbox 和 Vagrant,并尝试从那里启动 laravel/homestead box。如果您需要 Windows 中的命令行,您可以使用 Powershell、Git for Windows(或 Git Shell 或其他任何名称),或安装 Cygwin (我的首选方法)。
关于laravel - Vagrant Up VT-X 不可用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36338146/