-
Notifications
You must be signed in to change notification settings - Fork 572
Instance creation hangs on "Waiting for SSH to become available..." #3
Comments
It usually means that it can just never connect with SSH. Can you run it again with |
Sure, no problem. There's a lot of debugging output, but the following set of lines eventually repeats indefinitely...
Looks like your diagnosis is correct. Any advice for how to resolve the problem? And did you want the full debug output? There's a lot, so I decided to copy the relevant bits from the end. |
You got the meat I would've found. This is likely bad security groups blocking SSH. |
Right again. I was using the "default" security group, but I created another one called "vagrant" and opened up port 22 to the universe. Then I added this line in the AWS provider section of my Vagrantfile...
The instance was created without any issue and I was able to SSH into it immediately. Thanks so much for your help! I'm actually doing a talk on Vagrant and Puppet tomorrow afternoon at Boise Code Camp, so I'm really glad this example is working now. :) |
I have a similar problem, but my setup involves a VPC. Vagrant seems unable to connect via ssh. I have the correct security group in my Vagrantfile, I can manually ssh into the instance from another terminal.
|
I had a similar issue but solved changing the ownership of the key-par. It just worked. Great job with Vagrant! |
I fixed my problem with this PR #30 |
Mine was a iptables issue solved by allowing incoming connections to loopback interface. |
Hi, I'm new to vagrant, so far the experience in general has been great, however I think the aws plugin can improve, I'm running Ubuntu and the default instructions doesn't work, the plugin depends on fog and it requires to install some dependencies (issue #163) , when I got to install it correctly, it still didn't work, I was tackled by this bug (not sure why it was closed without a fix). In my opinion, the plugin should work out of the box, it should create and use a default security group (if no default security group is provided) which will allow to control the virtual machine vagrant has just created, it's kind of fun it can create and launch the ec2 instance but not to connect to it =) Later I was able to connect to the VM by adding another security group in the ec2 dashboard, however I think it would be cooler if vagrant-aws could give the whole enchilada. Note: It seems such report already exist on #95 , Feature request: create a "vagrant" security group if none is specified |
I created a 'vargant' security group with SSH inbound enabled for all IPs, then I put
to
I check on EC2 dashboard and the created instance IS running with security group vagrant. Can anyone help what i am missing? |
same issue |
Hi Guys, What i got from this issue to solve it was that Private Key *.pem must have the same user owner thats running vagrant, example if you run vagrant with root, the owner of *.pem file must be root too. If you are running with your own user (aka "piber"), piber must be the owner and goes on. |
I'm getting the same. I did figure out it was that a security group was needed, and used my own one that I'd prepared long ago through the ec2 console, and eventually figured that an 'array' meant [brackets] and it wanted the security group description rather than the ID
HOWEVER, it's still hanging.
does log me in fine, so the ports and the instance are fine. Righty. I wish it had told me the key was rejected rather than just hanging there forever. The sanitized examples in the quickstart had me guessing a lot - could you provide slightly more illustrative example strings?
|
Same problem here when using my personal (rsa) key pair. I resolved it by using the AWS-generated pem file in my |
I've seen similar behavior when preseed.cfg is unreachable from vm. Mb you should ensure the template directory contains this file. |
If you are using Mac, your private key has passphrase, and you have stored your passphrase in keychain (with I couldn't figure out why this happen, but according to debug log it said ssh couldn't read the private key. With some googling, I eventually found this Ask Different answer so I put corresponding public key there, then the problem disappeared. |
I think if you follow the instructions AWS gives at http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/building-shared-amis.html on securing your AMI, where they tell you to disable root login with |
I had the same issue (Waiting for SSH to become available...) but my problem was that the admin username in config.yaml was |
I'm having issues with this still - can anyone confirm if its the security group ID I need, or the description - and also do I need single quotes or double quotes in the array (i've seen both examples). I'm using Windows. |
Please check your bios setting if your computer allows 64-bit virtualization. |
I too am hitting this. Host OS is Windows 10. Trying to start up a Windows Server 2012 R2 based completely on the Packer scripts with only changes for my license key and the ISO location on disk. |
Wanted to throw out my thanks for this thread. Ran into the same problem of not being able to connect to the instance and changing the default security group as mentioned above fixed my issue. |
I was having this issue as well. My company's security policies prevent me from creating an instance which has 22 opened to the world, but I can tunnel through another AWS instance in order to access the instance that vagrant brings up. I have an SSH config file (~/.ssh/config) which sets this tunnel up automatically on any EC2 connection, but vagrant doesn't seem to be reading it. Curious if there's a way to make vagrant aws read the ssh config file, or some other way to set extra options on its SSH command? I didn't see anything like this in the README. |
Hello Guys, I am facing similar problem.please help me to resolve the error [root@ip-172-31-19-169 vagrant_test]# vagrant up --provider=aws Execution stuck here and not moving forward. my Vagrant file is as below Vagrant.configure("2") do |config| config.vm.provider :aws do |aws, override|
end |
None of the above solution is working for me |
Me neither tried 3 different AMI images. if I launch image XXX from the amazon console, and set security group YYY then I can connect with ssh user WWW and key pair ZZZ; setting XXX YYY WWW and ZZZ in the Vagrantfile creates an image to which I cannot connect. |
For me it was a change to |
Yeah, that did the trick for me too! |
Get region value from provider.region, fix for a12ccea
I'm using Vagrant 1.1.0 and v0.1.0 of the vagrant-aws plugin. When I try to create an EC2 instance, the creation process gets hung up on "Waiting for SSH to become available...". However, the instance is created and I can see it in my EC2 Dashboard.
Here is my (redacted) Vagrantfile...
And here is the output I'm seeing...
I've tried this in the "us-west-2" and "us-east-1" regions with the same result. I must be doing something wrong, but I have no idea what it is.
The text was updated successfully, but these errors were encountered: