设置一个带有vagrant的框(virtualBox)

时间:2014-07-17 02:32:49

标签: virtual-machine vagrant virtualbox

基于官方doc,我尝试使用“hashicorp / precise32”框安装Vagrant。我添加了以下框:

vagrant box add hashicorp/precise32

并更改配置文件:

config.vm.box = "hashicorp/precise32"

当我尝试启动虚拟环境时,我得到:

C:\Users\xxxx\Documents\vagrant_getting_started>vagrant up

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'hashicorp/precise32' 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: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
The guest machine entered an invalid state while waiting for it
to boot. Valid states are 'starting, running'. The machine is in the
'poweroff' state. Please verify everything is configured
properly and try again.

If the provider you're using has a GUI that comes with it,
it is often helpful to open that and watch the machine, since the
GUI often has more helpful error messages than Vagrant can retrieve.
For example, if you're using VirtualBox, run `vagrant up` while the
VirtualBox GUI is open.

正如所建议的那样,我打开了VirtualBox GUI并尝试手动启动它:

VirtualBox GUI for vagrant box

有人知道如何解决它吗? 谢谢

1 个答案:

答案 0 :(得分:3)

看起来与最新的VirtualBox版本(4.3.14)存在类似的问题:

https://forums.virtualbox.org/viewtopic.php?f=6&t=62615

我敢打赌你正在运行该版本,如果降级到4.3.12就可以解决你的问题。