Virtualbox, slow upload speed using nat [closed]

Solution 1:

I used the following setting:

modifyvm <vm> --natsettings1 1500,1024,1024,1024,1024

This is what I came up with based on http://www.virtualbox.org/manual/ch09.html#nat-adv-settings

--natsettings<1-N> [<mtu>],[<socksnd>],[<sockrcv>],[<tcpsnd>], [<tcprcv>]

It looks like a dev made a units conversion issue with the send speed vs download speed. By default the "tcprcv" is way way way higher than the "tcpsnd".

Solution 2:

On Ubuntu 14.04, I had to use the virtio NIC type to get decent speeds from VirtualBox:

modifyvm --nictype1 virtio