等待机器启动时超时!Vagrant-Virtualbox

等待机器启动时超时!Vagrant-Virtualbox

我有一台 gentoo(linux) 主机。上面安装了 Virtualbox 4.3.28 和 vagrant 1.4.3(这些是 gentoo 的最新可用版本)。

在 vagrant up 上,Ubuntu 14.04 启动了。我也能通过 ssh 连接到 Ubuntu。我还尝试了 vagrant destroy 然后 vagrant up。但是一旦启动,我就收到以下错误。以下是我的 Vagrantfile 和输出错误。

PS 我从头开始创建了 Ubuntu 14.04 基础框。

Vagrant文​​件

# -*- mode: ruby -*-

# vi: set ft=ruby :

    Vagrant.configure(2) do |config|
      config.vm.box = "Ubuntu"
      config.vm.boot_timeout = "700"
      config.vm.provider :virtualbox do |vb|
      vb.gui = true
      end

    end 

终端输出

Bringing machine 'default' up with 'virtualbox' provider...
[default] Clearing any previously set forwarded ports...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...

Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period. This can
mean a number of things.

If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.

If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.

有什么办法可以解决这个问题吗?

答案1

尝试获取 vagrant 的最新版本。它解决了我的vagrant 相关问题以下是可用的 ebuild:http://data.gpo.zugaina.org/johu/app-emulation/vagrant-bin/

因此,假设您有app-portage/layman已经安装:

  1. layman -a johu
  2. layman -S,或者甚至更好(?)eix-sync
  3. emerge -s vagrant并且 app-emulation/vagrant-bin 版本 1.7.4 应该显示为可用
  4. emerge -av vagrant-bin

然后,重试配置虚拟机。

相关内容