【问题标题】:Set a box with vagrant (virtualBox)用 vagrant 设置一个盒子(virtualBox)
【发布时间】:2014-07-17 02:32:49
【问题描述】:

基于官方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 并尝试手动启动它:

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

【问题讨论】:

    标签: virtual-machine vagrant virtualbox


    【解决方案1】:

    最新的 VirtualBox 版本 (4.3.14) 似乎存在已知的类似问题:

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

    我敢打赌,您正在运行该版本,如果是这样,降级到 4.3.12 应该可以解决您的问题。

    【讨论】:

    • 我正在运行 4.3.14... 谢谢!我现在尝试降级!
    • 此问题已在较新版本中得到修复(已在 4.3.18 验证)。
    • 从 4.3.14 升级到 4.3.18 解决了我的问题。谢谢。
    猜你喜欢
    • 2015-04-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多