VirtualBox – Limiting Speed

Introduction

“VirtualBox” can limit the network speed by the command line. VMware has the similar function but it is available only in paid version. Hyper-V doesn’t have the function yet. So, Oracle generously gives us the great feature for FREE. The important point to is that we got to take command line operations which can be initimidating. Having said that, the operations are quite simple. So, I will show you how you can quickly change th networ speed in this demo. 

Commands

1. Create a bandwidth group

VBoxManage bandwidthctl “VM name” add Limit –type network –limit 20m

2. Make network adapters to be a member of the bandwidth group.

VBoxManage modifyvm “VM name” –nicbandwidthgroup1 Limit
VBoxManage modifyvm “VM name” –nicbandwidthgroup2 Limit

3. Change the limit for the bandwidthgroup

VBoxManage bandwidthctl “VM name” set Limit –limit 100m

Delete the bandwidth group

You may want to delete all the settings at the end of test. In this case, follow the steps below to clean up your system.

3. To completely disable shaping for 2 adapters of VM use the following command:

VBoxManage modifyvm “VM name” –nicbandwidthgroup1 none
VBoxManage modifyvm “VM name” –nicbandwidthgroup2 none

2. Delete the bandwidth group “Limit”

VBoxManage bandwidthctl “VM name” remove Limit