I'm using an Ubuntu 12.04 VM (hashicorp/precise32) via Vagrant/Virtualbox. It seems to have an exremely slow download speed compared to my host system. This is what I get with the host system (OSX) with speedtest-cli:
Testing download speed........................................
Download: 845.62 Mbits/s
Testing upload speed..................................................
Upload: 296.03 Mbits/s
And this is what I get in the guest OS (Ubuntu 12.04):
Testing download speed........................................
Download: 12.41 Mbits/s
Testing upload speed..................................................
Upload: 247.64 Mbits/s
So host download speed is 70 times faster! The usual response to these issues is this:
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end
But I have already configured it to my Vagrantfile.
I also tested this with plain Virtualbox and 12.04 (no Vagrant). The same issue occurs when I use NAT interface. However, switching to bridged mode makes the download speed 20x faster. This is nasty, since Vagrant relies on the NAT interface to be always eth0.
I use OSX Mavericks as the host system. Virtualbox version is 4.3.18.
Any ideas?