ssh - ssh Vagrant连接超时重试

  显示原文与译文双语对照的内容
86 4

昨晚我的vagrant working 。我刚把电脑打开了,按了 vagrant up,这就是我得到的:

==> 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: 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: Error: Connection timeout. Retrying...
 default: Error: Connection timeout. Retrying...
 default: Error: Connection timeout. Retrying...
 default: Error: Connection timeout. Retrying...
 default: Error: Connection timeout. Retrying...
 default: Error: Connection timeout. Retrying...
 default: Error: Connection timeout. Retrying...
 default: Error: Connection timeout. Retrying...
 default: Error: Connection timeout. Retrying...
 default: Error: Connection timeout. Retrying...
 default: Error: Connection timeout. Retrying...
 default: Error: Connection timeout. Retrying...
 default: Error: Connection timeout. Retrying...

谁以前有过这个?vagrant没有在网上被广泛覆盖,我也找不到它发生的原因。

时间:原作者:0个回答

69 5

我解决了这个问题,如果有类似的问题,我会回答。

我所做的是:启用虚拟框的GUI,看看它在启动时等待输入是否直接引导到ubuntu或者安全。

要打开 GUI,你必须将它放在你的vagrant配置 Vagrantfile 中:

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