---
title: "Microsoft Cluster running on VMware ESXi – Cluster in a Box"
date: "2014-07-24T07:00:40Z"
tags: ["Clustering", "Windows Server", "Windows Server 2012", "Windows Server 2012 R2"]
categories: ["Microsoft", "VMware"]
---

![Microsoft Cluster running on VMware ESXi - Cluster in a Box][1]
  
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.
<!--more-->
<!--adsense-->
## 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][2]

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

![Cluster in a box 2][3]

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][4]

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][5]

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

![Cluster in a box 5][6]

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][7]

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

![Cluster in a box 7][8]

## Microsoft Clustering configuration

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

![Cluster in a box 8][9]

Click **Install** and wait for the wizard to finish.

Start **Failover Cluster Manager** and click **Create Cluster**.

![Cluster in a box 9][10]

Add cluster nodes and click next.

![Cluster in a box 10][11]

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

![Cluster in a box 11][12]

Selected **Run all test (recommended)**

![Cluster in a box 12][13]

Enter cluster name and provide Cluster IP address.

![Cluster in a box 13][14]

Wait for Cluster wizard to finish.

![Cluster in a box 14][15]

As you see on screenshot cluster was successfully created.

![Cluster in a box 15][16]

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][17]

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][18]

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.

<a title="VMware: Microsoft Clustering on VMware vSphere: Guidelines for supported configurations" href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1037959" rel="noopener">VMware: Microsoft Clustering on VMware vSphere: Guidelines for supported configurations</a>

<a title="VMware: Setup for Failover Clustering and Microsoft Cluster Service" href="http://pubs.vmware.com/vsphere-51/topic/com.vmware.ICbase/PDF/vsphere-esxi-vcenter-server-51-setup-mscs.pdf" rel="noopener">VMware: Setup for Failover Clustering and Microsoft Cluster Service</a>

<a title="Microsoft: Failover Clustering Overview" href="http://technet.microsoft.com/en-us/library/hh831579.aspx" rel="noopener">Microsoft: Failover Clustering Overview</a>

[1]: /images/uploads/2014/07/microsoft-cluster-running-on-vmware-esxi-cluster-in-a-box.webp
[2]: /images/uploads/2014/07/cluster-in-a-box-1.webp
[3]: /images/uploads/2014/07/cluster-in-a-box-2.webp
[4]: /images/uploads/2014/07/cluster-in-a-box-3.webp
[5]: /images/uploads/2014/07/cluster-in-a-box-4.webp
[6]: /images/uploads/2014/07/cluster-in-a-box-5.webp
[7]: /images/uploads/2014/07/cluster-in-a-box-6.webp
[8]: /images/uploads/2014/07/cluster-in-a-box-7.webp
[9]: /images/uploads/2014/07/cluster-in-a-box-8.webp
[10]: /images/uploads/2014/07/cluster-in-a-box-9.webp
[11]: /images/uploads/2014/07/cluster-in-a-box-10.webp
[12]: /images/uploads/2014/07/cluster-in-a-box-11.webp
[13]: /images/uploads/2014/07/cluster-in-a-box-12.webp
[14]: /images/uploads/2014/07/cluster-in-a-box-13.webp
[15]: /images/uploads/2014/07/cluster-in-a-box-14.webp
[16]: /images/uploads/2014/07/cluster-in-a-box-15.webp
[17]: /images/uploads/2014/07/cluster-in-a-box-16.webp
[18]: /images/uploads/2014/07/cluster-in-a-box-17.webp
