Vagrant up不工作,可能是SSH连接问题

时间:2015-08-12 02:02:19

标签: vagrant virtualbox

我第一次设置了我的VirtualBox和Vagrant:

sudo apt-get install virtualbox
sudo apt-get install vagrant
vagrant box add ubuntu/trusty64 https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box

..安装了Vagrant 1.4.3和Oracle VM VirtualBox Manager 4.3.10_Ubuntu。另外,我有Ubuntu 14.04。

然后将其解雇(并弄清楚是什么):

VAGRANT_LOG=info vagrant up

..到目前为止:

[default] Waiting for machine to boot. This may take a few minutes...

..然后它只是一遍又一遍地重复以下过程。我可以看到这是SSH的一个问题,但我不知道为什么。

INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "showvminfo", "7ab49709-85ee-4bf0-b4bd-7bc200ae87de", "--machinereadable"]
 INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "showvminfo", "7ab49709-85ee-4bf0-b4bd-7bc200ae87de", "--machinereadable"]
 INFO ssh: Attempting SSH connnection...
 INFO ssh: Attempting to connect to SSH...
 INFO ssh:   - Host: 127.0.0.1
 INFO ssh:   - Port: 2222
 INFO ssh:   - Username: vagrant
 INFO ssh:   - Key Path: ["/home/martyn/.vagrant.d/insecure_private_key"]
 INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "showvminfo", "7ab49709-85ee-4bf0-b4bd-7bc200ae87de", "--machinereadable"]
 INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "showvminfo", "7ab49709-85ee-4bf0-b4bd-7bc200ae87de", "--machinereadable"]
 INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "showvminfo", "7ab49709-85ee-4bf0-b4bd-7bc200ae87de", "--machinereadable"]

如果我尝试单独运行vagrant ssh命令(在另一个CLI选项卡中,因为此进程仍在运行),它只会挂起

1 个答案:

答案 0 :(得分:0)

你的.vagrant文​​件夹中有 private_key 吗? 如果您尝试destroy整个事情并再次添加该框。你收到同样的消息吗?