我有gentoo(linux)主机。在上面,我安装了Virtualbox 4.3.28和vagrant 1.4.3(这些是gentoo的最新可用版本)。
在vagrant up上,Ubuntu 14.04启动。我还可以ssh到Ubuntu。但是一旦启动,我就会得到下面的错误。下面是我的Vagrantfile和输出错误。
p。我已经从零开始创建了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.**
有解决这个问题的方法吗?
p。我已经从零开始创建了Ubuntu 14.04基础盒
这可能是遗漏的部分—当您打包一个盒子时,您需要运行下面
所解释的一些命令基于linux的机器初始引导失败是很常见的。这通常是一个非常令人困惑的经历,因为不清楚为什么会这样正在发生的事情。最常见的情况是因为有持续性网络设备udev规则到位后,需要重新设置为新的虚拟机。要避免这个问题,请删除所有的persistent-net规则。在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
你能确保在包装盒子之前运行上面的命令吗