How to fix extremely slow Virtualbox network download speed?

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?


For vagrant users, add the following to your Vagrant file:

config.vm.provider "virtualbox" do |v|
  v.customize ["modifyvm", :id, "--nictype1", "virtio"]
end

I got a speed boost of ~15x. On VirtualBox GUI I see now a different Adapter Type for my NAT interface: Paravirtualized Network (virtio-net).


I have found mach simpler solution for me

  • Host ubuntu 14.04
  • guest ubuntu 14.04
  • Nat with port forwarding
  • extremely slow upload speed from guest. It was so slow that speed test even cant measure that.

I just switched to PCNet-Fast III adapter. And speed become good enough for me (40 Mb/s)