gpt4 book ai didi

windows - 引导时 Vagrant 'remote connection disconnect'

转载 作者:可可西里 更新时间:2023-11-01 09:28:56 25 4
gpt4 key购买 nike

每当我尝试在我的 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com