Share via


Hosting the Windows Server 2012 Base Configuration Test Lab with Windows Server 2012 Hyper-V

The Windows Server 2012 Base Configuration test lab consists of up to five separate computers on two separate subnets:

  • The Corpnet subnet contains the DC1, APP1, and EDGE1 (optional) computers
  • The optional Internet subnet contains the INET1 and EDGE1 computers

The CLIENT1 computer can connect to either subnet. The following figure shows the base configuration test lab (click on it for a larger version).

This figure shows the computers and their connections to the subnets using a hub or switch. You can implement this configuration using physical computers and switches, virtual computers and switches, or a combination of physical and virtual components.

If you are using Windows Server 2012 and the Hyper-V server role for your virtualization solution, you can configure the base configuration in Hyper-V on a single server as shown in the following figure (click on it for a larger version):

The key elements of this configuration are the following:

  • All five computers (DC1, APP1, CLIENT1, EDGE1, and INET1) are virtual machines running on the Hyper-V server.
  • The Corpnet subnet is implemented as the Corpnet virtual switch.
    • DC1, APP1, and EDGE1 are connected to the Corpnet virtual switch.
  • The Internet subnet is implemented as the Internet virtual switch.
    • EDGE1 and INET1 are connected to the Internet virtual switch.
  • CLIENT1 can be connected to either the Corpnet or Internet virtual switches.
  • The Hyper-V server has at least one physical network adapter that connects to your organization intranet and the Internet. You can use this connection to connect a base configuration test lab computer to the real Internet (rather than the Internet subnet), for example to install software or updates. For more information, see How do I get my base configuration computers on the Internet?

See the following for a short overview of the configuration process.

View

To build out the Corpnet subnet in Windows Server 2012 Hyper-V, do the following:

  1. Create a private virtual switch named Corpnet. For the steps to do this, see Creating a new virtual switch.
  2. Create a new virtual machine named DC1 that is connected to the Corpnet virtual switch. For the steps to do this, see Creating a new virtual machine.
  3. Create a new virtual machine named APP1 that is connected to the Corpnet virtual switch.
  4. Create a new virtual machine named CLIENT1 that is connected to the Corpnet virtual switch.
  5. Follow the instructions in the “Steps for Configuring the Corpnet Subnet” section of the Test Lab Guide: Windows Server 2012 Base Configuration. To install Windows Server 2012 or Windows 8 on a virtual machine, see Installing an operating system on a new virtual machine.
Windows PowerShell commands
The following Windows PowerShell cmdlet or cmdlets perform the same function as steps 1-4 of the preceding procedure. You must supply values for the –MemoryStartupBytes and -NewVHDSizeBytes parameters for each virtual machine. Enter each cmdlet on a single line, even though they may appear word-wrapped across several lines here because of formatting constraints.

New-VmSwitch -Name Corpnet -SwitchType Private
New-VM –Name DC1 –MemoryStartupBytes <MemorySize> -NewVHDSizeBytes <DiskSize> –SwitchName Corpnet
New-VM –Name APP1 –MemoryStartupBytes <MemorySize> -NewVHDSizeBytes <DiskSize> –SwitchName Corpnet
New-VM –Name CLIENT1 –MemoryStartupBytes <MemorySize> -NewVHDSizeBytes <DiskSize> –SwitchName Corpnet

To build out the Internet subnet in Windows Server 2012 Hyper-V, do the following:

  1. Create a private virtual switch named Internet.
  2. Create a new virtual machine named EDGE1 that is connected to the Corpnet virtual switch. Add a network adapter to EDGE1 that is connected to the Internet virtual switch. For the steps to do this, see Adding a network adapter to a new virtual machine.
  3. Create a new virtual machine named INET1 that is connected to the Internet virtual switch.
  4. Follow the instructions in the “Steps for Configuring the Internet Subnet” section of the Test Lab Guide: Windows Server 2012 Base Configuration.
Windows PowerShell commands
The following Windows PowerShell cmdlet or cmdlets perform the same function as steps 1-3 of the preceding procedure. You must supply values for the –MemoryStartupBytes and -NewVHDSizeBytes parameters for each virtual machine. Enter each cmdlet on a single line, even though they may appear word-wrapped across several lines here because of formatting constraints.

New-VmSwitch -Name Internet -SwitchType Private
New-VM –Name EDGE1 –MemoryStartupBytes <MemorySize> -NewVHDSizeBytes <DiskSize> –SwitchName Corpnet
Add-VMNetworkAdapter –VMName EDGE1 –SwitchName Internet

New-VM –Name INET1 –MemoryStartupBytes <MemorySize> -NewVHDSizeBytes <DiskSize> –SwitchName Internet

For additional information about configuring test labs with Windows Server 2012 Hyper-V, see Hosting Test Lab Guide environments in Windows Server 2012 Hyper-V.

For more information, see Test Lab Guides.

For the latest developments in the Test Lab Guides initiative, see the Microsoft Test Lab Guides blog.