vSphere HA is a recommended low-cost ESX’s feature that monitors virtual machines in a resource pool and detects downtime. In cases of downtimes, it powers on the virtual machines using resources on another host within the same cluster.
The powering on is possible since the virtual machine disk (VMDK) are all kept within a shared storage and are accessible to all the physical servers within the same cluster.

For optimal high availability, vSphere HA works well when combined with DRS to attain automatic failovers with load balancing in the VMware environment.
The virtual infrastructure is expected to be robust and always available with uninterrupted access to resources for business continuity. VMware High Availability (HA) therefore gives a solution that guarantees 100% access to the virtual environment at any given point.

Prerequisites to achieving HA

  1. A minimum of two hosts in a cluster.
  2. Install VMware tools.
  3. All hosts must be connected to at least one management network.
  4. All hosts must be Licensed for High Availability.
  5. vCentre Server and ESXi versions that support vSphere HA

How vSphere HA works!

When HA is enabled, the following happens

  • HA agent that facilitates communication between each host is installed.
  • One host is elected the Master based on the number of datastores mounted on the host.
  • The remaining hosts automatically become slaves.

In the event of the Master becoming unavailable or offline, a new Master is elected among the slaves.
The slaves host primary role is to monitor signals and communicate with the vCenter server.

Host servers in the same cluster do communicate using a heartbeat, in this case, is merely a signal that everything is running as expected in the environment.

If the master fails to detect a heartbeat from other hosts, then it sends the vSphere HA to restart the Virtual machines on another host.

vsphere ha host failure

Steps to configure vSphere HA using vSphere Client

Best practice dictates that; create an empty cluster, then once you have planned VMware infrastructure your network and your architecture resources, you can proceed to add hosts to the cluster and build a data center.

This article covers; how to configure a cluster, enable where high availability and configure distributed resource scheduler (DRS) as they all work hand in hand to attain a balanced cluster in the virtual environment.

Creating a New Cluster
Note: vSphere client version 6 has been used for demonstration purposes on this document.

1. Login to your vCenter server using vSphere client and right click on the virtual datacenter then select New Cluster.

vCenter server

2. Complete the New Cluster setup wizard first, specify the cluster name as our example below “Test Cluster” Then Click Next

New Cluster Setup

3. Select Disable EVC then click Next

Note: EVC aids in vMotion compatibility for hosts in a cluster by this, it prevents vMotion failures resulting from CPU incompatibilities. Disable (EVC) for this demonstration.

VMware EVC Window

4.Choose Swap file location as recommended;

VM Swap File Location Window

5. Review your settings and then Click Finish.

Complete Cluster Setup Window

You have successfully created an empty cluster, at this stage, you can consider adding hosts and plan your resources and network architecture in the cluster.

Enable vSphere HA and vSphere DRS

1. Login to your vCenter server, Right click on the cluster you had set and click Edit Settings.

2. In the Cluster Features window :

Turn on vSphere HA: Aids in restarting of virtual machines on other hosts within the same cluster in case a host fails has to be on as it enables fault tolerance on any of the virtual machines in the group.

Turn on vSphere DRS: This aids with the balancing of the workload of virtual machines in a cluster, besides assisting with virtual machines migration.

Click Next.

Cluster Features

Configuring vSphere DRS

3. On vSphere DRS Option define the automation levels. Automation levels give alternatives to either put a virtual machine on the VMware ESXi hosts or a suggestion for migration recommendation.

  • Manual Automation Level: Simply gives suggestions on migration recommendation for virtual machines
  • Partially Automated: Automatic placement of virtual machines on hosts at power on besides giving migration recommendations.
  • Fully Automated: This feature automatically places a VM on the ESXi server that is least loaded.

Once you have specified depending on your requirements Click Next

vSphere DRS Automation Levels

4. Specify the power management option for your ESXi Servers. Options available are manual, off or automatic.

Automatic option executes the power management related recommendations. Click Next when done

vSphere DRS Power Management

vSphere HA Configuration

5. vSphere HA configuration displays the below:

  • Host Monitoring Status: This is by default enabled. It is essential as it is needed to exchange network heartbeats. However, it is advised to disable this when performing network maintenance.
  • Admission Control: Determines amount of cluster capacities reserved for VM Failovers. This option does not allow a virtual machine to power on another Host if there are no available resources.
  • Admission Control Policy: Specifies the type of policy that admission control should enforce.
vSphere HA

6. The Next window is for setup of Machine restart priority. Could be Low, High or Medium.

Host isolation response defined at this stage merely gives an option to set the action that should be in case a host is in isolation mode.

Leave it powered off, Power Off or Shutdown. One has an option to define the settings for a cluster or an individual Box

Click Next when done with the required settings, as in our case priority is set to medium and host isolation response powered on

Virtual Machine Options

7. VM Monitoring – If no VMware tools heartbeats are received within a specified timeframe, Virtual Machines will be restarted.By default, monitoring is set to disable. Specify your settings and click Next.

We had initially specified our VMware EVC and Swap file location, Therefore click Next and Finish the Setup.

Click Next, then finish at EVC.

Note: vSphere HA can also use Datastore heartbeating to monitor the status of hosts and Virtual machines when there is a failure in the management network.

Conclusion

Having vSphere HA and DRS enabled, requires careful assessment of any affinity rules and how they may affect HA configurations. Test any changes before implementation as you would not want Virtual machines rebooted unexpectedly.

vSphere HA has a limitation, it is not designed to eliminate but instead, reduce downtime.It, therefore, means other features available in VMware environment like Fault tolerance may be used together with vSphere HA.

As we cannot have a prepared remedy for every contingency, vSphere HA helps administrators prepare for unplanned downtime.

References

https://www.vmware.com/pdf/vmware_ha_wp.pdf

http://virtuallyhyper.com/2012/11/vcap5-dca-objective-4-1-implement-and-maintain-complex-vmware-ha-solutions/

https://docs.vmware.com/en/VMware-vSphere/6.5/com.vmware.vsphere.vcenterhost.doc/GUID-9F444D9B-44A0-4967-8C07-693C6B40278A.html

https://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vsphere.avail.doc_50%2FGUID-B9ACCE9B-A14D-4B2F-87EF-4B0A67ABDF58.html

https://ha.yellow-bricks.com/fundamental_concepts.html

https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/techpaper/vmware-vcenter-server-6-0-availability-guide-white-paper.pdf

STILL SPENDING TIME ON SUPPORT?

Outsource your helpdesk support to save time and money. We have technicians available for little over 5 USD per hour in order to assist your customers with their technical questions. Grow your business and concentrate more on your SALES!

Xieles Support is a provider of reliable and affordable internet services, consisting of Outsourced 24×7 Technical Support, Remote Server Administration, Server Security, Linux Server Management, Windows Server Management and Helpdesk Management to Web Hosting companies, Data centers and ISPs around the world. We are experts in Linux and Windows Server Administration, Advanced Server Security, Server Security Hardening. Our primary focus is on absolute client satisfaction through sustainable pricing, proactively managed services, investment in hosting infrastructure and renowned customer support.