VirtualBox

Ticket #446 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

clonevdi deletes the target file if it already exists

Reported by: gbuonfiglio Owned by:
Priority: minor 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%...

Change History

comment:1 Changed 7 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in SVN, the fix will be contained in the next release.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use