VirtualBox

Ticket #9324 (closed defect: obsolete)

Opened 9 years ago

Last modified 8 months ago

vboxmanage clonehd fails if target file is registered but does not exist

Reported by: mapsonyllaer Owned by:
Component: other Version: VirtualBox 4.1.0
Keywords: vboxmanage clonehd Cc:
Guest type: other Host type: other

Description (last modified by aeichner) (diff)

This has nothing to do with the absolute file names and it appeared after 4.0.6. If the disk target is registered, but the file does not exists, clonehd used to succeed. Now it fails after successfully copying the file (it probably first copies the file and updates the UUID afterwards). Here is an example output, created on Windows Server 2008:

E:\VirtualBox\HardDisks>vboxmanage clonehd tmp1.vdi tmp2.vdi
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VDI'. UUID: c79b05b3-0118-4653-9b59-f99d7d8965d0

E:\VirtualBox\HardDisks>del tmp2.vdi

E:\VirtualBox\HardDisks>vboxmanage clonehd tmp1.vdi tmp2.vdi
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...
Progress state: E_INVALIDARG
VBoxManage.exe: error: Failed to clone hard disk. Error message: Cannot register the hard disk 'E:\VirtualBox\HardDisks\tmp2.vdi' {710285eb-c083-40db-ae4f-7c411a5990c1} because a hard disk 'E:\VirtualBox\HardDisks\tmp2.vdi' with UUID {c79b05b3-0118-4653-9b59-f99d7d8965d0} already exists

The old behavior makes more sense. If that is not an option, the clonehd command has to fail before copying the file.

Change History

comment:1 Changed 8 months ago by aeichner

  • Status changed from new to closed
  • Resolution set to obsolete
  • Description modified (diff)
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use