After delivering SQL Training, I realized that there is a need to write a blog which talks about Installing SQL Server 2005 cluster on Virtual Environment. Many DBA wants to see how Cluster looks like and they don't have capability to buy/see actual cluster.
There is an easy solution to the problem by using Virtual Server 2005.
I will try to be as descriptive as possible. In case something is not clear, please provide feedback.
You also have to download Microsoft Virtual Server (http://technet.microsoft.com/hi-in/bb738033(en-us).aspx)
You also need to download ISO image for SQL Server 2005 evaluation edition (http://www.microsoft.com/downloads/details.aspx?FamilyID=6931fa7f-c094-49a2-a050-2d07993566ec&DisplayLang=en)
You should also have virtual hard disk of operating system. (Download available http://www.microsoft.com/downloads/details.aspx?FamilyID=77f24c9d-b4b8-4f73-99e3-c66f80e415b6&DisplayLang=en)
Above link has three files to download. You have to download all files. Once you download content from above link, you need to extract to a folder in local machine using WIN2K3R2EESP2.part1.exe. I extracted in (E:\Virtual Server)
Above link has three files to download. You have to download all files. Once you download content from above link, you need to extract to a folder in local machine using
. I extracted in (E:\Virtual Server)
Please refer the readme file in above folder after you download.
NOTE: THIS SETUP WILL WORK ONLY FOR 30 days(depends on Read Me)
One you extracted the files, make three copies of virtual hard disk. One for Domain Controller, second for node1 and third for node2. I have created files as below:
Once you have downloaded and installed Virtual Server you should see new menu item in Programs.
Now, we will configure the Virtual Servers. First we need to Create Virtual Machine so that we have three separate virtual servers available. Make sure you set the Search Path at below screen.
On Left Side Menu choose Virtual Server > Server Properties > Search Path
below is the screen shot of "MyDC" setting. Information which I filled in is
Click on Create.
Now, Go to Master Status and try to "Turn ON" the domain controller (I know its not yet a DC but in next step we are going to make it)
One you log in to MyDC, rename the machine to MyDC (by right click on My Computer > Properties) You need to restart the computer after renaming.
Next step is to run "dcpromo" command to make this machine as domain controller. Start>Run>dcpromo
Accept all settings as default, below are few which you need to modify.
During setup if it asks for windows installation CD, please point it to C:\WindowsInstallationFiles\I386 folder. Also, when prompted, please provide IP address as 188.8.131.52. You will be prompted to restart the machine.
When you can logon screen after reboot, "Log on to" should have MyCluster selected.
Now we have one machine ready which will act as domain controller for our cluster setup.
You are now having one Domain Controller in your Virtual Network. Now, lets add two member servers in the domain. As we did earlier, we have to add rest two vhd to server. Below screen shot is for Node2.
After configuration on Virtual Servers, follow below steps
1. Rename the nodes to MyNode1 and MyNode2 (still in Workgroup).
My Computer > Right Click > Properties > Computer Name
Then Restart MyNode1 and MyNode2
2. Disable the Firewall on all three machines.
Control Panel > Windows Firewall
Select "Off" from the UI.
3. Change the IP address of machines.
MyNode1 - 184.108.40.206 (DNS Server 220.127.116.11)
MyNode2 - 18.104.22.168 (DNS Server 22.214.171.124)
4. Join the machine to domain (MyCluster.com) Below screen shot.
This finishes setup of one domain controller and two member servers.
Now we have to make MyNode1 and MyNode2 as single cluster.
lets move on to Part 2
If you said need only one computer for dong cluster sql server , How can I start MyNode1 and MyNode2 ?
I can follow your step until Create Virtual Machine but I can't re-name computer name to MyNode1 and MyNode2.
Can you detail this step ?
Can you tell me the password for login to MyDC ?
Sorry for delay in response.
It looks like are making your own machine as domain controller. I don't know password of your machine.
As exaplined earlier, you need to use Virtual Machines to play with.
For vhd's password, you should refer to ReadMe file which comes along with vhd.
can i install sql server 2008 in this cluster?
I have added all 2 nodes but while doing logon it ask for password what we need to give