vagrant + virtualbox 在等待机器启动时超时 [英] vagrant + virtualbox Timed out while waiting for the machine to boot

查看:115
本文介绍了vagrant + virtualbox 在等待机器启动时超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

sorry I'm really new to vagrant I am running vagrant 1.4.3 and virtualbox 4.3.26. and my host OS is ubuntu 14.04.2.

我是一名 php 开发人员,我正在努力让我的开发环境为几个项目做好准备.

I am a php developer and I'm trying to make my development environment ready for couple of projects.

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

and every box I try from vagrantbox.es I get the same error when running vagrant up command. and the error is :

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.

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

I've looked through same questions and I tried

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

添加这些行后,我在我的框中获得了登录页面,因此它可以启动并且我可以在 GUI 界面中运行我的命令.但令人惊讶的是我得到了同样的错误.我想可能是因为来宾操作系统无法登录,我将这些行添加到我的流浪文件中

after adding these lines I get login page in my box so its booting and I can run my commands in the GUI interface. but surprisingly I get same error. I thought with myself maybe its because the guest OS couldn't login and I add these lines to my vagrant file

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

实际上我被搞砸了,我不知道我还能做什么.

and actually I'm screwed and I don't know what else should I do .

推荐答案

我将 vagrant 升级到 1.7.2,现在我的问题解决了.但我没有看到我的盒子在 virtualbox 界面中运行.毕竟我现在可以 ssh 到我的盒子,没有问题.

I upgraded my vagrant to 1.7.2 and my problem is solved now. but I don't see my box running in virtualbox interface . after all I can now ssh to my box and there is no problem.

这篇关于vagrant + virtualbox 在等待机器启动时超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆