SusantaDutta
Contributor
Contributor

Slow VM Cloning performance using PowerCLI New-VM command


Hi,

I am cloning a VM sitting on a Datastore based Disk Array. When I right click on vCenter GUI and clone, I could see clone operation is getting over soon and disk array receives 0x83 EXTENDED COPY(XCOPY).

But when I use PowerCLI New-VM -VM $VM -Name Clone -ResourcePool (Get-VMHost -vm $VM) command, it takes long time and I could observe array receives 0x89 SCSI COMPARE and WRITE(ATS)

All HardwareAccelerated Primitives are enabled in the vSphere ESXi

PS /> $AdvancedSettings = "DataMover.HardwareAcceleratedMove","DataMover.HardwareAcceleratedInit","VMFS3.HardwareAcceleratedLocking"
PS /> Get-VMHost hostname.domain.com | Get-AdvancedSetting -Name $AdvancedSettings
Name Value Type Description
---- ----- ---- -----------
DataMover.HardwareA… 1 VMHost
VMFS3.HardwareAccel… 1 VMHost
DataMover.HardwareA… 1 VMHost

PS />


Can you suggest how to clone a VM using PowerCLI with EXTENDED COPY(XCOPY).

Thank you advance 

0 Kudos
1 Reply
LucD
Leadership
Leadership

Afaik there is nothing to do on the New-VM cmdlet, it is done by the ESXi node when the settings are correct and all conditions are met.

See Cody's post ActiveCluster and VAAI, where he sows the timing for a New-VM with and without the settings.
Also note the impact ActiveCluster has on this.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos