2014-10-03 79 views
2

我想在64位Ubuntu 12.04機器上使用Laravel Homestead。我已經安裝了Vagrant 1.6.5和Oracle的VM虛擬框4.3.1。啓動Vagrant時的連接超時

當我使用vagrant up命令開始我的流浪,它給我以下錯誤:

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... 

如何解決這個問題?

+0

嘗試參考此答案http://stackoverflow.com/a/25982233/297203 – od3n 2014-10-03 09:36:58

回答

1

有了這個問題的一個多星期,試過所有的解決方案,

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

最後得到了this link

解決方案添加Google public DNS IPWifi Settings

Network Preferences > Wifi > Advanced > DNS add IP Address 8.8.8.8

完美工作。可能是這可以幫助在Mac中有問題的人。謝謝Skovmand。

,並且確保你已經最新VagrantVMWare

+0

哇,這實際工作。我選擇連接到一個VPN,這也允許一切工作。 – 2014-12-11 07:34:21