Monday, June 27, 2016

[SOLUTION] Vagrant - Remote connection disconnect. Retrying ...

Here is error from guest machine, complaining about remote connection

 ==> default: Attempting graceful shutdown of VM...  
 ==> default: Clearing any previously set forwarded ports...  
 ==> default: Clearing any previously set network interfaces...  
 ==> default: Preparing network interfaces based on configuration...  
   default: Adapter 1: nat  
   default: Adapter 2: hostonly  
 ==> default: Forwarding ports...  
   default: 80 (guest) => 8080 (host) (adapter 1)  
   default: 3000 (guest) => 3000 (host) (adapter 1)  
   default: 22 (guest) => 2222 (host) (adapter 1)  
 ==> default: Running 'pre-boot' VM customizations...  
 ==> 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: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  

Patience worked here !! (after waiting for few more minutes finally machine is booted with errors)

 ==> default: Attempting graceful shutdown of VM...  
 ==> default: Clearing any previously set forwarded ports...  
 ==> default: Clearing any previously set network interfaces...  
 ==> default: Preparing network interfaces based on configuration...  
   default: Adapter 1: nat  
   default: Adapter 2: hostonly  
 ==> default: Forwarding ports...  
   default: 80 (guest) => 8080 (host) (adapter 1)  
   default: 3000 (guest) => 3000 (host) (adapter 1)  
   default: 22 (guest) => 2222 (host) (adapter 1)  
 ==> default: Running 'pre-boot' VM customizations...  
 ==> 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: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
   default: Warning: Remote connection disconnect. Retrying...  
 ==> 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 o  
 f  
   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 t  
 he  
   default: virtual machine match the version of VirtualBox you have installed  
 on  
   default: your host and reload your VM.  
   default:  
   default: Guest Additions Version: 4.1.12  
   default: VirtualBox Version: 4.3  
 ==> default: Setting hostname...  
 ==> default: Configuring and enabling network interfaces...  
 The following SSH command responded with a non-zero exit status.  
 Vagrant assumes that this means the command failed!  
 /sbin/ip addr flush dev eth1 2> /dev/null  
 Stdout from the command:  
 Stderr from the command:  
 stdin: is not a tty  

Then logged into guest machine - vagrant ssh

Traced to path -  /etc/udev/rules.d/
and remove the '70-persistent-net.rules' 

Script 

 [ -f /etc/udev/rules.d/70-persistent-net.rules ] && rm -fr /etc/udev/rules.d/70-persistent-net.rules   

Ref-
https://groups.google.com/forum/#!topic/vagrant-up/bviqvAtHXbw

Vagrant

1 comment :

  1. I bought it for my husband. This summer,discounted ray-ban sunglasses I only need a pair of sunglasses, I bought it when I saw this event. There are not many men's sunglasses brands. Ray-Ban is my favorite. This is not fancy. The logo is also small.discounted ray bans round It looks very representative. This is the glasses of their family. Husband is super like, happy.

    ReplyDelete

 

© 2011 GIS and Remote Sensing Tools, Tips and more .. ToS | Privacy Policy | Sitemap

About Me