Microsoft Cluster running on VMware ESXi - Cluster in a Box
In Today’s post, I would like to show you how to configure Microsoft Clustering across Virtual Machines with shared disk – so-called Cluster in a Box(CiB). Typical use case for Microsoft Cluster / Failover Cluster is to have cluster nodes with shared storage. Typical use case for Cluster in a Box is when you have to provide availability on Operating System level for application/service and you can’t use Raw Device Mapping in your environment.

Environment and configuration

VMware ESXi – version 5.5.0 build 1623387 (Update 1)
Operating System – Microsoft Server 2012 R2 Standard
Cluster – Two Virtual Machines with shared disk
Virtual Machines – each Virtual Machine with two network interfaces Lan and Cluster.
DRS rule – it is mandatory to have both Virtual Machines on the same host. I created rule Keep Virtual Machines Together.

Prerequisites configuration

I joined two Virtual Machine into a domain and I used following network configuration:

WMCLU01:

  • LAN: 10.0.0.16
  • Netmask: 255.255.0.0
  • Gateway: 10.0.0.1
  • Cluster: 192.168.1.1
  • Netmask: 255.255.0.0

WMCLU02:

  • LAN: 10.0.0.17
  • Netmask: 255.255.0.0
  • Gateway: 10.0.0.1
  • Cluster: 192.168.1.2
  • Netmask: 255.255.0.0

I added new SCSI Controller – LSI Logic SAS and I changed SCSI Bus Sharing from None to Virtual.

Cluster in a Box 1

This allows us to share attached disk to another Virtual Machine.

Cluster in a Box 2

Now we need to add the new disk to Virtual Machine which will be shared across Virtual Machines. New disk type must be Thick provision eager zeroed. Otherwise, you will be not able to use Microsoft clustering.

Cluster in a Box 3

We have to do same steps with second cluster node – in my case WMCLU02. I added new SCSI controller with  SCSI Bus Sharing type Virtual.

Now we need to add existing drive from first cluster node to second cluster node to SCSI controller.

Cluster in a Box 4

We have to assign it to SCSI controller which type is Virtual.

Cluster in a Box 5

The first test of configuration is to start both VM and check if the disk is seen on both cluster nodes.

Cluster in a Box 6

After logging in into both cluster nodes I created Quorum drive and it is visible on both sides.

Cluster in a Box 7

Microsoft Clustering configuration

Start server management console and in Features select Failover Clustering and accept other features to install.

Cluster in a Box 8

Click Install and wait for the wizard to finish.

Start Failover Cluster Manager and click Create Cluster.

Cluster in a Box 9

Add cluster nodes and click next.

Cluster in a Box 10

You will be asked to run Cluster validation wizard. Use it to check if all components are configured well.

Cluster in a Box 11

Selected Run all test (recommended)

Cluster in a Box 12

Enter cluster name and provide Cluster IP address.

Cluster in a Box 13

Wait for Cluster wizard to finish.

Cluster in a Box 14

As you see on screenshot cluster was successfully created.

Cluster in a Box 15

The last thing we have to do is to adjust networks in the cluster. We will ensure that cluster network (heartbeat) will be not used in normal communication. Go to Networks, select Cluster Network 1 and expand network connections.

Cluster in a Box 16

On the network which will be used for cluster heartbeat go to properties and deselect Allow client to connect to this network. You can rename network itself – this is not mandatory but might be useful when troubleshooting issues.

Cluster in a Box 17

The second network should have Allow client to connect through this network checkbox selected.

Final thoughts and useful links

I didn’t configure any roles because this exceeds my knowledge. There is plenty of other sources where you can find guides how to add roles to the cluster.

Here you can find useful links from VMware and Microsoft about clustering with Microsoft technologies.

VMware: Microsoft Clustering on VMware vSphere: Guidelines for supported configurations

VMware: Setup for Failover Clustering and Microsoft Cluster Service

Microsoft: Failover Clustering Overview

Microsoft Cluster running on VMware ESXi – Cluster in a Box
5 (100%) 1 vote
Wojciech Marusiak
Social Media

Wojciech Marusiak

Senior Solutions Cloud Architect at Consort CT
I am innovative and experienced VMware and Windows Server Engineer with over 10 years in the IT industry specializing in VMware virtualization and Microsoft Server environment.

My experience and skills have been proven by leading vendor certifications like VMware Certified Implementation Expert 6 – Data Center Virtualization, VMware Certified Advanced Professional 6 – Data Center Virtualization Design, VMware Certified Professional 6 - Data Center Virtualization, VMware Certified Professional 6 - Network Virtualization, AWS Certified Solutions Architect - Associate, ITIL V3, VMware vExpert 2014 - 2017 and VMware vExpert NSX 2017 Award.

My blog wojcieh.net - was voted #43 in Top vBlog 2017 contest!
Wojciech Marusiak
Social Media

Latest posts by Wojciech Marusiak (see all)