HomeMicrosoft Hyper-VHow to Create Hyper-V Cluster Windows Server 2022

How to Create Hyper-V Cluster Windows Server 2022

In this article, we will learn how to Create Hyper-V Cluster Windows Server 2022. We will explore the practical quality of Hyper-V failover clustering configuration, including initial host setup and network configuration, Windows Hyper-V role installation, and then cluster creation. One of the essential requirements for virtual infrastructures, specifically in large data centers, is the removal of a single point of failure and guaranteeing the high availability of services and applications. In a Microsoft Hyper-V environment, the Failover Clustering technology is available to configure multiple Hyper-V nodes (or hosts) that can take over the load if one host is down.

Systems Requirements for Hyper-V Cluster

HyperV22-01 (Node 1), Windows Servers 2022
192.168.121.212
192.168.52.251
HyperV22-02 (Node 2), Windows Servers 2022
192.168.121.214
192.168.52.252
First, you need to Install Windows Server 2022
Follow the Install Hyper-V role on Windows Server 2022
1 Windows Server 2022 (iSCSI Storage) with 2 drives configured
192.168.121.150
Visit my article, How to Configure Target iSCSI Server
Drive 1: 20 GB (Quorum)
Drive 2: 200 GB Virtual Machine Storage

Microsoft Windows Server 2022 with Hyper-V Capabilities

Once installing and configuring the iSCSI server is done,. Log in to your first hyper-v node (HyperV22-01)
In Server Manager 2022, click on the Tools tab and then choose iSCSI Initiator.

Server manager tools

Click yes to start the Microsoft iSCSI service.

Start service Microsoft iSCSI

In the iSCSI initiator properties, type the address of the iSCSI target, and then click on Quick Connect to connect to the discovered targets.

iSCSI initiator properties

Two iSCSI discovered targets are found. You will notice the status shows inactive. Click on each one, and then click on Connect.

iSCSI target quick connect

The status of the discovered targets of the iSCSI has been changed to connected.

iSCSI discovered targets

Now click on the Volumes and Devices tab, and then choose Auto Configure.

iSCSI initiator properties

You can now see the volume list populated with the iSCSI volume targets.

iSCSI initiator properties volumes and devices

Open disk management by typing diskmgmt.msc in the run box.

Run command diskmgmt.msc

Create Quorum and Storage Disk

We can view the two disks showing up as unknown and offline. We need to bring them online.

Disk management

Right-click on disk 1, and then choose Online.

Disk management disk unknown

Right-click on disk 1 and then choose to initialize disk.

Disk management initialize disk

Initialize disk; click OK.

Initialize disk GPT

Right-click on unallocated disk 1 and then choose a new simple volume.

Disk management unallocated disk

Welcome to the new simple volume wizard. Choose next.

New simple volume wizard

Select next.

Specify volume size

Assign a drive letter, and then choose next.

Assign drive letter or path

Enter a volume label, and then choose next.

New simple volume format partition

Click finish.

New simple volume completes.

Follow the above steps for storage disk configuration (Storage)
Once both disks are online and initializing, we can format, etc.

Disk management

Now log in to your Hyper-V 2nd node (HyperV22-02) and then follow the above steps.

Open disk management, right-click on both disks, and then choose online.

Disk management disk 1 online

Right-click on disk 2, and then choose Online.

Disk management online

Here you can see that both disks (Storage and Quorum) are online.

Disk management

In this first section, we have enabled the Hyper-V role, configured the network, and added shared storage to both nodes. In this section, we will discuss how to install failover clustering. How to create failover clustering using our two Windows Server 2022. Hyper-V nodes, clustered shared volumes (CSVs), and the Hyper-V virtual machine workload role are highly available.

How to Create Hyper-V High Availability Windows Server 2022

To create Hyper-V high availability, we will look at installing failover clustering. Creating Hyper-V high availability clusters, clustered shared volumes (CSVs).

Installing Failover Clustering Role

We need to enable the failover clustering feature on both servers (nodes) in our lab.
Log in to the first Hyper-V node (HyperV22-01), launch the server manager, and then click on the Add Roles and Features link.

Sever manager

Add roles and features wizard and choose next.

Add roles and features wizard

Role-based or feature-based installation, choose next.

Role-based or feature-based installation

Choose the host, and then click next.

Server selection

Select next.

Server roles

Tick the box for the failover clustering feature.

Enable failover clustering features

Click on Add Features to install the required features for Hyper-V Failover Clustering.

Required features for failover clustering

The failover clustering feature is now enabled; choose next.

Install failover clustering features

Click on the install button.

Confirm hyper-v clustering installation selections

The failover clustering feature installation is complete; click close.

Failover clustering Installation progress

Follow the above steps to install failover clustering on the second Hyper-V node (HyperV22-02).

Install Failover Clustering Feature PowerShell

Open Windows PowerShell.
Type the Install-WindowsFeature Failover-Clustering PowerShell command and then press enter to install Failover Clustering.

Install failover clustering PowerShell

Create Hyper-V Cluster High Availability

Select the Tools tab, and then click on the failover cluster manager.

Server manager

Creating Failover Clustering: select Create Cluster under the action menu.

Failover cluster manager

Create Cluster Wizard, and choose Next.

Create cluster wizard

Select the Browse button.

Create cluster wizard select servers

Type the Hyper-V cluster node name, and then click OK.

Enter the object name

The Hyper-V servers were successfully added; click next.

Create Hyper-V cluster

Select next.

Hyper-V clustering validation warning

Validate a configuration wizard, and click next.

Hyper-V cluster validate configuration wizard

Click next.

Validate a configuration wizard testing

Select the Next button to start validation.

Validate a configuration wizard confirmation

The validation tests are running.

Validate a configuration wizard validating

We can click on View Report to view the details of the test results in each area.
Click Finish

Validate a configuration summary

Enter a unique cluster name and cluster IP address, and then choose next.

Access point for administering the cluster

You can tick the box to add all eligible storage to the cluster, and then click next.

Create Hyper-V cluster confirmation

Creating a new cluster.

Creating new cluster Hyper-V

Click Finish.

Create cluster wizard summary

Open Failover Cluster Manager, and you can see two nodes are up and running.

Failover cluster manager

Create Clustered Shared Volumes

We can simply create shared volumes in the Failover Cluster Manager. Click on the storage disks below our cluster; you can see cluster disks. One is for the witness disk named Quorum, and the second is marked as Available Storage.
Right-click on the available storage and then select Add to cluster shared volumes.

Failover cluster manager disks

The Hyper-v Cluster Disk is changed to Cluster Shared Volume in the Assigned to Colum.

Failover cluster manager disks

How to Connect to Second Cluster

In the Hyper-V Manager, right-click on Hyper-V Manager and then choose to connect to server.

Hyper-V manager connect to server

Enter your Hyper-V node name, and then choose OK.

Connect to virtualization server

You can see both hyper-v nodes are available.

Hyper-V manager

How to Change Hyper-V Storage Settings

Once the clustered shared volume is configured,. We can change the Hyper-V settings on each host (Hyper-V) to use our CSV as the default location for storing the virtual machines. Right-click on one node, and then choose Hyper-V Settings for each host.

Hyper-V manager

Change the “Virtual Hard Disks location” and “Virtual Machines location” to the cluster shared volume, which is C:\ClusterStorage\volume1 on the Hyper-V hosts.

Hyper-V settings virtual machines

Open your cluster storage.

Hyper-V Cluster storage

Visit NAKIVO to learn more about Hyper-V Clustering

Jamil
Jamilhttp://jamiltech.com
A Professional Technology Blog Writer | An energetic professional with more than 20+ years of rich experience in Technology, Planning, Designing, Installation, and Networking.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments

fitspresso analysis on How to Reset Microsoft 365 Password
historical landmarks tours for history buffs on How to Add Hyper-V Server Altaro VM Backup
9780443186882 PDF download on How to Migrate Active Directory 2012 to 2022
Shaik Mohammad Jaheer on How to Enable Night Light on Windows 11