Using A Custom Template For VM Headroom Capacity Calculations

The Cluster Capacity dashboard calculates VM Headroom using a default template with 2 CPU’s and 2 GB of memory, but you would prefer to use a template of a different size in order to calculate VM Headroom.
This article applies only to VMTurbo Operations Manger version 4.0.

Note: If you are running v4.5 and higher, then you have the ability to define specific templates on specific clusters to configure a more defined cluster capacity assessment.  Please refer to the User Guide for the version you are using to see how to configure via the Policy Tab.
Step 1:
V4.0: create a custom Virtual Machine template that fits your business requirements. This can be done in the Plan View

To create a Virtual Machine template in the Plan view, [1] Choose to Modify Plan Workload, [2] expand Plan View, [3] selecting Add VM From Template, [4] clicking Choose Template, and then [5] scrolling to the bottom of the list and clicking Add new template.

Enter the desired VM configuration settings and click “Create Template”. In this example, we are creating a VM Template that has 2 vCPU's, 8 GB of memory, and 40 GB of storage configured.
Step 2:
We must determine the internal name for this template.  This can be obtained using the server’s Rest API. Open a web browser and navigate to http://x.x.x.x/vmturbo/api/templates (replace the x.x.x.x with your Operations Manager's IP address or DNS name). When prompted for a username/password, enter credentials that are valid for logging into the Operations Manager's user interface. Find the template you had just created by searching for the display name then copy what you find in the “name” field. The XML for the template created in the above screenshot can be found below:
<TopologyElement accessSpeedConsumed="0.0" cpuConsumedFactor="0.75" creationClassName="VirtualMachineProfile" displayName="CapacityDashboard" ioThroughputConsumed="0.0" memConsumedFactor="1.0" model="" name="VirtualMachine::CapacityDashboard" networkThroughputConsumed="0.0" numVCPUs="2" price="0.0" storageConsumedFactor="1.0" uuid="_viyRUFCjEeOVwq2DxzJOQw" vMemSize="8388608.0" vStorageSize="40960.0" vendor="Corp"/>
Note: Do NOT use the text you see in the displayName field.
Step 3:
We have to ssh to the Operations Manager server and modify a config file. CD to /srv/tomcat/data/config and then make a backup of capacity.config.topology so that you can revert if necessary (cp capacity.config.topology capacity.config.topology.bkp). Now open capacity.config.topology and replace the bolded text below with the full name of your custom Virtual Machine template:



Step 4:
We need to restart the tomcat service.  At the appliance root prompt, enter "service tomcat restart" and wait for the tomcat service to restart.
Have more questions? Submit a request