VBoxManage clonehd ... --existing
Posted: 31. Aug 2011, 21:29
The manual describes the effect of the --existing option as:
existing Perform the clone operation to an already existing destination medium. Only the portion
of the source medium which fits into the destination medium is copied. This means
if the destination medium is smaller than the source only a part of it is copied, and if the
destination medium is larger than the source the remaining part of the destination medium
is unchanged.
Is the size of the target medium used to determine how much is copied the physical size or the logical size. That is, if the target medium is a dynamic vdi that is physically 40GB in size and has a maximum size of 60GB what would happen if a dynamic vdi with a physical size of 50GB and a logical size of 55GB were to be cloned into the exisiting target using the --existing option? Would the target be expanded to 50GB and all 50GB copied or would only the first 40GB be copied? Would the maximum size of the target medium after the copy still be 60GB or would it be 55GB? Would a new uuid be generated and inserted into the target medium or would it still have the uuid it had before the clonehd process was run?
existing Perform the clone operation to an already existing destination medium. Only the portion
of the source medium which fits into the destination medium is copied. This means
if the destination medium is smaller than the source only a part of it is copied, and if the
destination medium is larger than the source the remaining part of the destination medium
is unchanged.
Is the size of the target medium used to determine how much is copied the physical size or the logical size. That is, if the target medium is a dynamic vdi that is physically 40GB in size and has a maximum size of 60GB what would happen if a dynamic vdi with a physical size of 50GB and a logical size of 55GB were to be cloned into the exisiting target using the --existing option? Would the target be expanded to 50GB and all 50GB copied or would only the first 40GB be copied? Would the maximum size of the target medium after the copy still be 60GB or would it be 55GB? Would a new uuid be generated and inserted into the target medium or would it still have the uuid it had before the clonehd process was run?