How Hyper-V High Availability Works

Today’s organizations need to ensure the 24/7 availability of their services. If an organization experiences downtime, the consequences are often unpredictable. These might include workflow disruptions, loss of critical data and potential revenue, damaged business reputation, loss of customers to competitors, etc.

The best way to protect your Microsoft Hyper-V virtual environment is to eliminate a single point of failure within the system. This process involves adding redundant hardware or software components that, in case of a failure, can prevent the entire system becoming non-functional. For example, when a Hyper-V host fails, all virtual machines running on it also fail, leading to the loss of the entire virtual infrastructure.

Microsoft introduced Hyper-V High Availability (HA) to ensure high availability of business operations and increase overall infrastructure resilience.

NAKIVO for Hyper-V Backup

NAKIVO for Hyper-V Backup

Agentless, application-aware backups for Hyper-V. Anti-ransomware protection, instant VM boot from backup, other virtual/physical platform support and more.

How Hyper-V High Availability Works

High availability in Microsoft Hyper-V is achieved with a Hyper-V failover cluster. Failover clustering is the process of combining several independent computers (called nodes) into a single group, which enables a high level of availability and scalability of applications and services. Clustered servers can be connected by physical cables and by software. If one of the clustered servers fails, other nodes can take on its workload and perform required services. This process is known as failover, which allows you to rapidly resume critical operations, reduce system downtime, and ensure business continuity even during a disaster.

To verify the state of Hyper-V failover clusters, each cluster node sends a heartbeat signal once per second. If the system doesn’t receive a heartbeat from a specific node within a specific period, then the node is assumed to have failed. In such a case, another node assumes the workload of the failed node, and critical processes should be successfully restored.

One of the ways of ensuring Hyper-V High Availability is to place guest cluster nodes on different physical servers. Thus, if one of the physical hosts fails as well as its guest cluster node, another guest cluster node automatically detects the system failure and starts running the clustered roles that were running on the failed node.

Moreover, with Hyper-V High Availability enabled, you can move clustered roles from one node to another without interrupting the application’s operation. This way, you can easily configure, troubleshoot, update, or restart a specific VM.

Hyper-V High Availability Requirements

Before you can enable Hyper-V High Availability and start enjoying its benefits, you need to verify that your hardware and software settings are compatible with the failover clustering technology.

Hyper-V failover cluster requirements include:

  • At least two cluster nodes, where one is used for running a production workload while another one is used for failover.
  • CPUs with support for hardware-assisted virtualization and hardware-based Data Execution Prevention (DEP). It is recommended that you use processors that belong to the same CPU family in order to minimize the risk of cluster failure and optimize the process of VM migration.
  • Cluster nodes should be connected by multiple networks to avoid a single point of failure. Alternatively, your cluster nodes can be connected using one network, which consists of multiple network adapters, switches, and routers. This way, you can ensure network redundancy in your infrastructure.
  • Shared storage, which can be accessed by all cluster nodes via iSCSI, Fibre Channel, or SMB 3.0 protocol. This way, multiple cluster nodes can have access to the same LUN at the same time and conduct read/write operations without interrupts.
  • Cluster nodes should belong to the same Active Directory domain, which helps to ensure cluster resiliency and provide support for more deployments.
  • Cluster nodes should run either Hyper-V Server or Windows Server with the Hyper-V role enabled.

You must be a local administrator on each of the servers that you want to include in the cluster since an administrator is the only person who can make configuration changes in failover clusters.

Enabling Failover Clustering Role on a Hyper-V Host

After checking all the requirements, you can now enable the Failover Clustering role on the Hyper-V host by doing the following:

  1. Open the Server Manager and select Add roles and features.Adding a Hyper-V cluster role to use Hyper-V HA
  2. Click Role-based or feature-based installation.
  3. Select a server or a virtual hard disk on which to install the Failover Clustering role.
  4. In the Features section, select Failover Clustering.
    Selecting a Failover Clustering role
  5. In the Confirmation section, click Install. The installation starts automatically.
  6. In the Results section, you can see its progress and verify that the required components have been installed.
    Deploying a High Availability cluster for Hyper-V

After installation, you can access the Failover Clustering feature. Using Failover Cluster Manager, you can now create failover clusters, validate hardware compatibility, and configure existing failover clusters.

To launch the Failover Cluster Manager, open Server Manager, select Tools, and click Failover Cluster Manager. The window should appear as follows:

Failover Cluster Manager is used to manage and configure a High Availability cluster

You need to configure shared storage and networking to use a Hyper-V HA cluster.

NOTE: To use Failover Cluster Manager, you should first validate your hardware configuration, and only then you can start creating a failover cluster to enable Hyper-V High Availability.
 
To validate a set of unclustered servers, you need to know the names of those servers. On the other hand, to validate an existing failover cluster, you should know the name of the cluster or one of its nodes.

For a more comprehensive walkthrough, download our white paper on Hyper-V Failover Clustering, which covers how Hyper-V Failover Clustering works, use cases for Hyper-V failover clusters, and a detailed walkthrough for successful deployment of a failover cluster in a Microsoft Hyper-V environment.

How to Create a Highly Available Hyper-V VM

To make a Hyper-V VM in a failover cluster highly available, you first need to create and configure a Hyper-V failover cluster and validate the configuration in Failover Cluster Manager. After that, your system is ready for enabling Hyper-V High Availability.

To make a Hyper-V VM highly available, you should do the following:

  1. Open Failover Cluster Manager, and in the left pane, right-click Roles, select Virtual Machines, and then go to New Virtual Machine.Creating a new VM in a High Availability cluster in Hyper-V
  2. The New Virtual Machine window opens, and you can select the target cluster node on which the VM would run.Selecting a high availability server to place a VM
  3. The New Virtual Machine Wizard opens. Read the information in the Before You Begin section.
  4. In the Specify Name and Location section, enter the name of a new VM and select the folder for storing the VM.Entering a VM name and location in a Hyper-V HA cluster
  5. In the Specify Generation section, choose the generation of the new VM.
  6. In the Assign Memory section, specify the amount of startup memory that can be used by the new VM. Moreover, you can enable the use of Dynamic Memory for this VM.
  7. In the Configure Networking section, select the virtual switch which can be used by the network adapter.
  8. In the Connect Virtual Hard Disk section, specify on which virtual hard disk the VM should be stored. Here, you can create a virtual hard disk, use an existing virtual hard disk, or attach a virtual hard disk later.
  9. In the Installation Options section, select how you would like the OS to be installed on this VM.
  10. In the Summary section, read the description of the new VM and click Finish to create the new highly available VM.

After completing these configurations, you should have the highly available Hyper-V VM, which can be easily failed over (live migrated) to another host if its original Hyper-V host fails.

How to Make an Existing Hyper-V VM Highly Available

You can make an existing Hyper-V VM highly available, provided it is connected to a shared storage. To do this:

  1. Open Failover Cluster Manager, and in the left pane, right-click Roles and select Configure Role.Configuring a role to enable Hyper-V HA for the existing VM
  2. The High Availability Wizard opens. Read the information in the Before You Begin screen.
  3. In the Select Role section, click Virtual Machine to enable Hyper-V High Availability for specific VMs.Selecting a virtual machine as a role to enable high availability
  4. In the Select Virtual Machine section, choose the VMs that you want to make highly available.
  5. In the Confirmation section, confirm that you want to enable Hyper-V High Availability for this specific VM.
  6. In the Configure High Availability section, you can see the progress of configuring Hyper-V High Availability.
  7. In the Summary section, you can see the results of this operation and verify that the selected Hyper-V VMs were made highly available. Click Finish.

After completing this configuration process, your VMs are fault-tolerant and, as a result, Hyper-V High Availability is enabled in your virtual environment. If a server or a component fails in your infrastructure, Hyper-V High Availability can help you quickly recover to reduce downtime and disruptions to productivity.

Conclusion

High availability can be achieved by ensuring redundancy and fault tolerance. However, Hyper-V High Availability alone cannot guarantee constant data protection and uninterrupted business performance. For this purpose, you need to use a reliable data protection solution that can easily back up critical data and applications and help you rapidly recover the entire virtual infrastructure in case of a system failure.

NAKIVO Backup & Replication is a fast, effective, and reliable solution that allows you to protect Microsoft Hyper-V, VMware vSphere and Nutanix AHV VMs. By installing NAKIVO Backup & Replication, you get access to a rich feature set that includes fast backup, real-time replication, site recovery, instant full VM recovery, instant granular recovery, and much more.

Try NAKIVO Backup & Replication

Try NAKIVO Backup & Replication

Get a free trial to explore all the solution’s data protection capabilities. 15 days for free. Zero feature or capacity limitations. No credit card required.

People also read