November 12th, 2008 by Mithil
Step by Step Windows 2003 Cluster using VMware for testing Environment
It’s always good and must to have test environment rather than doing on live setup
Do I need to tell why?
Host System Installation
Windows 2003 SP2 Enterprise Edition with 4 GB RAM Dual Core 2 NIC [Minimum recommendation]
Do the OS installation as par the requirement, System drive 7 GB is enough
Update with SP2 and all latest patches
Install VMware server edition [Tested on version 5.x]
Installation and Configuration
Starting point is the preparation of a Windows 2003 cluster for Exchange 2003 with the following hardware specs.
ClusNode1 – System partition 4 Gb
ClusNode 2 – System partition 4 Gb
• Shared storage – Quorum – 500 Mb
• Shared storage – Databases – 4 Gb [Exchange Or SQL]
• Shared storage – Log files – 1 Gb [Exchange Or SQL ]
Two network interfaces (NICs) need to be configured per node, one for public cluster NIC and another for private NIC will be used for cluster heartbeat.
If you have AD/Domain installed on your test environment else install AD/Domain controller for testing environment then create cluster account or and create account with setting “Password never Expire” and “password can not be changed”.
Start Vmware Virtual machine creation
Create new virtual machine
![1 Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/1.PNG)
Guest OS can be installed on Virtual IDE drive created in VMware
Open new Virtual machine Wizard
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/2.PNG)
NEXT
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/3.PNG)
Choose Custom >> click NEXT
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/4.PNG)
Select Windows 2003 Ent >> Click NEXT
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/5.PNG)
Give Friendly name to your Virtual Machine and its location [Store it on diff partition other that system]
Click Next.
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/6.PNG)
On next page, allocate RAM memory to 1 GB [Recommended]
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/7.PNG)
For Network type select Bridge Networking, click next
[This NIC will be used for public Access]
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/8.PNG)
Create Virtual Machine Disk, Click NEXT.
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/9.PNG)
Give Disk Capacity, I recommend 4-5 GB Click Next
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/10.PNG)
Give the location where virtual disk information would be store
[This is the file that we will need to edit for sharing disk resource]
Click Advance
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/11.PNG)
Select IDE 0.1, [This is the disk on which Virtual machine’s OS will be installed].
Click Finish.
Now additional component need to be added, like second NIC, and 2 SCSI HDD as shared disk resource.
Now click on “edit virtual machine setting”
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/12.PNG)
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/13.PNG)
Add >click “NEXT” on next page
Select Hard Disk click “NEXT”
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/14.PNG)
Select option “Create New virtual disk”
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/15.PNG)
Give disk space 500mb only
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/16.PNG)
Specify this disk as Quorum disk
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/17.PNG)
Click on “Advance”
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/18.PNG)
Select SCSI 0:0 as Virtual Device Node and click on ‘Finish’.
Repeat the steps above for the remaining shared disks, those are needed.
Be Aware! The shared disks must be added as SCSI as this is necessary for the correct functioning of MSCS.
Now an extra NIC is needed.
Do same processes mention above, but select Ethernet Adapter on both VM’s
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/19.PNG)
Select “Host-Only” click finish
This NIC will be used for “Hertbeat”
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/20.PNG)
Complete configuration must look like this
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/21.PNG)
Click on ‘OK’ to close the configuration editor.
Start Windows Explorer and navigate to the folder where the Virtual Machine is created.
Example it is Z:\VMware virtual machines\clusternodeA\name .vmx).
Open with Notepad the file <vm name>.vmx and add at the end the following line:
Disk.locking = FALSE
This makes sure that both nodes can access the same disks at the same time in case of cluster failover. MSCS is intelligent enough to prevent that both nodes actually do this at the same time.
Using the VMWare SCSI Driver in a New Virtual Machine
To use the driver when you are installing a Windows Server 2003 or Windows XP guest operating system in a newly created virtual machine, follow these steps. Download the driver from hxxp://www.vmware.com/download/downloadscsi.html
Save the downloaded file — vmscsi_<xxxx>.flp
Now the SCSI Hard-Disk those were added need to be configured
Edit the virtual machine configuration, click on added SCSI HDD and change the setting as shown below.
![Windows 2003 Cluster On Vmware [lab Environment] Windows 2003 Cluster On Vmware [Lab Environment]](http://winadmin.co.uk/Vmware/22.PNG)
Make same changes to remaining SCSI hard-disk only. Virtual device node must me SCSI 0.1 as it would be another SCSI Device
Start the VM installation one by one [not simultaneously it will cause corrupt the hard-disk and shared data. Same precaution must be taken whenever Cluster node is rebooted.
Now you are ready to install cluster service on newly installed VM.