【问题标题】:Homestead: Vagrant was unable to communicate with the guest machineHomestead:Vagrant 无法与来宾机器通信
【发布时间】:2016-02-18 12:28:47
【问题描述】:

我刚刚在Laravel 5.2 documentation 之后安装了带有 Vagrant 和 Virtual-box 的 Homestead,当我运行 vagrant up 命令时,我收到以下错误。 我没有找到 config.vm 文件来增加超时,但经过一些研究,我通过 bios 启用了英特尔虚拟化,它没有修复它。
我怎样才能揭示真正的问题?

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.

【问题讨论】:

    标签: laravel vagrant homestead


    【解决方案1】:

    您可以使用 GUI 工具来更改超时和所有内容。我们通常使用 Oracle VM VirtualBox Manager

    将此添加到您的 Vagrantfile 中

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

    【讨论】:

    • 更改 Vagrantfile 文件时出现此错误:消息:NameError: undefined local variable or method `config' for main:Object
    • 请分享你的流浪文件
    • 请像这样添加config.vm.provider "virtualbox" do |v| v.gui = true end
    • 请参阅此文档vagrantup.com/docs/virtualbox/configuration.html 并查看GUI VS. HEADLESS 部分
    • 它突然起作用了,除了删除你给我的行之外,我什么也没做。我认为这是一个超时问题,但我不确定。
    猜你喜欢
    • 1970-01-01
    • 2018-08-29
    • 2017-09-21
    • 2022-11-14
    • 1970-01-01
    • 2010-11-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多