How to: Prepare a Domain Controller Virtual Machine Using SCVMM
A virtual environment that uses network isolation requires that the virtual machines in the environment must be either in a workgroup or joined to a private domain that is served by a domain controller (DC) virtual machine within the environment. Among the steps to set up an environment that uses network isolation is to prepare a domain controller virtual machine. For more information about the other steps, see How to: Create and Use a Network Isolated Environment.
To perform these procedures, you must be a member of the following groups:
Either the Administrator user role or the Self-Service User role in System Center Virtual Machine Manager (SCVMM).
For more information about SCVMM roles, see Managing User Roles.
To prepare a domain controller virtual machine
Use SCVMM Administrator Console to create a new virtual machine with Windows Server 2003 or Windows Server 2008 (SP2 or later versions) operating system.
We recommend that you use a new installation of the operating system instead of reusing or customizing an existing image.
Make sure that you allocate enough resources for running the virtual machine. For example, allocate at least 512MB of memory for a Windows Server 2003-based domain controller, and 1GB for a Windows Server 2008-based domain controller.
Install Active Directory and DNS server roles in the virtual machine. For more information about how to install Active Directory on Windows Server 2003, see Designing and Deploying Directory and Security Services. For more information about how to install Active Directory on Windows Server 2008, see AD DS Deployment Guide.
Lab Management does not support use of separate virtual machines in an environment for Active Directory and DNS.
Make sure that the domain controller is the only DC in the forest and that it is the root of the forest.
Do not use a domain name that is already used in your corporate or lab network. For example, if one of the domains in your network is called test.contoso.com, do not use the same name for your private domain.
Install the Lab Management lab agent in the domain controller virtual machine. For more information, see Installing and Configuring Visual Studio Agents and Test and Build Controllers.
Do not install the test agent or the build agent.
Verify that the Active Directory and DNS are installed correctly.
If the virtual machine was ever connected to a network, make sure that the only DNS entries are for the virtual machine. You only have to perform these steps one time: after you install Active Directory and DNS and before you store the virtual machine into library. Perform these steps and then immediately shut down the virtual machine. If you restart the virtual machine after you perform these steps, or if you leave the virtual machine running for a long time after you perform these steps, you must repeat them.
Open the DNS tool by clicking Start, Administrative Tools, and then DNS.
In the DNS tool, navigate to Forward Lookup Zones. Select each zone that is listed under Forward Lookup Zones. Then delete all the DNS entries under that zone that have an IP address listed in the Data column.
In the DNS tool, navigate to Reverse Lookup Zones. If any reverse lookup zone is configured, delete all the DNS entries under that zone.
Close the DNS tool.
Shut down the virtual machine, and store it in the SCVMM library.
Do not turn off the Active Directory VM. You have to shut it down correctly.
Do not generalize the Active Directory VM, either by running Sysprep or by storing the virtual machine as a template in SCVMM.