How to configure VMware High Availability (VMHA)

David Davis

In this article, I will show you what VMware's High Availability solution is and how to configure it.

Introduce

We are not inclined to a virtualization solution or a solution but just introduce a product with great features when we have reviewed them. VMware ESX Server product suite and VMware Infrastructure have a lot of interesting features for other virtualization products. One of those features is VMware's High Availability feature, abbreviated as VMHA.

When a physical server encounters or loses all network connections it is also when VMHA plays an important role and can migrate virtual clients from the server that is 'off' to one another server is active. That way, virtual machines can be set up and run in a timely manner.

How to configure VMware High Availability (VMHA) Picture 1

Figure 1: VMware High Availability (VMHA) - Image Courtesy of VMware.com

This is a very powerful feature because it means that any operating system or device is highly usable by using a combination within the VMware Infrastructure infrastructure.

However there are some requirements to do that and there are both good and bad qualities for VMHA. In this article we will cover all of those issues and show you how to configure VMHA.

What requirements make VMHA work?

There are several conditions to make VMHA work. those conditions are:

  1. VMware Infrastructure Suite Standard or Enterprise (can't be done with the free ESXi version or done with the VMware Foundations Suite).
  2. At least two ESX host systems must be present.
  3. A shared SAN or a NAS between ESX Servers servers, where virtual machines will be stored. Note that with VMHA, virtual disks for virtual machines (VMs) are implemented by VMHA. What happens when a host system encounters an error is that the ownership of the virtual machines will be transferred from an error host to a new host.
  4. CPU compatibility between hosts. The easiest way to test this compatibility issue is to use VMotion of a virtual machine from one server to another and see what happens. This is what shows incompatibility:

How to configure VMware High Availability (VMHA) Picture 2
Figure 2: CPU incompatibility

If you cannot complete CPU compatibility between hosts in the HA resource system, you need to configure CPU Masking.

  1. Highly Recommended - to have VMware management network redundancy (at least two NICs related to VMware port used for VMotion and iSCSI). If you don't have this backup, you'll see:

How to configure VMware High Availability (VMHA) Picture 3
Figure 3: Configuration problems because there is no network management VMware redundancy

What's great about VMHA?

Here are some great features of VMHA:

  1. Provides high availability for all virtual machines at the lowest cost (compared to buying a HA solution).
  2. Jobs for any operating system running inside VMware ESX.
  3. VMHA is easy to configure. If you have the right device, registration and VMware Infrastructure already set up, you can configure VMHA quickly.
  4. Jobs with DRS (resource distribution kit) so that when virtual machines will be brought to other hosts in the resource system due to a host error, DRS will be used to determine where the download will be and that load balancing.

What still exists with VMHA?

As with any solution, there are a number of VMHA features that still exist. The remaining features of those issues are:

  1. CPUs on each host must be compatible or you must configure CPU masking on each virtual machine.
  2. Virtual machines located on a malfunctioning host system need to be rebooted.
  3. VMHA does not know about applications located below those virtual machines. That means that if the underlying application data is modified from an application error and server reboot, whether or not the virtual machine is migrating and restarting from an application error machine may not useful.

How to configure VMHA?

VMHA configuration is quite simple, just follow the steps below:
Note : Recognizing that you have two ESX Server host systems, the VMware Infrastructure Suite (VI Suits), CPUs on compatible host systems, a shared storage system and all associated registrations VMHA and VMHA are all relevant.

  1. In the VI Client, Inventory View, right-click the datacenter and select New Cluster.

How to configure VMware High Availability (VMHA) Picture 4
Figure 4: Adding a New HA Cluster

  1. This will bring up the New Cluster Wizard. Give your Cluster a name and (acknowledge that you only created one HA cluster), check the VMware HA feature.

How to configure VMware High Availability (VMHA) Picture 5
Figure 5: Name the HA Cluster

  1. Next, we will configure the HA options for this group of machines. There are many issues to consider here, you should consult the documentation on VMware 3.5.

How to configure VMware High Availability (VMHA) Picture 6
Figure 6: Configuring HA options

  1. Select a swapfile location - with the virtual machine on the shared storage or on the host. We recommend that you keep swapfile for virtual machines on shared storage.
  2. Finally you will see the 'ready to complete' screen, this is the screen you can review what you have done, then click Finish.
  3. When the HA cluster is created, you need to migrate ESX host systems into the cluster by clicking on them and dragging them into the cluster. You can also transfer virtual machines to the cluster in the same way. Here are the results we received after the implementation:

How to configure VMware High Availability (VMHA) Picture 7
Figure 7: HA Cluster created with ESX Server hosts and internal virtual machines

  1. Here, you need to click on the cluster to see if there are any configuration issues (as you see in Figure 3). You should also note tabs like Summary, Virtual Machines, Hosts, Resource Allocation, Performance, Tasks & Events, Alarms and Permissions.
  2. Although you have configuration problems (without a backup management network), the VMHA cluster still functions properly. To resolve the error message 'insufficient resources to satisfy configured failover level for HA' temporarily translated as 'lack of resources for pre-configured failover for HA' when opening a virtual machine , we need to change the HA configuration to 'Allow VMs to be powered on even if they violate availability constraints'.

How do I know if VMHA works?

To check if VMHA is working, we do the experiment with two Dell servers in our group. A Windows Server 2008 system is running on ESX host 'esx4'. To perform a simple HA test, restart the host 'esx4' without going into maintenance mode. This will cause Windows 2008 Server to switch from 'esx4' to 'esx3' and be restarted. This is what before and after implementation.

How to configure VMware High Availability (VMHA) Picture 8
Figure 8: Before causing an error for server ESX4

How to configure VMware High Availability (VMHA) Picture 9
Figure 9: After server error ESX4 - providing VMHA was successful

In this test, we see that the Windows 2008 virtual machine is switched from 'esx4' to 'esx3' when 'esx4' is restarted.

Conclude

In this article, I have talked about VMware's High Availability solution and how to configure it. In the article we began by introducing the necessary conditions for using VMHA. We then introduced what is good and bad about VMHA. After showing you how to configure VMHA, we went on to demonstrate exactly how it works in a real server error. VMHA is truly a leading solution when it comes to high availability problems in virtualization.

3.5 ★ | 4 Vote

May be interested

  • How to Run a Windows Longhorn Virtual Machine in VMwareHow to Run a Windows Longhorn Virtual Machine in VMware
    want to try out the operating system that was to be windows vista, but was never released? you can run longhorn using vmware pretty easily. download vmware player or vmware workstation. before we can start installing windows longhorn, we...
  • Instructions for fixing errors do not install VMware ToolsInstructions for fixing errors do not install VMware Tools
    you have successfully installed the virtual machine, but you cannot perform the drag and drop operation between the real machine and the virtual machine as before, you cannot fullscreen the virtual machine ... why? it's really simple, the reason is that vmware workstation uses the file system autoinst.flp (located in the virtual machine installation directory) to create the floppy drive ...
  • Share Key VMware 17, activate license to use the softwareShare Key VMware 17, activate license to use the software
    by using key vmware 17, users can use all the creation functions of today's most popular virtual server creation tool. vmware workstation pro 17 brings many significant improvements in performance, supports multiple operating systems and integrates the most advanced technology.
  • How to Increase Disk Space in VMwareHow to Increase Disk Space in VMware
    vmware is a cloud based operating system that allows you to run multiple virtual machines from a single physical computer. thus, vmware acts as the interface between your hardware and your various operating systems. if you are running out...
  • Configuring play Layer Of Fear on computerConfiguring play Layer Of Fear on computer
    you can choose to configure it to a high or low graphics level to experience the layer of fear 2 in this article.
  • VMware Fusion Pro is available for free for personal useVMware Fusion Pro is available for free for personal use
    vmware desktop hypervisor fusion and workstation products are used by millions of people every day to run virtual machines on windows, linux, and mac computers.
  • How to Install VMware PlayerHow to Install VMware Player
    this wikihow teaches you how to install vmware workstation player for windows or linux. vmware workstation player is a free pc-based tool that allows you to install and run a virtual version of another operating system in a window on your...
  • How to install VmWare Tools on Kali LinuxHow to install VmWare Tools on Kali Linux
    in this article, tipsmake.com will guide you how to install the main vmware tools for kali linux on vmware workstation virtual machine.
  • Should I upgrade to VMware vSphere?Should I upgrade to VMware vSphere?
    there are many things we need to consider before making a decision to upgrade or not upgrade to vsphere.
  • VMware Workstation Pro - Download VMware Workstation Pro hereVMware Workstation Pro - Download VMware Workstation Pro here
    vmware workstation pro is a virtualization tool that allows users to run multiple operating systems on windows pcs. the platform creates a safe and isolated environment for users to create and test applications, test patches, and try out different operating systems before they go live.