Fix slow DNS resolution for Virtualbox

There's a known issue with virtualbox where
DNS resolution is significantly delayed:
https://www.virtualbox.org/ticket/13002

This was causing some of the rkt commands to
timeout before completing. particularly "rkt trust"
This commit is contained in:
John Brooker
2015-02-19 12:09:55 -08:00
parent f0ba97b1fc
commit dcb83b6e57
Vendored
+13 -3
View File
@@ -1,5 +1,15 @@
Vagrant.configure('2') do |config|
config.vm.box = "ubuntu/trusty64" # Ubuntu 14.04
config.vm.provision :shell, :privileged => false, :path => "scripts/install-go.sh"
config.vm.provision :shell, :privileged => false, :path => "scripts/install-rocket.sh"
# grab Ubuntu 14.04 official image
config.vm.box = "ubuntu/trusty64" # Ubuntu 14.04
# fix issues with slow dns https://www.virtualbox.org/ticket/13002
config.vm.provider :virtualbox do |vb, override|
vb.customize ["modifyvm", :id, "--natdnsproxy1", "off"]
end
# install Build Dependencies (GOLANG)
config.vm.provision :shell, :privileged => false, :path => "scripts/install-go.sh"
# Install Rocket
config.vm.provision :shell, :privileged => false, :path => "scripts/install-rocket.sh"
end