Search This Blog

Monday, February 14, 2011

VirtualBox 4.0 invalid command 'registerimage'

When moving from VirtualBox 3.x to VirtualBox 4.0 you might experience the following error:

VirtualBox 4.0 invalid command 'registerimage'

It's due to the change of some of the VBoxManage commands.
The old way to register hdd image was:

VBoxManage registerimage disk C:\FORCOMVM\FORCOMVM.vdi

You can do this in the following way now:
VBoxManage storageattach FORCOMVM --storagectl "SATA Controller" --device 0 --port 0 --type hdd --medium C:\FORCOMVM\FORCOMVM.vdi

You need to have a VM called FORCOMVM and an EMPTY controller "SATA Controller".
If you have controller  IDE type: "IDE Controller". If you want to attach a drive to a non-empty controller use a different port number.

No comments:

Post a Comment

If you like this post, please leave a comment :)