From dcb83b6e57919251b09ba31f406cd4fa9e1ddacf Mon Sep 17 00:00:00 2001 From: John Brooker Date: Thu, 19 Feb 2015 12:09:55 -0800 Subject: [PATCH] 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" --- Vagrantfile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index baceb9a..44454fc 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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