VirtualBox

Ticket #3888 (new defect)

Opened 1 year ago

Last modified 4 months ago

clonehd documentation is incomplete

Reported by: harmscon Assigned to:
Priority: minor Component: documentation
Version: VirtualBox 2.2.2 Keywords: clonehd ERROR Cannot register the hard disk
Cc: Guest type: other
Host type: other

Description

The documentation for the VBoxManage clonehd is incomplete. <filename> must be given as an absolute filename (ie, including the full directory path). See below for an example. This should either be specified in the User Manual or the behaviour of clonehd updated to suit the documentation.

jaba@host:~/test-20090302$ VBoxManage clonehd test_virtual_machine.vmdk test_vm-clone.vdi --format VDI
VirtualBox Command Line Management Interface Version 2.2.2
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

ERROR: Cannot register the hard disk '/home/jaba/test-20090302/test_virtual_machine.vmdk' with UUID {af38d7f6-a3e0-448a-95a9-4a06ab5e07bc} because a hard disk '/home/jaba/test-20090302/test_virtual_machine.vmdk' with UUID {af38d7f6-a3e0-448a-95a9-4a06ab5e07bc} already exists in the media registry ('/home/jaba/.VirtualBox/VirtualBox.xml')
Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBox, interface IVirtualBox, callee nsISupports
Context: "OpenHardDisk(Bstr(szFilenameAbs), AccessMode_ReadWrite, srcDisk.asOutParam())" at line 603 of file VBoxManageDisk.cpp
jaba@host:~/test-20090302$
jaba@host:~/test-20090302$
jaba@host:~/test-20090302$ VBoxManage clonehd /home/jaba/test-20090302/test_virtual_machine.vmdk test_vm-clone.vdi --format VDI
VirtualBox Command Line Management Interface Version 2.2.2
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VDI'. UUID: 78a13ccd-bc74-4f12-ae85-f2a993678f9e
jaba@host:~/test-20090302$ 

Thanks to marten in the forums for solving this.

Josh

Change History

2009-05-09 21:47:42 changed by misiu_mp

Notice the error message: Cannot register the hard disk '/home/jaba/test-20090302/test_virtual_machine.vmdk' with UUID {af38d7f6-a3e0-448a-95a9-4a06ab5e07bc}

because a hard disk '/home/jaba/test-20090302/test_virtual_machine.vmdk' with UUID {af38d7f6-a3e0-448a-95a9-4a06ab5e07bc}

already exists in the media registry ('/home/jaba/.VirtualBox/VirtualBox?.xml')

Why is it not recognizing it is the same file with the same UUID and just ignore the attempt?

This bug is not just in documentation. Clonehd shouldnt require supplying a full path.

2009-10-24 14:28:23 changed by sorin

Someone with proper permissions should change the title/description of this bug and give it the right priority. Documentation is only half of the bug.

The bug is still present in 3.0.8 and combined with the very ambigous error message it does create a real bad user experience.

The only workaround is to search on net and find solution posted on the net by other users, like http://muffinresearch.co.uk/archives/2009/07/23/virtualbox-error-cannot-register-the-hard-disk/


ContactPrivacy policy