virtualbox - Vagrant "Timed out while waiting for the machine to boot." -


i had working setup vagrant 1.8.1 , virtualbox 5.0.22, after upgrading vagrant 1.8.5 , 5.1.0, dreaded "timed out while waiting machine boot."

any options other downgrading?

full output:

bringing machine 'centos7' 'virtualbox' provider... ==> centos7: importing base box 'centos/7'... ==> centos7: matching mac address nat networking... ==> centos7: checking if box 'centos/7' date... ==> centos7: setting name of vm: centos7-openvpn ==> centos7: clearing set network interfaces... ==> centos7: preparing network interfaces based on configuration...     centos7: adapter 1: nat     centos7: adapter 2: bridged ==> centos7: forwarding ports...     centos7: 22 (guest) => 2222 (host) (adapter 1) ==> centos7: running 'pre-boot' vm customizations... ==> centos7: booting vm... ==> centos7: waiting machine boot. may take few minutes...     centos7: ssh address: 127.0.0.1:2222     centos7: ssh username: vagrant     centos7: ssh auth method: private key     centos7: warning: remote connection disconnect. retrying...     centos7:     centos7: vagrant insecure key detected. vagrant automatically replace     centos7: newly generated keypair better security.     centos7:     centos7: inserting generated public key within guest...     centos7: removing insecure key guest if it's present...     centos7: key inserted! disconnecting , reconnecting using new ssh key...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying...     centos7: warning: authentication failure. retrying... timed out while waiting machine boot. means vagrant unable communicate guest machine within configured ("config.vm.boot_timeout" value) time period.  if above, should able see error(s) vagrant had when attempting connect machine. these errors hints may wrong.  if you're using custom box, make sure networking working , you're able connect machine. common problem networking isn't setup in these boxes. verify authentication configurations setup properly, well.  if box appears booting properly, may want increase timeout ("config.vm.boot_timeout") value. 

this caused bug #7610 fixed in git.

you can apply fix while wait new release editing file vagrant/plugins/guests/linux/cap/public_key.rb , appliying following change described in bug report:

diff -unr vagrant-original/plugins/guests/linux/cap/public_key.rb vagrant/plugins/guests/linux/cap/public_key.rb --- vagrant-original/plugins/guests/linux/cap/public_key.rb     2016-07-19 12:06:56.575045974 -0500 +++ vagrant/plugins/guests/linux/cap/public_key.rb      2016-07-19 12:07:34.303376009 -0500 @@ -54,6 +54,7 @@              if test -f ~/.ssh/authorized_keys;                grep -v -x -f '#{remote_path}' ~/.ssh/authorized_keys > ~/.ssh/authorized_keys.tmp                mv ~/.ssh/authorized_keys.tmp ~/.ssh/authorized_keys +              chmod 0600 ~/.ssh/authorized_keys              fi               rm -f '#{remote_path}' 

Comments