This procedure calls VixDiskLib_Clone() to make a copy of the data on virtual disk. A callback function, supplied as the sixth parameter, displays the percent of cloning completed. For local hosted disk, the adapter type is SCSI unless specified as IDE on the command line, size is 200MB, unless set by -cap option, and type is monolithic sparse, for Workstation. For an ESXi host, adapter type is taken from managed disk itself, using the connection parameters established by VixDiskLib_Connect().

If createParams.diskType is VIXDISKLIB_DISK_VMFS_THIN, clone converts the destination VMDK to thin. This is an exception to ignoring createParams for the remote case.

The final parameter TRUE means to overwrite if the destination VMDK exists.

The clone option is a good backup method. Sometimes a cloned virtual disk is smaller, because it can be organized more efficiently. Moreover, a fully allocated flat file can be converted to sparse or thin representation.