After upgrading from Ubuntu 12.04 (“Precise Pangolin”) to 12.10 (“Quantal Quetzal”) I lost the DNS resolver that VirtualBox normally provides on 10.0.2.3, meaning I couldn’t boot my Vagrant VMs.
Finding an answer that worked around it for singular VMs, I wanted something that worked for all VMs on the laptop (at least until I can fix the actually broken DNS resolver) and I’ve found one.
As per http://docs-v1.vagrantup.com/v1/docs/vagrantfile.html, it’s possible to specify additional parameters to Vagrant in ~/.vagrant.d/Vagrantfile - but it’s not exactly clear how, turns out you can just place them in a normal config block like so:
1 2 3 |
|
Before applying the fix I was getting hangs at “Waiting for VM to boot” like so:
1 2 3 4 5 6 7 8 9 10 |
|
after applying the fix, it continues on:
1 2 3 4 5 6 7 |
|
Edit: I just thought I’d add that the config has changed slightly with Vagrant 1.1+, so you now need a “v2 config block” (see: http://docs.vagrantup.com/v2/virtualbox/configuration.html):
1 2 3 4 5 |
|