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