Automation

 View Only
  • 1.  Slow VM Cloning performance using PowerCLI New-VM command

    Posted Jan 24, 2022 04:54 PM


    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 



  • 2.  RE: Slow VM Cloning performance using PowerCLI New-VM command

    Posted Jan 25, 2022 11:03 AM

    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.