Bandwidth control command

This is for discussing general topics about how to use VirtualBox.
Post Reply
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Bandwidth control command

Post 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?
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Bandwidth control command

Post by scottgus1 »

Devs say it is "--storagectl" not "--controller" and will be updating the help files. https://www.virtualbox.org/ticket/13025
Post Reply