Skip to content
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.

ansible up == default: Warning: Connection timeout. Retrying... #21

Closed
ElijahLynn opened this issue Feb 26, 2017 · 8 comments
Closed

ansible up == default: Warning: Connection timeout. Retrying... #21

ElijahLynn opened this issue Feb 26, 2017 · 8 comments

Comments

@ElijahLynn
Copy link

ElijahLynn commented Feb 26, 2017

Moved from geerlingguy/ansible-for-devops#54

Host Ubuntu 14.04, ansible 2.2.0.0, vboxmanage 4.3.36_Ubuntur105129

When doing an ansible up I get a

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'geerlingguy/centos7'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'geerlingguy/centos7' is up to date...
==> default: Setting the name of the VM: vagrant_default_1488056506230_50292
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> 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: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...

This answer to use the GUI prompt to choose default|safe mode does get me past that stage. http://stackoverflow.com/a/22575302/292408.

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

In addition vagrant ssh doesn't appear to work, not sure if it is related or not.

@ElijahLynn
Copy link
Author

When I use vagrant box add centos/7 for Virtualbox it does work though. Interesting.

$ vagrant init centos/7                                             
A `Vagrantfile` has been placed in this directory. You are now                          
ready to `vagrant up` your first virtual environment! Please read                       
the comments in the Vagrantfile as well as documentation on                             
`vagrantup.com` for more information on using Vagrant.                                  
$ vagrant up                                                        
Bringing machine 'default' up with 'virtualbox' provider...                             
==> default: Importing base box 'centos/7'...                                           
==> default: Matching MAC address for NAT networking...                                 
==> default: Checking if box 'centos/7' is up to date...                                
==> default: Setting the name of the VM: vagrant_default_1488126687436_13571            
==> default: Clearing any previously set network interfaces...                          
==> default: Preparing network interfaces based on configuration...                     
    default: Adapter 1: nat                                                             
==> 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: Warning: Connection timeout. Retrying...                                   
    default: Warning: Remote connection disconnect. Retrying...                         
==> default: Machine booted and ready!                                                  
==> default: Checking for guest additions in VM...                                      
    default: No guest additions were detected on the base box for this VM! Guest        
    default: additions are required for forwarded ports, shared folders, host only      
    default: networking, and more. If SSH fails on this machine, please install         
    default: the guest additions and repackage the box to continue.                     
    default:                                                                            
    default: This is not an error message; everything may continue to work properly,    
    default: in which case you may ignore this message.                                 
==> default: Rsyncing folder: /media/elijah/Files/vagrant/ => /vagrant                  

@ElijahLynn
Copy link
Author

ElijahLynn commented Feb 26, 2017

Also same issue with 1.1.6

$ vagrant up                                                  
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'geerlingguy/centos7'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'geerlingguy/centos7' is up to date...
==> default: A newer version of the box 'geerlingguy/centos7' is available! You currently
==> default: have version '1.1.6'. The latest is version '1.1.7'. Run
==> default: `vagrant box update` to update.
==> default: Setting the name of the VM: vagrant-geerling_default_1488128011447_1865
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 => 2200 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2200
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...

@ElijahLynn
Copy link
Author

1.1.0 does appear to work though

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...                          
==> default: Importing base box 'geerlingguy/centos7'...                             
==> default: Matching MAC address for NAT networking...                              
==> default: Checking if box 'geerlingguy/centos7' is up to date...                  
==> default: Setting the name of the VM: vagrant-geerling_default_1488129268795_44827
==> default: Fixed port collision for 22 => 2222. Now on port 2200.                  
==> default: Clearing any previously set network interfaces...                       
==> default: Preparing network interfaces based on configuration...                  
    default: Adapter 1: nat                                                          
==> default: Forwarding ports...                                                     
    default: 22 (guest) => 2200 (host) (adapter 1)                                   
==> default: Booting VM...                                                           
==> default: Waiting for machine to boot. This may take a few minutes...             
    default: SSH address: 127.0.0.1:2200                                             
    default: SSH username: vagrant                                                   
    default: SSH auth method: private key                                            
    default: Warning: Remote connection disconnect. Retrying...                      
    default:                                                                         
    default: Vagrant insecure key detected. Vagrant will automatically replace       
    default: this with a newly generated keypair for better security.                
    default:                                                                         
    default: Inserting generated public key within guest...                          
    default: Removing insecure key from the guest if it's present...                 
    default: Key inserted! Disconnecting and reconnecting using new SSH key...       
==> default: Machine booted and ready!                                               
==> default: Checking for guest additions in VM...                                   
    default: The guest additions on this VM do not match the installed version of    
    default: VirtualBox! In most cases this is fine, but in rare cases it can        
    default: prevent things such as shared folders from working properly. If you see 
    default: shared folder errors, please make sure the guest additions within the   
    default: virtual machine match the version of VirtualBox you have installed on   
    default: your host and reload your VM.                                           
    default:                                                                         
    default: Guest Additions Version: 5.0.16                                         
    default: VirtualBox Version: 4.3                                                 
==> default: Mounting shared folders...                                              
    default: /vagrant => /media/elijah/Files/vagrant-geerling                        

@ElijahLynn
Copy link
Author

1.1.3 and 1.1.5 work as well.

@ElijahLynn
Copy link
Author

Odd, I had updated Vagrant to 1.9.1 to get the option to init a certain version of a box.

Now 1.1.7 just hangs at default: SSH auth method: private key.

@ElijahLynn
Copy link
Author

I checked out the repo and tried to do a diff but the tags/releases don't match the published boxes.

@geerlingguy
Copy link
Owner

@ElijahLynn - Yeah, unfortunately it's been difficult to keep the tags and box versions in sync as I never was too strict about tags when VirtualBox guest additions were updated :/

@geerlingguy
Copy link
Owner

Closing as all development work for my packer boxes is moving into a central repository, see: geerlingguy/packer-boxes#45

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants