Virtual Machine Compute Optimizer
The Virtual Machine Compute Optimizer (VMCO) is a Powershell script that uses the PowerCLI module to capture information about the hosts and VMS running in your vSphere environment, and reports back on whether the VMs are configured optimally based on the Host CPU and memory. It will flag a VM as “YES” if it is optimized and “NO” if it is not. For non-optimized VMs, a recommendation is made that will keep the same number of vCPUs currently configured, with the optimal number of virtual cores and sockets.
Note that the VMCO will not analyze whether your VMs are configured with the correct number of vCPUs based on the VM’s workload. A more in-depth analysis tool such as VMware vRealize Operations Manager can make right-sizing determinations based on workload and actual performance.
In order to run the Virtual Machine Compute Optimizer, you will need the following:
- Windows 7/Server 2008 or above
- Powershell v5 or higher
- The PowerCLI Module installed, or access to the internet. The VMCO will attempt to install the module if it is not already, and give you an option to upgrade if it is out of date.
- A user account with Read-Only rights assigned at the vCenter level with ‘Propogate to children’enabled. These rights will be needed on each vCenter that will be analyzed.
There are a few ways you can launch a Powershell script.Please see the PDF for full instructions in the download box.
- Priority of the findings are captured
- Details on the findings are included
- Cluster information is captured to determine if Host HW is not consistent across the cluster
- Report if a VM spanning pNUMA nodes actually has the pNUMA exposed to the guest OS
- Report if advanced settings have been changed on the VM or host level to expose pNUMA to the guest OS
- Reports if the number of vCPUs for a VM exceeds the physical cores of the host (using hyperthreads as vCPUs)
- Ability to use the stand alone “Get-OptimalvCPU” function for more flexibility
- Added a -Property filter to the Get-View commands for hosts and VMs to reduce time and amount of returned data
- Removed if statement in Get_Optimal_CPU function that included $hostCPUs as it was not yet being used
- Fixed calculation of # of vm cores which was incorrectly reporting on some vms