windows - 引导时 Vagrant 'remote connection disconnect'

标签 windows vagrant

每当我尝试在我的 Windows 7 x64 笔记本电脑上使用 vagrant upgit bash 中启动 Vagrant box 时,我都会收到一长串 Warning: Remote连接断开。正在重试... 消息。有时这会导致失败并显示几条不同的消息(未安装 guest VM 工具或超时),但有时,在 10 或 15 条消息后,它会成功启动,我可以通过 SSH 进入。

一张图来说明:

Vagrant up in git bash

vagrant up 命令的完整输出:

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ianwalter/ubuntu-node-nginx' is up to date...
==> 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: Forwarding ports...
    default: 9966 => 9966 (adapter 1)
    default: 22 => 2222 (adapter 1)
==> 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: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...
    default: Warning: Remote connection disconnect. Retrying...

等等。这是通常的行为吗?有什么办法可以解决吗?我正在使用 VirtualBox 4.3.12 运行 Vagrant 1.6.2。

编辑:根据 BrianC 的建议,我启动了一个 GUI session 以查看在连接被拒绝时虚拟机在做什么。这是它的样子:

Git bash and VM gui

最佳答案

我现在通过将基本框从 ianwalter/ubuntu-node-nginx 更改为 ubuntu/trusty64 并手动安装 node/NPM 解决了这个问题 from the package manager .它似乎并没有给我带来同样的麻烦,所以我推测是另一张图片中的某些东西导致了停顿。

关于windows - 引导时 Vagrant 'remote connection disconnect',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25048640/

相关文章:

php - Laravel 黄昏错误 : Failed to connect to localhost port 9515: Connection refused

python - 使用 pywin32/excel 在 Windows 上将 Python 移植到 Vagrant 机器上的 Linux

windows - Inno Setup - 卸载程序时从 PATH 环境变量中删除路径

windows - 在 Windows 7 x86 上安装 Thin 时出现问题

Windows TCP keepalive 发送没有 PSH 的 1 字节消息

C: 如何查看电脑是否被锁定/休眠?

ubuntu - 在 Chef 中创建厨房时出错

c - Winsock 接受超时

ubuntu - Vagrant - npm install 不起作用

linux - Vagrant 拒绝启动(远程连接断开)