Hyper-V Failover Cluster (tyHyper-V Failover Cluster (typical Windows Server 2019/2022 setup).
Prerequisites (Must Have)
Before starting, make sure you have:
Hardware
• At least 2 Hyper-V hosts
• Identical or similar CPU architecture (Intel ↔ Intel or AMD ↔ AMD)
• Shared storage:
○ SAN (iSCSI / Fibre Channel) OR
○ Storage Spaces Direct (S2D)
• Multiple NICs recommended:
○ Management
○ VM traffic
○ Cluster/Live Migration
○ Storage (iSCSI)
Software
• Windows Server 2019 or 2022
• Same Windows patch level on all nodes
• Domain-joined servers
• Static IP addresses
Step 1: Join Servers to the Domain
On each Hyper-V host:
Add-Computer -DomainName yourdomain.local -Restart
Step 2: Install Required Roles & Features
Run on each node:
Install-WindowsFeature Hyper-V, Failover-Clustering, RSAT-Clustering, RSAT-Hyper-V-Tools -IncludeManagementTools -Restart
Step 3: Configure Networking
✔ Best practice:
• Rename NICs (Mgmt, LiveMig, Storage, VM)
• Set correct VLANs
• Disable DNS registration on non-management NICs
• For iSCSI NICs: disable Client for Microsoft Networks
Example:
Rename-NetAdapter -Name "Ethernet 2" -NewName "LiveMig"
Step 4: Configure Shared Storage
Option A: iSCSI SAN
1. Connect iSCSI initiator on each node
2. Present same LUNs to all nodes
3. Bring disks online on one node only
4. Initialize as GPT (do NOT format yet)
Option B: Storage Spaces Direct (S2D)
Skip SAN setup — local disks only.
Step 5: Validate the Cluster (CRITICAL)
Run from any node:
Test-Cluster -Node HV1,HV2
✔ Fix ALL errors
⚠️ Warnings should be reviewed carefully
Step 6: Create the Failover Cluster
New-Cluster -Name HVCLUSTER `
-Node HV1,HV2 `
-StaticAddress 192.168.1.50
Verify:
Get-Cluster
Minimum Hardware & Software
• Nodes: At least two physical servers (nodes).
• Processor: 64-bit CPU with hardware-assisted virtualization (EPT/NPT) and Hardware-enforced Data Execution Prevention (DEP).
• Networking: Multiple networks/adapters for redundancy (heartbeat, VM traffic, live migration).
• Storage: Shared storage (SAN, iSCSI, SMB 3.0) accessible by all nodes for Cluster Shared Volumes (CSVs).
• Operating System: Windows Server with the Hyper-V role enabled on all nodes.
• Domain: Nodes must be part of the same Active Directory domain.pical Windows Server 2019/2022 setup).
Prerequisites (Must Have)
Before starting, make sure you have:
Hardware
• At least 2 Hyper-V hosts
• Identical or similar CPU architecture (Intel ↔ Intel or AMD ↔ AMD)
• Shared storage:
○ SAN (iSCSI / Fibre Channel) OR
○ Storage Spaces Direct (S2D)
• Multiple NICs recommended:
○ Management
○ VM traffic
○ Cluster/Live Migration
○ Storage (iSCSI)
Software
• Windows Server 2019 or 2022
• Same Windows patch level on all nodes
• Domain-joined servers
• Static IP addresses
Step 1: Join Servers to the Domain
On each Hyper-V host:
Add-Computer -DomainName yourdomain.local -Restart
Step 2: Install Required Roles & Features
Run on each node:
Install-WindowsFeature Hyper-V, Failover-Clustering, RSAT-Clustering, RSAT-Hyper-V-Tools -IncludeManagementTools -Restart
Step 3: Configure Networking
✔ Best practice:
• Rename NICs (Mgmt, LiveMig, Storage, VM)
• Set correct VLANs
• Disable DNS registration on non-management NICs
• For iSCSI NICs: disable Client for Microsoft Networks
Example:
Rename-NetAdapter -Name "Ethernet 2" -NewName "LiveMig"
Step 4: Configure Shared Storage
Option A: iSCSI SAN
1. Connect iSCSI initiator on each node
2. Present same LUNs to all nodes
3. Bring disks online on one node only
4. Initialize as GPT (do NOT format yet)
Option B: Storage Spaces Direct (S2D)
Skip SAN setup — local disks only.
Step 5: Validate the Cluster (CRITICAL)
Run from any node:
Test-Cluster -Node HV1,HV2
✔ Fix ALL errors
⚠️ Warnings should be reviewed carefully
Step 6: Create the Failover Cluster
New-Cluster -Name HVCLUSTER `
-Node HV1,HV2 `
-StaticAddress 192.168.1.50
Verify:
Get-Cluster
Minimum Hardware & Software
• Nodes: At least two physical servers (nodes).
• Processor: 64-bit CPU with hardware-assisted virtualization (EPT/NPT) and Hardware-enforced Data Execution Prevention (DEP).
• Networking: Multiple networks/adapters for redundancy (heartbeat, VM traffic, live migration).
• Storage: Shared storage (SAN, iSCSI, SMB 3.0) accessible by all nodes for Cluster Shared Volumes (CSVs).
• Operating System: Windows Server with the Hyper-V role enabled on all nodes.
• Domain: Nodes must be part of the same Active Directory domain.