The set of VMs described in this article can be used to demonstrate the new high-availability features of SQL Server 2012, namely AlwaysOn Availability Groups and Failover Clustering. The purpose of the article is to document the requirments and high-level steps that are necessary in order to create the necessary virtual machines. If you are interested in building an EMU + KIWI build see this wiki: http://social.technet.microsoft.com/wiki/contents/articles/10304.how-to-build-a-combined-set-of-kiwi-and-emu-vms-sql-server-2012-demos.aspx
There are two sets of VMs that need to be built, only one of which will be running at a time. One domain controller VM will be shared between the two sets. To get started, we will setup a base VM that we will eventually sysprep and then duplicate in order to create the needed machines.
Start by building a base server VM with the following:
You will need at least 4 activated base Windows Server machines in order to satisfy the demo requirements. Since these VMs will ultimately be participating in a domain network and running SQL Server, it is a requirment that these VMs are not cloned from the same machine (so we used sysprep). In the next few steps, we will take the current single base VM (sysprepped) and create 4 base VMs (activated). Note that we could activate at the end, but we would need to use more activations that way.
This domain controller will be used for both sets of VMs (for Availability Group and Failover Clustering demos).
The AlwaysOn Availability Group demos require 3 VMs to be built.
The AlwaysOn Failover Clustering demos require 3 VMs to be built. Shut down the the EMU-SQL* machines so that we can work on this set.
This server is meant to be almost identical to SVR1 as it will be participating in a cluster. The only difference is that you should use a static IP of 192.168.31.21 for the domain network NIC and 192.168.81.6 for the iSCSI network NIC.
Use same general steps as before to setup cluster with SVR1 and SVR2 machines.
Potential issues: If you are trying to log into a VM with domain credentials and see an error message about the trust relationship to the DC, here is a workaround. Log into the VM using local Administrator account, same Password;1. Next, open a command prompt and reset the machine account password: netdom resetpwd /server:emu-dc /userd:contoso\administrator /password:Password;1 Finally, log out and test the domain login again. It should now work.
Return to SQL Server 2012 Developer Training Kit Virtual Machine wiki
Richard Davis edited Revision 3. Comment: update for RTM
Leszek Kwaśniewski edited Revision 6. Comment: added machine diagram
Thanks Leszek, diagram addition is very helpful