I want to preface this question by mentioning that I have indeed looked over most if not all vagrant "Waiting for VM to Boot" troubleshooting threads:
Things I've tried include:
https://superuser.com/questions/342473/vagrant-ssh-fails-with-virtualbox
http://scotch.io/tutorials/get-vagrant-up-and-running-in-no-time
And more.
Here's how I setup my Vagrant:
Note: We are using Vagrant 1.2.2 since we do not at the moment have time to change configs to newer versions. I am also using VirtualBox 4.2.26.
- My office has an
/official/
folder which includes things such asVagrantfile
inside. Inside myVagrantfile
are these custom settings:
config.vm.box = "my_box" config.ssh.private_key_path = "~/.ssh/github_rsa" config.ssh.forward_agent = true config.ssh.forward_x11 = true config.ssh.max_tries = 300 config.vm.provision :shell, :inline => "/etc/init.d/networking restart"
I installed our custom box (called
package.box
) viavagrant box add my_box absolute_path/package.box
which went without a hitch.Running
vagrant up
, I would look at the "preview" of the VirtualBox, and it would simply be stuck at the login page. My Terminal would also only say:Waiting for VM to boot. This can take a few minutes.
As far as I know, this is an SSH issue. Or my private key issues, though in myVagrantfile
I explicitly pointed to my private key location.
Interesting Notes:
Running
dhclient
within the VirtualBox GUI, it says command no found. Runningsudo dhclient eth0
was one of the suggested fixes.This fix: https://superuser.com/a/343775/298915 of "modify the
/etc/rc.local
file to include the linesh /etc/init.d/networking restart
just beforeexit 0
." did nothing to fix the issue.
Conclusion:
Having tried to re-install everything thinking I messed up a file, it did not seem to ameliorate the issue. I am unable to work with this issue. Could someone give me some insight?