2

I'm trying to limit the bandwidth of a virtual machine running via VirtualBox.

trickle -d 5 virtualbox doesn't work, I believe because of an issue with child processes
(trickle -d 5 sudo apt-get upgrade doesn't work either)

How can I limit the download/upload bandwidth of VirtualBox's VMs?

1
  • also look at (search for) answers here using wondershaper or tc
    – belacqua
    Oct 26 '13 at 20:30
3

VirtualBox has bandwidth limiting that you can enable via VboxManage.
See http://www.virtualbox.org/manual/ch06.html#network_bandwidth_limit

Limits are configured through VBoxManage. The example below creates a bandwidth group named "Limit", sets the limit to 20 Mbit/s and assigns the group to the first and second adapters of the VM:

   VBoxManage bandwidthctl "VM name" add Limit --type network --limit 20m
   VBoxManage modifyvm "VM name" --nicbandwidthgroup1 Limit
   VBoxManage modifyvm "VM name" --nicbandwidthgroup2 Limit
1
  • for me adding these clauses stopped genymotion emulators to work. Network speed control remains one of their paid feature. Do I smell a rat here :p Sep 27 '15 at 16:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.