我第一次设置了我的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选项卡中,因为此进程仍在运行),它只会挂起