Build guest failover cluster with shared disk on a Hyper-V cluster Part 1/2

This two part series go through how to build up two node Windows failover cluster with shared disk on a Hyper-V 2012 R2 cluster. This is the first part of this two part series. This first part go trough how to set disks for VM guest clustering using shared disks.

I assume that Hyper-V cluster is already in place. If not build Hyper-V cluster with CSV online before proceeding.

.Some things to check before starting the clustering:

2 VM’s up and running with following prerequisites:

  • Are joined to same Active Directory domain
  • Same operating system (assuming Windows 2012 R2)
  • Check compatibility (HW and SW)


Check that your installation account has a local admin user rights to both (assuming 2-node cluster) Guest VM’s

User who is making the cluster has a rights to create a computer account (Crate a computer object) to container or OU that server and cluster account reside

If not use prestaged account (ask administrator to create a prestaged computer account, grant permission to both nodes to cluster accout and finally disable the account). More detailed info how to create a prestaged account:

Adding Shared disks to VM’s

1. Shutdown both VM’s

2. Log on to Hyper-V host that owns VM’s (if VM’s are in different hosts, use LiveMigration to move Guest VM’s to same host).

3. Open PowerShell on admin mode to check that both VM’s are on same Hyper-V host



4. Create at least two Disks (one for witness and one for data). Fastest way to do disks is use to powershell (make sure that path exists. I use CSV Disks on Hyper-V node so my path points to C:\ClusterStorage… folder). In many cases it best practice to create own folder where to add shared disks.

Following commands create two disks: 1GB fixed disk for Disk Witness use and one 20GB Fixed disk for data:



5. Add disks to Guest VM’s (Note that both VM’s needs to be shutdown before adding the disks). Run following commands to attach disk on VM’s.

Check SCSI controller number:


If you need add SCSI controller:


6. Add disks to available controller (on GEN1 VM first free is 0 and GEN2 VM 1 is the first free, system is on 0 slot)


7. Thats it.

We’ll build the Windows failover cluster on Part2.

Leave a Reply

Your email address will not be published. Required fields are marked *