Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Virtual Box limit Bandwith on network [closed]

I am using virtual machine VirtualBox

enter image description here

Now, I need to limit bandwith. I have 2 Virtual Machines running. One is just for fun. One is for important database access. I need to tell the "fun machine" to just use bandwith on network with less priority if the "database machine" is not using maximum of the bandwith.

I read this But I am working on Windows.

Would be great if you have any suggestions.

like image 581
Nasenbaer Avatar asked Jun 10 '11 19:06

Nasenbaer


1 Answers

UPDATED

Starting with VirtualBox 4.2, the networking subsystem has support for limiting the maximum bandwidth of a connection. There isn't a graphical user interface for the commands yet so you will have to use the VBoxManage command line to manage the settings. From the manual:

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

Important Note: VirtualBox only limits outbound traffic from the VM. It does not limit incoming bandwidth. Additional information can be found in the VirtualBox manual, chapter 6 - Virtual Networking: http://www.virtualbox.org/manual/ch06.html#network_bandwidth_limit

ORIGINAL ANSWER

This really is kind of a difficult situation - neither VirtualBox or Windows provide a supported, native way to handle traffic management like you have requested. The good news is that the VirtualBox team is working on a solution to your problem - you may have noticed in recent releases they have added in proper support for CPU usage controls. Hopefully something in the 4.1 or later releases will have the feature you desire.

So what can you do in the mean time? I would suggest looking at programs like NetLimiter that you can run your Window 7 "fun" guest. You will be able to configure all sorts of limits to ensure it doesn't disrupt your overall network access.

like image 180
Goyuix Avatar answered Oct 13 '22 01:10

Goyuix