Laravel 4 漫游框:默认值:警告:连接超时。重试

Laravel 4 漫游框:默认值:警告:连接超时。重试,laravel-4,connection,localhost,vagrant,vagrantfile,Laravel 4,Connection,Localhost,Vagrant,Vagrantfile,我很难让流浪汉的箱子运转起来。我在此线程中尝试了解决方案:。那里运气不好。我还尝试增加config.vm.boot\u timeout的值。也不走运。请帮忙 $ vagrant destroy && vagrant up default: Are you sure you want to destroy the 'default' VM? [y/N] y ==> default: Forcing shutdown of VM... ==> default: D

我很难让流浪汉的箱子运转起来。我在此线程中尝试了解决方案:。那里运气不好。我还尝试增加config.vm.boot\u timeout的值。也不走运。请帮忙

$ vagrant destroy && vagrant up
    default: Are you sure you want to destroy the 'default' VM? [y/N] y
==> default: Forcing shutdown of VM...
==> default: Destroying VM and associated drives...
==> default: Running cleanup tasks for 'shell' provisioner...
==> default: Running cleanup tasks for 'shell' provisioner...
==> default: Running cleanup tasks for 'shell' provisioner...
==> default: Running cleanup tasks for 'shell' provisioner...
==> default: Running cleanup tasks for 'shell' provisioner...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'laravel/homestead'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Setting the name of the VM: Homestead_default_1404542131789_93737
==> 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 => 9000 (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...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
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.

If you look above, you should be able to see the error(s) that
Vagrant had when attempting to connect to the machine. These errors
are usually good hints as to what may be wrong.

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.

提前谢谢

您在这里发布的消息几乎是在VM启动结束时打印的

所以,在我看来,有两个主要原因

  • 你有一个防火墙,所以你甚至不能从你的本地主机访问流浪者机器。我会尝试禁用防火墙并再次运行

  • 你的客户机太重了,很多事情都是在启动时发生的,在它真正可用之前,所以vagrant会超时。在这种情况下,更新vm配置文件中的config.vm.boot\u timeout值,如vagrant所述


  • 希望这有助于

    您需要在BIOS中启用虚拟机选项,以使VirtualBox按预期工作


    对于虚拟化设置:

    在vagrant配置文件中启用键盘的gui输入

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

    在这个问题中,第二个答案适用于我。这种情况可能是因为VirtualBox无法重定向端口,尽管它说“==>default:Forwarding ports…”。。。默认值:22=>2222(适配器1)'您可以在这里查看我的问题中的完整描述。我仍然不知道如何修复重定向失败(请在我的帖子中留言,如果你成功了,以及你是如何成功的!