A failover cluster joins two or more Hyper-V hosts so that if one stops, the other runs its virtual machines. This guide formats the shared disks, checks both hosts are fit, creates the cluster and gives it its storage and networks.
Virtual machines keep running when a host stops.
With one host, every VM is down whenever that host fails or restarts for updates.
Format the shared disks once, validate both hosts, create the cluster, then add its disks and name its networks.
Both hosts need the three roles, a network team, a place in the domain, and the shared disks connected: see Install the Hyper-V and clustering roles, Team network cards with SET, Join a server to the domain and Connect a Windows server to iSCSI storage.
What you will have at the end
| Item | Example |
|---|---|
| Cluster | CON-CLU-01 on 10.0.30.35 |
| Hosts | CON-HV-01 and CON-HV-02 |
| Witness disk | CON-CLU-01-WITNESS, 1 GB |
| Cluster storage | CON-CLU-01-CSV-01, at C:\ClusterStorage\Volume1 on both hosts |
The cluster commands talk to both hosts. A local Administrator account on one host has no rights on the other, and the commands fail with "Access is denied". Check with whoami before you start.
Format the shared disks, on one host only
Both hosts can see the shared disks. Bring them online and format them from the first host. Never do this from two hosts.
foreach ($d in Get-Disk | Where-Object BusType -eq 'iSCSI') {
$label = if ($d.Size -lt 5GB) { 'CON-CLU-01-WITNESS' } else { 'CON-CLU-01-CSV-01' }
Set-Disk -Number $d.Number -IsOffline $false
Set-Disk -Number $d.Number -IsReadOnly $false
Initialize-Disk -Number $d.Number -PartitionStyle GPT
New-Partition -DiskNumber $d.Number -UseMaximumSize |
Format-Volume -FileSystem NTFS -NewFileSystemLabel $label -Confirm:$false | Out-Null
}
Get-Disk | Where-Object BusType -eq 'iSCSI' | Format-Table Number, @{n='GB';e={[math]::Round($_.Size/1GB,1)}}, PartitionStyle, OperationalStatus -AutoSizeBoth disks should show GPT and Online.
For cluster storage that comes from a storage box over iSCSI or a SAN, Microsoft recommends NTFS. ReFS is for clusters that pool the hosts' own local disks.
Validate the hosts
Validation checks that the hosts, networks and storage are consistent. It takes a few minutes and writes a report.
Test-Cluster -Node CON-HV-01, CON-HV-02 -Include 'Inventory','Network','System Configuration','Storage'
| You see | What it means |
|---|---|
| Warning: Validate Software Update Levels | The hosts do not have exactly the same updates. Common on new installs. Run Windows Update on both afterwards. |
| HadUnselectedTests | You ran some test groups, not all. Fine for a test bench. |
| Any failure | Open the report at the path shown and fix it before going on. |
For a production cluster, run Test-Cluster with no -Include. Microsoft supports a cluster only if every test has been run and passed.
Create the cluster
Check the cluster's address is free, then create it.
Test-Connection 10.0.30.35 -Count 1 -Quiet # should say False New-Cluster -Name 'CON-CLU-01' -Node CON-HV-01, CON-HV-02 -StaticAddress 10.0.30.35 -NoStorage
It prints the cluster name when it succeeds. -NoStorage leaves the disks out for now, so you can add and name them yourself in the next step.
Add the disks
The small disk becomes the witness, which breaks a tie when the two hosts lose contact. The large disk becomes cluster storage that both hosts use at once.
foreach ($a in Get-ClusterAvailableDisk) {
$res = $a | Add-ClusterDisk
$res.Name = if ($a.Size -lt 5GB) { 'CON-CLU-01-WITNESS' } else { 'CON-CLU-01-CSV-01' }
}
Set-ClusterQuorum -DiskWitness 'CON-CLU-01-WITNESS' | Out-Null
Add-ClusterSharedVolume -Name 'CON-CLU-01-CSV-01' | Out-NullName the networks
The cluster finds every network the hosts share. Tell it what each is for. Storage networks must be left out of cluster use.
foreach ($n in Get-ClusterNetwork) {
switch -Wildcard ($n.Address) {
'10.0.30.*' { $n.Role = 3; $n.Name = 'Management' }
'10.0.70.*' { $n.Role = 1; $n.Name = 'Cluster' }
'10.0.61.*' { $n.Role = 0; $n.Name = 'iSCSI-A' }
'10.0.62.*' { $n.Role = 0; $n.Name = 'iSCSI-B' }
}
}| Role | Shown as | Use it for |
|---|---|---|
| 3 | ClusterAndClient | Management. The cluster and its users both use it. |
| 1 | Cluster | Heartbeat and live migration between hosts. |
| 0 | None | Storage. The cluster must not send its own traffic here. |
Check it
Get-ClusterNode | Format-Table Name, State -AutoSize
Get-ClusterQuorum | Format-List QuorumResource, QuorumType
Get-ClusterSharedVolume | Format-Table Name, State, OwnerNode, @{n='Path';e={$_.SharedVolumeInfo.FriendlyVolumeName}} -AutoSize
Get-ClusterNetwork | Format-Table Name, Address, Role, State -AutoSize
Resolve-DnsName CON-CLU-01.ad.contoso.com -Type A| Check | What you want |
|---|---|
| Nodes | Both hosts Up. |
| Quorum | The witness disk named as the quorum resource. |
| Shared volume | Online, at C:\ClusterStorage\Volume1. |
| Networks | Four, all Up, with the roles you set. |
| DNS | The cluster name resolves to its address. |
Things to know
- The cluster gets its own computer account in Active Directory, in the same OU as the hosts. You need to be a domain admin, or have the right to create computer objects there.
- If ordinary users cannot join computers to your domain, as in Stop users joining computers to the domain, the cluster's account cannot create further names either. Running virtual machines needs none. A clustered file server would, and you would give the cluster account that right on its OU first.
- An admin account in Protected Users works for validation and cluster creation on Windows Server 2025.
- Manage it with Failover Cluster Manager on either host, connecting to the cluster by name.
Done when
Both hosts are Up, the witness is set, the shared volume is online on both hosts, and the cluster name resolves.


