【问题标题】:Vagrant up timeout VirtualBoxVagrant up timeout VirtualBox
【发布时间】:2016-03-30 00:49:58
【问题描述】:

我的 virtualbo 有问题,我尝试在我的 PC 上运行 vagrant,但出现错误。我尝试解决这个问题,我在网上寻找解决方案,但仍然无法正常工作。有人可以帮我解决这个问题吗?

Bringing machine 'default' up with 'virtualbox' provider...
default: Box 'laravel/homestead' could not be found. Attempting to        find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
default: Loading metadata for box 'laravel/homestead'
default: URL: https://atlas.hashicorp.com/laravel/homestead
default: Adding box 'laravel/homestead' (v0.4.0) for provider: virtualbox
default: Downloading:  https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.4.0/providers/virtualbox.box
default: Successfully added box 'laravel/homestead' (v0.4.0) for 'virtualbox'!
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-7
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 (guest) => 8000 (host) (adapter 1)
default: 443 (guest) => 44300 (host) (adapter 1)
default: 3306 (guest) => 33060 (host) (adapter 1)
default: 5432 (guest) => 54320 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (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

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.

我尝试在带有 VirtualBox 5.0.12 的 Ubuntu 15.10 上运行。在我的上网本上一切正常,但我想在台式电脑上使用这个项目

Ps:我的 BIOS 中没有任何虚拟化选项

【问题讨论】:

    标签: timeout vagrant virtualbox


    【解决方案1】:

    这样的问题有好几个,但这里有一个回答最多的一个:Vagrant stuck connection timeout retrying,可能你会在那里找到解决方案。

    在我的情况下,问题是 Vagrant 的 64 位 Debian in box - Virtual Box 将其视为 32 位,我必须在设置中手动更改它。您将在上面的链接中找到更准确的描述。

    【讨论】:

      【解决方案2】:

      事实证明,在 Windows 10 机器上对该问题进行了几天的故障排除后,BIOS 中的虚拟化设置被关闭并需要打开。

      一旦我弄清楚了这一点并打开了两个虚拟化设置,我就没有遇到通过 SSH 连接到我的虚拟机的问题。我还有其他一些小问题,但这些都与我的 Vagrantfiles 或配置文件有关,这只是我自己的自定义。

      也可以在这里查看这个答案: https://stackoverflow.com/a/34305608/6436098

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-05-14
        • 1970-01-01
        • 2017-01-11
        • 2016-11-09
        • 1970-01-01
        • 1970-01-01
        • 2016-10-16
        • 1970-01-01
        相关资源
        最近更新 更多