37
20
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?
1I had the same issue: the upload speed on a Boot2Docker image running on Vagrant, as measured using speedtest-cli, was 0 (so slow you can't measure it?). As soon as I added this setting, the upload speed matched the speed of my host OS. Thanks! – Yevgeniy Brikman – 2015-05-11T01:33:26.670
Does anyone know what are all the other possible values ? Any link to the docs ? – nha – 2015-05-22T11:51:32.767
no improvement for me I'm afraid. Vagrant 1.7.4, Virtualbox 5.0.4 – lsh – 2015-10-22T13:06:32.017
All possible options are here: https://www.virtualbox.org/manual/ch08.html#idp46730496367936 Try
– Juliusz Gonera – 2016-02-07T18:54:49.960Am79C973
too if you have problems withvirtio
.2VBoxManage modifyvm YourMachineName --nictype1 virtio – Brian Low – 2016-04-14T02:56:01.470
lol, from 176k/s to 56M/s after this, thanks! – Gerard Reches – 2017-03-22T18:33:18.947