【问题标题】:Vagrant box doesn't start (Connection timeout)Vagrant box 没有启动(连接超时)
【发布时间】:2014-09-21 08:13:50
【问题描述】:

我尝试在我的 Windows 8.1(64 位)系统上启动我的 vagrant box,但它不起作用。我在两台机器上使用这个设置没有问题。

这是我得到的:

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'puphpet/ubuntu1404-x64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'puphpet/ubuntu1404-x64' is up to date...
==> default: Setting the name of the VM: vagrant-lamp_default_1411285570202_20465
==> 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 => 8080 (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...

我已经在寻找解决方案,但没有任何帮助。我启用了虚拟化并尝试在 GUI 模式下运行 mashine,但没办法……有人知道吗?需要更多信息?请问,我不知道我应该提供什么。

【问题讨论】:

    标签: virtual-machine vagrant virtualbox vagrantfile


    【解决方案1】:

    我通过禁用 Hyper-V 解决了我的问题,因为 Virtual Box 无法在启用 Hyper-V 的情况下运行。您必须决定要使用什么。

    禁用 Hyper-V:搜索“Windows 功能”。在那里您可以取消选中 Hyper-V。之后你必须重启你的机器。

    我宁愿建议使用提供 Hyper-V 的 Vagrant box。

    【讨论】:

    • 你介意告诉你在哪里禁用了 Hyper-V,请改进你的答案
    • 我调整了答案。
    猜你喜欢
    • 1970-01-01
    • 2017-08-29
    • 2016-11-19
    • 2019-02-12
    • 1970-01-01
    • 1970-01-01
    • 2018-01-01
    • 1970-01-01
    • 2016-04-09
    相关资源
    最近更新 更多