vagrant + virtualbox等待机器启动时超时

姆恩德夫

抱歉,我真的对vagrant陌生,我正在运行vagrant 1.4.3和virtualbox 4.3.26。而我的主机操作系统是ubuntu 14.04.2。

我是一名php开发人员,我正在尝试为几个项目准备好我的开发环境。

而且我从vagrantbox.es尝试的每个盒子在运行vagrant up命令时都会遇到相同的错误。错误是:

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.

我已经看过相同的问题,我尝试了

  config.vm.provider :virtualbox do |vb|
    vb.gui = true
  end

添加这些行之后,我会在框中找到登录页面,以便其启动,并且可以在GUI界面中运行命令。但令人惊讶的是,我得到了同样的错误。我以为自己可能是因为来宾操作系统无法登录,并且将这些行添加到了我的无用信息文件中

config.ssh.username   = "vagrant"
 config.ssh.password   = "vagrant"
 config.ssh.insert_key = "true"

但是我得到这个错误

There are errors in the configuration of this machine. Please fix
the following errors and try again:

SSH:
* The following settings shouldn't exist: insert_key, password

而且实际上我被搞砸了,我不知道我该怎么办。

姆恩德夫

我将流浪汉升级到1.7.2,现在我的问题已解决。但我看不到我的盒子在virtualbox界面中运行。毕竟,我现在可以将其放回我的盒子了,没有问题。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章