Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vagrant Warning: Connection refused. Retrying

Testing default example

$ vagrant init hashicorp/precise32
$ vagrant up

My box:

  • Windows 8.1
  • VirtualBox 5.0.2
  • Vagrant 1.7.4
  • Intel i7-4700MQ CPU witch seems to have Intel® Virtualization Technology (VT-x) http://ark.intel.com/products/75117/Intel-Core-i7-4700MQ-Processor-6M-Cache-up-to-3_40-GHz

I know this is common error but after trying everything I still cannot make it work Getting error

While VM shows: enter image description here

And I can log in successfully: enter image description here

Firewall / Antivirus turned off.

Hyper-V is not installed
enter image description here

I have tried connecting via putty to 127.0.0.1 2222 enter image description here

EDIT: enter image description here

enter image description here

Vagrantfile (I have removed commented out lines)

Vagrant.configure(2) do |config|
    config.vm.box = "hashicorp/precise32"
end

This is what vagrant ssh does... nothing. And vagrant reload stuck on same issue. enter image description here

like image 651
Ben Avatar asked Sep 03 '15 10:09

Ben


1 Answers

This happens with Vagrant from time to time with the first spin up. After it does that it will timeout and drop you back at the prompt, go vagrant ssh, it will let you in. If it does not go vagrant reload and it will restart the vm. This occurs because the vagrant images have dns turned off so it takes a while to resolve the connection. Again, this sometimes occurs on the first up after you download it and spin it up.

like image 100
GHETTO.CHiLD Avatar answered Oct 05 '22 17:10

GHETTO.CHiLD