Let's call this modified version of the KIWI virtual machine KIWI.V2.
Note: the VM that you use to build KIWI.V2 will need to be a separate activated VM (sysprepped) from the one used to build EMU-DC. You will not be able to join the domain otherwise.
System requirements: be aware that if you want to run all VMs at the same time, this will require 12-15GB of free RAM (not including some left over for the host OS). Otherwise, you can spin up the domain controller + KIWI or one of the EMU sets one at a time.
Steps:
- Create the EMU VMs following this wiki article: http://social.technet.microsoft.com/wiki/contents/articles/6198.how-to-build-sql-server-2012-alwayson-hyper-v-virtual-machines-for-demos-emu-build.aspx
- Reference the KIWI build from this wiki article: http://social.technet.microsoft.com/wiki/contents/articles/3402.how-to-build-a-sql-server-2012-hyper-v-virtual-machine-kiwi-build.aspx
- As you build KIWI, use the following modifications:
- Configure network adapter to use IP: 192.168.31.8, subnet: 255.255.255.0, default gateway: 192.168.31.2, DNS: 192.168.31.2
- Note: 192.168.31.2 is EMU-DC
- At end of existing "Base OS Setup and Configuration" section, start EMU-DC and join KIWI to the contoso domain
- note: both EMU-DC and KIWI need to have an internal network adapter configured and set to the same VLAN number in hyper-v settings
- Note that EMU-DC already has a CONTOSO\sqlservice account setup. Wherever the KIWI steps call for using this domain account, continue to do so but keep in mind that EMU-DC needs to be spun up and accessible when KIWI is running
- Configure network adapter to use IP: 192.168.31.8, subnet: 255.255.255.0, default gateway: 192.168.31.2, DNS: 192.168.31.2
- As you build KIWI, use the following modifications:
VM configuration & startup notes:
- Make sure CONTOSO domain machines have an internal NIC configured in Hyper-V that is on same VLAN number for domain networking
- Follow configuration steps in EMU wiki for additional network configuration for those 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.