How Hyper-V High Availability Works

Modern businesses need to ensure 24/7 availability of their services. If an organization experiences downtime, the consequences are often unpredictable. These might include, but are not limited to issues relating to workflow interruptions, loss of critical data and potential revenue, damaged business reputation, loss of customers to competitors, etc.

The best way to protect your Hyper-V virtual environment is to eliminate a single point of failure within the system. This process entails adding redundant hardware or software components that, in case of failure, could potentially render the entire system non-functional. For example, when a Hyper-V host fails, all virtual machines running on it fail as well, thus leading to the loss of the entire virtual infrastructure.

Microsoft strives to ensure high availability of business operations, and increase overall infrastructure resilience. For this purpose, Hyper-V High Availability has been introduced, which is, in turn, the main topic of today’s blog post.

In short, to enable Hyper-V High Availability, you need to:

  1. Install the Hyper-V role
  2. Verify hardware requirements for Hyper-V Failover Clustering
  3. Configure network settings
  4. Set up the shared storage
  5. Install the Failover Clustering feature on a Hyper-V host
  6. Validate the configuration using the Cluster Validation Wizard
  7. Create a failover cluster using the Create Cluster Wizard
  8. Create clustered roles to host cluster workloads
  9. Create a Hyper-V highly available VM in the failover cluster

By following these steps, you should be able to make your infrastructure highly available and ensure its resilience to unexpected attacks or system failures.

How Hyper-V High Availability Works

Failover clustering is the process of combining several independent computers (called nodes) into a single group that enables a high level of availability and scalability of applications and services. Clustered servers can be connected by physical cables as well as 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 10-second period, then the node is assumed to have failed. In such 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.

Requirements for Hyper-V Failover Clustering 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 which 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.

After checking all requirements, you can now enable the Failover Clustering role on a Hyper-V host. For this purpose, take the following steps:

  1. Open the Server Manager.
  2. Select Add roles and features.
  3. Click Role-based or feature-based installation.
  4. Select a server or a virtual hard disk on which to install the Failover Clustering role.
  5. In the Features section, select Failover Clustering.
  6. In the Confirmation section, click Install.
  7. The installation operation should start automatically. In the Results section, you can see its progress and verify that the required components are installed.

Failover Clustering Installation (Hyper-V High Availability)

After that, you are able to access the Failover Clustering feature. Using the Failover Cluster Manager, you can now create failover clusters, validate hardware compatibility, and configure existing failover clusters. To launch the wizard, open the Server Manager, select Tools, and click Failover Cluster Manager. The wizard should appear as follows:

Failover Cluster Manager (Hyper-V High Availability)

When using the Failover Cluster Manager, you should first validate your hardware configuration, and only after that can you start creating a failover cluster to enable Hyper-V High Availability.

Note that if you would like to validate a set of unclustered servers, you need to know the names of those servers. On the other hand, if you wish 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 discovers how Hyper-V Failover Clustering works, describes use cases for Hyper-V failover clusters, and explains in detail how to successfully deploy a failover cluster in a Hyper-V environment.

How to Create a Highly Available Hyper-V VM

In today’s blog post, I want to focus on how to make a Hyper-V VM in a failover cluster highly available. For this purpose, you first need to create and configure a Hyper-V failover cluster and validate the configuration in the Failover Cluster Manager. After that, your system is ready for enabling Hyper-V High Availability.

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

  1. Open the Failover Cluster Manager.
  2. In the left pane, right-click Roles, select Virtual Machines, and then go to New Virtual Machine.
  3. The New Virtual Machine window should open, where you can select the target cluster node on which the VM would run.
  4. The New Virtual Machine Wizard should open. Read the information in the Before You Begin
    section.
  5. In the Specify Name and Location section, enter the name of a new VM and select the folder for storing the VM.
  6. In the Specify Generation section, choose the generation of the new VM.
  7. In the Assign Memory section, you should specify the amount of startup memory which can be used by the new VM. Moreover, you can enable the use of Dynamic Memory for this VM.
  8. In the Configure Networking section, select the virtual switch which can be used by the network adapter.
  9. 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.
  10. In the Installation Options section, select how you would like the OS to be installed on this VM.
  11. In the Summary section, read the description of the new VM and click Finish to create the new highly available VM.

As a result of such 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 this end, you need to take the following steps:

  1. Open the Failover Cluster Manager.
  2. In the left pane, right-click Roles and select Configure Role.
  3. The High Availability Wizard should open. Read information in the Before You Begin
  4. In the Select Role section, click Virtual Machine to enable Hyper-V High Availability for specific VMs.
  5. In the Select Virtual Machine section, choose the VMs which you want to make highly available.
  6. In the Confirmation section, you have to confirm that you want to enable Hyper-V High Availability for this specific VM.
  7. In the Configure High Availability section, you can see the progress of configuring Hyper-V High Availability.
  8. 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.

By going through this configuration process, you can make your VMs fault-tolerant and, consequently, enable Hyper-V High Availability in your virtual environment. If server or component failures take place in your infrastructure, Hyper-V High Availability can help you to quickly recover, and minimize the impact of downtime and productivity loss.

How to Protect Hyper-V Environment with NAKIVO Backup & Replication

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 which can easily back up critical data and applications and rapidly recover the entire virtual infrastructure in case of a system failure.

NAKIVO Backup & Replication is a fast, effective, and reliable solution which allows you to protect Hyper-V, VMware, AWS EC2, and Nutanix environments with a single product. By installing NAKIVO Backup & Replication, you can get access to a rich feature set and multiple data protection options, which include backup, backup copy, backup to cloud, replication, and site recovery.

With NAKIVO Backup & Replication, you can run image-based, application-aware, incremental backup and replication jobs which can be easily scheduled via the Calendar Dashboard. Furthermore, these VM backups can be copied and sent to a remote site or a cloud, where they can be securely stored and used for data recovery.

NAKIVO Backup & Replication lets you create exact copies of your source VMs and send them to a remote location. If a disaster strikes your production center, you can easily fail over to the selected VM replica and transfer critical workloads from the primary site to the disaster recovery (DR) site.

Site Recovery is another data protection option which allows you to create site recovery (SR) workflows of any complexity by arranging various actions and conditions into an automated algorithm. SR jobs can be tailored in a specific way to address various DR scenarios. Moreover, you can easily test your SR jobs without disrupting your production environment, and then update them to meet specific DR objectives.

With NAKIVO Backup & Replication, you can greatly simplify data protection management using Policy-Based VM Protection. You can set up policies which regularly scan your virtual infrastructure and protect specific VMs by automatically adding those VMs to corresponding jobs. These policy rules can be based on the following criteria: VM name, size, location, configuration, or a combination of the above parameters.

Request a live demo by one of our engineers or download a full-featured free trial to test the product in your virtual environment today and see for yourself the multiple benefits that NAKIVO Backup & Replication can provide you with.

How Hyper-V High Availability Works
5 (100%) 3 votes

Share: