Slow Enumeration Of VMs On SCVMM Hypervisor Connections While Adding VMs To Machine Catalog

Slow Enumeration Of VMs On SCVMM Hypervisor Connections While Adding VMs To Machine Catalog

book

Article ID: CTX269597

calendar_today

Updated On:

Description

Observing delay while adding new VMs to machine catalogs when browsing SCVMM hosting connections.

After clicking on browse, it takes more than 15 minutes to expand a SCVMM hypervisor connection to display the host groups.

It can take another 15+ minutes to expand further and see the clusters and the VMs on the clusters.

Issue is not specific to any SCVMM version and can be seen in a large cluster environment.

Resolution

Workaround : 
  • Use SCVMM Console / PowerShell to determine the VM ID and of the machine you wish to add.
 

Get-SCVirtualMachine -VMMServer "VMFQDN"
 

  • Then add new VM using below PowerShell cmdlet  instead of using Studio.

New-BrokerMachine 

https://developer-docs.citrix.com/projects/delivery-controller-sdk/en/latest/Broker/New-BrokerMachine/


Problem Cause

As designed, SCVMM plugin calls Get-SCVMHostNetworkAdapter for every host in every cluster which is introducing this delay.

By doing so, SCVMM plugin on the controller lists all the network adapters on all the hosts in all the clusters.

Hence more the number of clusters and hosts, more will the number Get-SCVMHostNetworkAdapte calls. Each of these calls takes 4-5 seconds.
 

Additional Information

https://docs.microsoft.com/en-us/powershell/module/virtualmachinemanager/get-scvirtualmachine?view=systemcenter-ps-2019