VBoxManage clonehd fails
Posted: 15. Aug 2010, 04:31
Microsoft has damaged my Windows 7 virtual drive and refuses to run it. So I have to reinstall Windows 7. However since the install process warns that it may wipe out my data I want to clone the virtual disk before I allow M$ to destroy it. But clonehd refuses to run with the following gibberish.
/HardDisks$ VBoxManage clonehd Windows7.vdi WinBack.vdi
Oracle VM VirtualBox Command Line Management Interface Version 3.2.4
(C) 2005-2010 Oracle Corporation
All rights reserved.
ERROR: Cannot register the hard disk '/HardDisks/Windows7.vdi' with UUID {53853218-ce4f-4c76-969b-2b4244ce7733} because a hard disk '/HardDisks/Windows7.vdi' with UUID {53853218-ce4f-4c76-969b-2b4244ce7733} already exists in the media registry ('/home/jcobban/.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 630 of file VBoxManageDisk.cpp
Why would VBoxManage want to register the source disk in the clone operation? I can see why it might want to register the target disk.
Why would VBoxManage want to register a disk that is already in the media registry? Why would it object when the disk already exists?
How do I clone this disk?
The registry file the message refers to reads:
<?xml version="1.0"?>
<VirtualBox xmlns="http://www.innotek.de/VirtualBox-settings" version="1.9-linux">
<Global>
<ExtraData>
<ExtraDataItem name="GUI/LastVMSelected" value="af029900-600b-44e7-964d-f289fe7925e9"/>
<ExtraDataItem name="GUI/LastWindowPostion" value="298,107,770,550"/>
<ExtraDataItem name="GUI/LicenseAgreed" value="7,8"/>
<ExtraDataItem name="GUI/SUNOnlineData" value="triesLeft=0"/>
<ExtraDataItem name="GUI/SuppressMessages" value=",remindAboutWrongColorDepth,remindAboutAutoCapture,remindAboutMouseIntegrationOn,remindAboutMouseIntegrationOff"/>
<ExtraDataItem name="GUI/UpdateCheckCount" value="47"/>
<ExtraDataItem name="GUI/UpdateDate" value="1 d, 2010-08-15, stable"/>
</ExtraData>
<MachineRegistry>
<MachineEntry uuid="{af029900-600b-44e7-964d-f289fe7925e9}" src="Machines/Windows 7/Windows 7.xml"/>
</MachineRegistry>
<MediaRegistry>
<HardDisks>
<HardDisk uuid="{53853218-ce4f-4c76-969b-2b4244ce7733}" location="/HardDisks/Windows7.vdi" format="VDI" type="Normal"/>
</HardDisks>
<DVDImages>
<Image uuid="{11264970-42a3-4d47-b32f-9208ce5c94eb}" location="/usr/share/virtualbox/VBoxGuestAdditions.iso"/>
</DVDImages>
<FloppyImages/>
</MediaRegistry>
<NetserviceRegistry>
<DHCPServers>
<DHCPServer networkName="HostInterfaceNetworking-vboxnet0" IPAddress="192.168.56.100" networkMask="255.255.255.0" lowerIP="192.168.56.101" upperIP="192.168.56.254" enabled="1"/>
</DHCPServers>
</NetserviceRegistry>
<SystemProperties defaultMachineFolder="Machines" defaultHardDiskFolder="HardDisks" defaultHardDiskFormat="VDI" remoteDisplayAuthLibrary="VRDPAuth" webServiceAuthLibrary="VRDPAuth" LogHistoryCount="3"/>
<USBDeviceFilters/>
</Global>
</VirtualBox>
/HardDisks$ VBoxManage clonehd Windows7.vdi WinBack.vdi
Oracle VM VirtualBox Command Line Management Interface Version 3.2.4
(C) 2005-2010 Oracle Corporation
All rights reserved.
ERROR: Cannot register the hard disk '/HardDisks/Windows7.vdi' with UUID {53853218-ce4f-4c76-969b-2b4244ce7733} because a hard disk '/HardDisks/Windows7.vdi' with UUID {53853218-ce4f-4c76-969b-2b4244ce7733} already exists in the media registry ('/home/jcobban/.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 630 of file VBoxManageDisk.cpp
Why would VBoxManage want to register the source disk in the clone operation? I can see why it might want to register the target disk.
Why would VBoxManage want to register a disk that is already in the media registry? Why would it object when the disk already exists?
How do I clone this disk?
The registry file the message refers to reads:
<?xml version="1.0"?>
<VirtualBox xmlns="http://www.innotek.de/VirtualBox-settings" version="1.9-linux">
<Global>
<ExtraData>
<ExtraDataItem name="GUI/LastVMSelected" value="af029900-600b-44e7-964d-f289fe7925e9"/>
<ExtraDataItem name="GUI/LastWindowPostion" value="298,107,770,550"/>
<ExtraDataItem name="GUI/LicenseAgreed" value="7,8"/>
<ExtraDataItem name="GUI/SUNOnlineData" value="triesLeft=0"/>
<ExtraDataItem name="GUI/SuppressMessages" value=",remindAboutWrongColorDepth,remindAboutAutoCapture,remindAboutMouseIntegrationOn,remindAboutMouseIntegrationOff"/>
<ExtraDataItem name="GUI/UpdateCheckCount" value="47"/>
<ExtraDataItem name="GUI/UpdateDate" value="1 d, 2010-08-15, stable"/>
</ExtraData>
<MachineRegistry>
<MachineEntry uuid="{af029900-600b-44e7-964d-f289fe7925e9}" src="Machines/Windows 7/Windows 7.xml"/>
</MachineRegistry>
<MediaRegistry>
<HardDisks>
<HardDisk uuid="{53853218-ce4f-4c76-969b-2b4244ce7733}" location="/HardDisks/Windows7.vdi" format="VDI" type="Normal"/>
</HardDisks>
<DVDImages>
<Image uuid="{11264970-42a3-4d47-b32f-9208ce5c94eb}" location="/usr/share/virtualbox/VBoxGuestAdditions.iso"/>
</DVDImages>
<FloppyImages/>
</MediaRegistry>
<NetserviceRegistry>
<DHCPServers>
<DHCPServer networkName="HostInterfaceNetworking-vboxnet0" IPAddress="192.168.56.100" networkMask="255.255.255.0" lowerIP="192.168.56.101" upperIP="192.168.56.254" enabled="1"/>
</DHCPServers>
</NetserviceRegistry>
<SystemProperties defaultMachineFolder="Machines" defaultHardDiskFolder="HardDisks" defaultHardDiskFormat="VDI" remoteDisplayAuthLibrary="VRDPAuth" webServiceAuthLibrary="VRDPAuth" LogHistoryCount="3"/>
<USBDeviceFilters/>
</Global>
</VirtualBox>