错误 VT-x 不适用于 Virtualbox 中的 Vagrant 机器 [英] Error VT-x not available for Vagrant machine inside Virtualbox
问题描述
我有一台 Ubuntu 虚拟机,配置为启用 VT-x、6 个处理器和 25 GB RAM.
I have an Ubuntu Virtual machine that is configured to have VT-x enabled, 6 Processors, and 25 GB RAM.
在那个虚拟机中,我试图用以下配置启动一个流浪机器:
Inside that virtual machine I am trying to start a vagrant machine with the following configuration:
master.vm.box = "precise32"
master.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--cpuexecutioncap", "80"]
vb.memory = 10000
vb.customize ["modifyvm", :id, "--cpus", "2"]
vb.customize ["modifyvm", :id, "--ioapic", "on"]
end
当我启动 Vagrant 时,我收到错误 VT-x not enabled.
When I start the Vagrant I get the error VT-x not enabled.
我尝试了 32 位和 64 位版本的 Vagrant,但仍然没有运气.
I tried both 32 bit and 64 bit versions of Vagrant but still no luck.
知道如何在 Virtualbox 中运行 Vagrant 机器吗?
Any idea how can I run Vagrant machine inside the Virtualbox?
推荐答案
UPDATED: 正如下面指出的,你可以使用嵌套的 VirtualBox + vagrant,前提是只有 1 个虚拟 CPU 分配给嵌套的 VM,加上嵌套的 VM 来宾是 32-位操作系统.
UPDATED: As pointed out below, you can use nested VirtualBox + vagrant provided that only 1 virtual CPU is assigned to the nested VM, plus nested VM guest is 32-bit OS.
这篇关于错误 VT-x 不适用于 Virtualbox 中的 Vagrant 机器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!