Quantcast
Channel: VMware Communities : All Content - VMware vCenter Converter SDK
Viewing all articles
Browse latest Browse all 706

Conversion doesn't copy data

$
0
0

I've modified the sample command line application to optionally allow for thin provisioned disks. When a thin provision property is set to true, the following block of code is executed in the "BuildCloningParams" function.

 

 

if (_vmThinProvision) {     converterStorageParams.targetDiskParams = new ConverterStorageParamsManagedTargetDiskParams[_sourceLogicalVolumeInfo.Length];    ConverterStorageParamsManagedTargetDiskParams targetDiskParams = new ConverterStorageParamsManagedTargetDiskParams();      int volumeCount = 0;       foreach (ConverterComputerOsInfoLogicalVolumeInfo volumeInfo in _sourceLogicalVolumeInfo)      {          targetDiskParams.sourceDiskId = volumeInfo.volumeId;          targetDiskParams.diskType = "vmfsMonolithicFlatThinProvisioned";          targetDiskParams.datastoreName = _vmDatastoreName;          converterStorageParams.targetDiskParams[volumeCount] = targetDiskParams;          volumeCount++;     }
}

 

The issue is when this section of code is run (when _vmThinProvision is true), the virtual machine is created correctly, but no data is ever copied/converted to the new VM. In the vCenter Converter management console, it just shows the job as immediately compeleted (and shows no error).

 

If _vmThinProvision is false (and this block of code is not executed), then the conversion works correctly and data is copied. Obviously there's something in this small block of code that's not properly telling the agent to actually migrate the data, but I can't figure out what it is.

 

Any ideas what might be causing the issue? Thank you.


Viewing all articles
Browse latest Browse all 706

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>