In this lab you will learn how to create a cluster enabled for vSphere HA, add your ESXi host to a cluster, test vSphere HA functionality, Determine the vSphere HA cluster Resource Usage, Manage vSphere HA slot size, configure a vSphere HA cluster with strict admission control.
VMware vSphere High availability clusters enable a collection of VMware ESXi hosts to work together. A group of ESXi hosts can provide higher levels of availability for virtual machines than ESXi host can provide individually.
To create a cluster you have to go to vCenter > Host and clusters > right click on the data center and click on new cluster the following two below images will guide you through the steps you have to follow to create a new cluster.
when you get the cluster wizard type the name as Lab Cluster
turn on the vSphere HA which is next to vSphere HA, Host monitoring leave the default, leave the default settings for Admission control status, In policy click on Percentage of cluster resources reserved as failover spare capacity, leave the default settings for VM monitoring status / EVC / virtual SAN. and click ok.
When the cluster is created you can add your ESXi host to the cluster. Expand your Lab Servers Folder select your ESXi host drag it to your ESXi host to the lab cluster inventory object.
After vSphere HA is enabled click on the Monitor tab and click on the vSphere HA tab you will be able to see the vSphere summary status. click on the configuration issues link to review the errors.
select your host inventory and navigate to manage > networking > VMkernel port , select vMotion VMkernel port you created click on edit settings and enable the Management Traffic check box and click ok.
To test the vSphere HA functionality you have to go to vCenter > Host and Clusters click on the related objects tab and click the virtual machine tab. now you have to reboot the Master ESXi to reboot the master ESXi host right click it and click on reboot. when you are going to reboot a warning message will appear to put your ESXi host on to maintenance mode. For the rebooting message type Testing vSphere HA and click ok. you can click monitor tab and click on the events tab if you need to check the events.
select the running ESXi host in the cluster and click on related objects tab and click on the Virtual Machines tab to see the machine that were running on the Master ESXi host will be running on the remaining host in the cluster.
To check the resource usage of the vSphere HA cluster you have to go to vCenter > Host and clusters > Select your lab cluster and click on the resource allocation tab you will get a view as in the below image.
To manage the vSphere HA slot size you have to click on vCenter > Host and clusters > right click on your lab cluster and select settings. In your are on settings select vSphere HA and click on the edit button and click on admission control and expand it and ensure that you have selected Define failover capacity by static number of hosts policy is selected. and click ok.
click on Monitor tab click the vSphere HA and view the slot information in the Advanced Runtime Info you can see the CPU space and RAM.
Select vCenter > VMs and Templates, right click on your virtual machine click on edit settings > expand CPU properties and set the reservation text box to 512MHz and click ok.
Right click on the lab clusters and select settings click edit expand the admission control options and select fixed slot size and type 300 and click on calculate.
to remove the vSphere HA fixed slot size right click on your lab cluster in the inventory settings and click on edit, expand the admission control options and select cover all powered-on virtual machines and click on ok.
In the previous task you defined your cluster with define failover capacity by static number of hosts you instructed vSphere HA to calculate slots.
now lets see how strict admission controls works first go to your vCenter>Host and Clusters >Lab Cluster > Related Objects > virtual machines and make sure you shut down all the machines. After every machine is turned off, then clicked on lab cluster and click on summary tab.
by looking at the image below you analyze total memory capacity and divide it by the number of esxi hosts in the cluster.
to assign memory reservation you should right click on your virtual machine and click on the resource allocation tab and select all vcenter Actions > Edit resource settings.
set the memory reservation to 384MB and click ok for the changes.
click on monitor tab and the vSphere HA and check the run time advance info you can check the number of slots in the cluster.
After all the steps are completed successfully you are done with lab 21.