-
-
Notifications
You must be signed in to change notification settings - Fork 645
Vagrant Up stuck at SSH #965
Comments
@ameenshake I just ran into this and had to:
I am also downgraded to the geerlingguy/ubuntu1404. Once I did that I did a EDIT (Feb 22, 2017):
I upgraded these one at a time and at each layer experienced a different issue but once they are all updated and you spin up a new VM using geerlingguy/ubuntu1404, things should work. |
@ccjjmartin Tried but no luck! |
I think this is the same issue I am having on Ubuntu. I ran a unmodified version of drupalvm in dbug mode here's the output.
These made no difference. |
Can you boot the VM using the VirtualBox GUI to see what is halting the process? You can boot in GUI mode by either using the VirtualBox app or adding a config.vm.provider :virtualbox do |v|
v.gui = true
end |
#953 is possibly related. |
@BigEdDev oxyc's reference should be helpful. I am noticing that you are running 1.8.5. I had to upgrade vagrant to 1.8.6. Not sure if that would help. You might need to upgrade Ansible and VirtualBox too. |
@ameenshake In my .ssh config I specify the vagrant private key instead of the user name and password. Don't know if this will help:
|
I'm using the latest version of VirtualBox Checked to see that config.yml is using geerlingguy/ubuntu1404 Ran:
I'm still getting a timeout issue. Not sure what else to try. |
@mgifford - What versions of VirtualBox and Vagrant are you running? Also, what version of the box do you have ( |
Maybe I'm using the wrong one.. I have so many! $ vagrant box list VirtualBox Version 5.0.28 r111378 Vagrant 1.8.6 (although I just noticed that there is another update so pulling down 1.8.7 now). |
@mgifford Do you have the hostsupdater plugin installed? Do you have anything in your ~/.ssh/config file? What does |
@mgifford - You need to upgrade VirtualBox to 5.1.6 (or try 5.1.8 if you dare—some people have problems with that version). 5.0.x is no longer supported. |
Well, did wonders for the ssh timeout.... My ~/.ssh/ is filled with the usual dsa/rsa keys. Nothing unusual in ~/.ssh/config $ vagrant ssh-config I had totally assumed that if I checked for Updates that VirtualBox would just pull down the latest.. Didn't realize it stayed within the major version release. I'll try 5.1.8 for now and hope it works (It didn't)... So with 5.1.6 now I can get passed the ssh problem, but then run into this error fatal: [drupalvm]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Connection timed out during banner exchange\r\n", "unreachable": true} when running I also see this with
|
@mgifford - Unfortunately this is likely due to some caching that's going on with Vagrant. Try doing a Ugh, sometimes Vagrant and VirtualBox love making my life miserable :P |
Not sure if this helps, but I'm literally following along with every post and nodding along this morning, as I've had the EXACT same issues since yesterday morning. I can boot up an existing VM, but provisioning a new one freezes on "SSH auth method: private key." I also get the error listed in the comment above "There was a problem while downloading the metadata for your box" etc. I'll try geerlingguy's comment above and let you all know how it goes. |
As an update, I switched to php7 and ubuntu 1604 and got past the issue. So it seems to be only happening on 1404. |
@choicelildice - The problem is the 14.04 box is cached locally—you'd need to downgrade to an older version, and then update to the latest box version again. Also try VirtualBox 5.1.6. |
@geerlingguy Thanks for jumping in to help. I went ahead and removed all the boxes. When I type 'vagrant box list' I now get: 'There are no installed boxes! Use "==> cga: Box 'geerlingguy/ubuntu1404' could not be found. Attempting to find and install... URL: ["https://atlas.hashicorp.com/geerlingguy/ubuntu1404"] There is nothing below that "Error:" prompt. I have updated drupalvm, vagrant, and virtualbox to the most recent version. Any insight you can give would be really helpful. |
If I try to add the box manually, I run into a similar issue: vagrant box add geerlingguy/ubuntu1604 https://atlas.hashicorp.com/geerlingguy/boxes/ubuntu1604/versions/1.0.5/providers/virtualbox.box |
I just tried downgrading virtualbox to 5.1.6, unfortunately no luck. |
For anyone looking here that had the same issues as me: This was the solution to my problem: I simply ran 'sudo rm -rf /opt/vagrant/embedded/bin/curl' Thanks |
@choicelildice - See also notes on #981 |
It's all up and working for me again now. Thanks again for all the help! |
Great! |
Battled the timeout issue for 2 weeks.. tried multiple vagrant boxes/virtualbox versions blah..blah..blah Venture into your .vagrant.d file, there you will find a file insecure_private_key. I am linuxmint 18.2 and when I clicked on the file it opened and gave me the option to import it. I imported in giving a name of insecure_private_key. It looks as if it imported in Gnome2(?). Any ways after doing this the machine booted and the inline script ran flawlessly. OS - linux mint 18.2 32byte Hope this helps.. |
looks like you can now $cd /vargrant and you will be on your VM. |
Had this timeout problem on ubuntu 14tls. Found the following solution for me on other posts:
hope it can help :) |
|
open the VirtualBox UI, select the image and go to settings/network/Advanced/ -> check Cable Connected That worked for me as well |
Hi, if you are setting Vagrant in an ubuntu machine hosted in Windows, then you need to enable virtualization(VT_X) in your bios as well as in the VMware in which ubuntu is running. Also increase the no of processors and cores. |
How can I open UI on ubuntu? |
Everything was working fine at the start but once I destroyed the vagrant machine to recreate another one, it would give me the following error:
I am running this on Ubuntu 16.04. I have tried it all. I have tried increasing the timeout value, removing vagrant + ansible + virtualbox from my machine and reinstalling.
This is what happens when I try to provision:
I have tried setting "config.ssh.forward_agent" to false, I have tried adding config.ssh.username = "vagrant" and config.ssh.password = "vagrant", to no success.
The text was updated successfully, but these errors were encountered: