From 2e3bd9f87b530df72e33ab22fe7dd323cc5050f6 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Mon, 23 Oct 2017 18:53:34 +0530 Subject: [PATCH] Vagrantfile: don't limit network speed --- Vagrantfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index dc6d07e..52b68b7 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -26,6 +26,14 @@ Vagrant.configure("2") do |config| # using a specific IP. config.vm.network "private_network", ip: "192.168.33.10" + # Use the NAT hosts DNS resolver. Fixes slow network in the guest. + # See https://serverfault.com/questions/495914/vagrant-slow-internet-connection-in-guest + config.vm.provider "virtualbox" do |v| + v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] + v.customize ["modifyvm", :id, "--natdnsproxy1", "on"] + v.customize ["modifyvm", :id, "--nictype1", "virtio"] + end + # Share an additional folder to the guest VM. The first argument is # the path on the host to the actual folder. The second argument is # the path on the guest to mount the folder. And the optional third