Opened 17 years ago
Closed 17 years ago
#446 closed defect (fixed)
clonevdi deletes the target file if it already exists
Reported by: | gbuonfiglio | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 1.4.0 |
Keywords: | Cc: | ||
Guest type: | other | Host type: | other |
Description
When cloning a vdi file using "VBoxManage clonevdi" it deletes the target file if it already exists.
When issuing:
$ VBoxManage clonevdi 7e10f139-5844-4735-169f-a96813bd6068 w2ktim2.vdi
The output is:
VirtualBox Command Line Management Interface Version 1.4.0
(C) 2005-2007 innotek GmbH
All rights reserved.
0%...100%
Error: failed to clone disk image. Error message: Could not copy the hard disk image '/home/vms1/.VirtualBox/VDI/w2ktim1.vdi' to '/home/vms1/.VirtualBox/VDI/w2ktim2.vdi' (VERR_ALREADY_EXISTS)
At this point the target file is already deleted. Issuing a new clonevdi continues. At least I did it for the right image... ;-)
$ VBoxManage clonevdi 7e10f139-5844-4735-169f-a96813bd6068 w2ktim2.vdi
VirtualBox Command Line Management Interface Version 1.4.0
(C) 2005-2007 innotek GmbH
All rights reserved.
0%...10%...20%...30%...40%...50%...60%...
Fixed in SVN, the fix will be contained in the next release.