【问题标题】:Connection timeout when starting Vagrant启动 Vagrant 时连接超时
【发布时间】:2014-11-24 12:59:32
【问题描述】:

我正在尝试在 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...

如何解决?

【问题讨论】:

标签: linux ubuntu laravel vagrant


【解决方案1】:

这个问题一个多星期了,尝试了所有解决方案,

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

终于从this link得到解决方案

Google public DNS IP 添加到您的Wifi Settings

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

完美运行。可能这可以帮助在 Mac 中有问题的人。谢谢斯科夫曼德。

还要确保您拥有最新的 VagrantVMWare

【讨论】:

  • 哇,这确实有效。我也选择连接到 VPN,它也允许一切正常工作。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-01-01
  • 1970-01-01
  • 2014-11-26
  • 2016-11-25
  • 1970-01-01
  • 1970-01-01
  • 2014-04-29
相关资源
最近更新 更多