启动Vagrant时的连接超时

时间:2014-10-03 08:29:29

标签: linux ubuntu laravel vagrant

我正在尝试在64位Ubuntu 12.04计算机上使用Laravel Homestead。我已经安装了Vagrant 1.6.5和Oracle的VM虚拟盒4.3.1。

当我使用vagrant up命令启动我的Vagrant时,它会给我以下错误:

vagrant up
Bringing machine 'default' up with 'virtualbox' provider...

==> default: Checking if box 'laravel/homestead' is up to date...
==> default: A newer version of the box 'laravel/homestead' is available! You currently
==> default: have version '0.1.6'. The latest is version '0.2.0'. Run
==> default: `vagrant box update` to update.
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 80 => 8000 (adapter 1)
    default: 3306 => 33060 (adapter 1)
    default: 5432 => 54320 (adapter 1)
    default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...

如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

如果这个问题超过一周,请尝试所有解决方案,

1. giving SSH username and password
2. Enabling GUI interface

最后得到this link

的解决方案

Google public DNS IP添加到Wifi Settings

<{1>}

下的

工作完美。可能这可以帮助那些在Mac上遇到问题的人。谢谢Skovmand。

并确保您拥有最新的Network Preferences > Wifi > Advanced > DNS add IP Address 8.8.8.8Vagrant