Opened 13 years ago
Closed 4 years ago
#9324 closed defect (obsolete)
vboxmanage clonehd fails if target file is registered but does not exist — at Version 1
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 )
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 (1)
comment:1 by , 4 years ago
Description: | modified (diff) |
---|---|
Resolution: | → obsolete |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.