我有gentoo(linux)主机。我安装了Virtualbox 4.3.28和vagrant 1.4.3(这些是gentoo的最新版本)。
在流浪汉上,Ubuntu 14.04上线了。我也能够ssh到Ubuntu。但是一旦它启动我就会收到以下错误。下面是我的Vagrantfile和输出错误。
P.S我从头开始创建了Ubuntu 14.04基本框
-----------Vagrantfile-------------
# -*- 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
-----------Output in terminal------------
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.**
解决此问题的任何解决方案?
答案 0 :(得分:0)
P.S我从头开始创建了Ubuntu 14.04基本框
这可能是缺失的部分 - 当你打包一个盒子时,你需要运行一些命令,如下所述
基于Linux的盒子最初无法启动是很常见的。 这通常是一个非常令人困惑的经历,因为它不清楚为什么 正在发生。最常见的情况是因为存在持久性 网络设备udev规则需要为新的重置 虚拟机。要避免此问题,请删除所有持久网 规则。在Ubuntu上,这些是执行此操作所必需的步骤:
$ rm /etc/udev/rules.d/70-persistent-net.rules
$ mkdir /etc/udev/rules.d/70-persistent-net.rules
$ rm -rf /dev/.udev/
$ rm /lib/udev/rules.d/75-persistent-net-generator.rules
在包装盒子之前,你能确保运行上面的命令。