Page 1 of 1

Bandwidth control command

Posted: 9. May 2014, 19:53
by scottgus1
Need a little help with the disk bandwidth control command for my "Win7CVXeams" guest (running 4.2.16).

Section 5.8 of the help file shows the following commands to limit disk bandwidth on a guest:

Code: Select all

VBoxManage bandwidthctl "VM name" add Limit --type disk --limit 20M
VBoxManage storageattach "VM name" --controller "SATA" --port 0 --device 0 --type hdd --medium disk1.vdi --bandwidthgroup Limit
I entered the first line, with my guest's information inserted, like this:

Code: Select all

VBoxManage bandwidthctl Win7CVXeams add CVXeams --type disk --limit 10
"VBoxManage bandwidthctl Win7CVXeams list" returns this:

Code: Select all

Name: 'CVXeams', Type: Disk, Limit: 10 Mbytes/sec
So the first command seems to have worked.

The second command was entered like this:

Code: Select all

VBoxManage storageattach Win7CVXeams --controller "SATA" --port 0 --device 0 --type hdd --medium G:\Win7CVXeams\Win7CVXeams.vdi --bandwidthgroup CVXeams
VBoxManage returns a list of options for the storageattach command and the error: "Unknown option: --controller" (Vboxmanage doesn't seem to know what the help file knows...)

So I delete the "--controller" and replace it with "--storagectl", making my command this:

Code: Select all

C:\Users\RnG>VBoxManage storageattach Win7CVXeams --storagectl "SATA" --port 0 --device 0 --type hdd --medium G:\Win7CVXeams\Win7CVXeams.vdi --bandwidthgroup CVXeams
and the command completes.

Something I'm missing? Or does the help file need an update?

Re: Bandwidth control command

Posted: 13. May 2014, 14:54
by scottgus1
Devs say it is "--storagectl" not "--controller" and will be updating the help files. https://www.virtualbox.org/ticket/13025