Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Linux and software for Linux (http://stream-recorder.com/forum/forumdisplay.php?f=61)
-   -  

VBoxManage clonehd ERROR: Cannot register the hard disk (Solved)

(http://stream-recorder.com/forum/showthread.php?t=6178)

Stream Recorder 03-26-2010 05:15 AM

VBoxManage clonehd ERROR: Cannot register the hard disk (Solved)


 
I tried to convert the VirtualBox image to a raw image format using the following command:
Code:

VBoxManage clonehd "image.vdi" "image.img" --format RAW
but I got the following error:
Code:

ERROR: Cannot register the hard disk '/home/user/.VirtualBox/VDI/image.vdi' with UUID {25396d59-55d2-4d40-8091-14af3b2ee8d1} because a hard disk 'home/user/.VirtualBox/VDI/image.vdi' with UUID {25396d59-55d2-4d40-8091-14af3b2ee8d1} already exists in the media registry ('/home/user/.VirtualBox/VirtualBox.xml')
Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBox, interface IVirtualBox, callee nsISupports
Context: "OpenHardDisk(Bstr(szFilenameAbs), AccessMode_ReadWrite, false, Bstr(""), false, Bstr(""), srcDisk.asOutParam())" at line 628 of file VBoxManageDisk.cpp

To solve the problem you need to provide absolute paths to VirtualBox images:
Code:

VBoxManage clonehd "/home/user/.VirtualBox/VDI/image.vdi" "/home/user/.VirtualBox/VDI/image.img" --format RAW


All times are GMT -6. The time now is 08:35 AM.