Active Directory Lab Part III: Create the Virtual Machines

Overview

This post is part of a series illustrating how to automate the process of deploying an AD Lab. This article details how to create the required Hyper-V virtual machines.

You can use our automation script, OZO AD Lab Create VMs to perform these steps with a single command!

Create the Virtual Machines

Use these steps to create four virtual machines. Open Hyper-V Manager and click New > Virtual Machine:

Specify Name and Location

VMName
RouterAD Lab 01 router.contoso.com
DCAD Lab 02 dc.contoso.com
ServerAD Lab 03 server.contoso.com
ClientAD Lab 04 client.contoso.com

Specify Generation

All VMS: select Generation 2.

Assign Memory

VMStartup memory
Router1024
DC2048
Server2048
Client4096

Configure Networking

VMConnection
RouterAD Lab External
DCAD Lab Private
ServerAD Lab Private
ClientAD Lab Private

Connect Virtual Hard Disk

All VMs: accept the default Name and Location, and set size as follows:

VMSize
Router64
DC128
Server128
Client128

Installation Options

VMoptionImage file (.iso)
RouterInstall an operating system from a bootable image fileDownloads\OZO-AD-Lab-Router.iso
DCInstall an operating system from a bootable image fileDownloads\OZO-AD-Lab-DC.iso
ServerInstall an operating system from a bootable image fileDownloads\OZO-AD-Lab-Server.iso
ClientInstall an operating system from a bootable image fileDownloads\OZO-AD-Lab-Client.iso

Edit the Hyper-V Virtual Machine Settings

Use these steps to edit the virtual machines. Open Hyper-V Manager, select a VM, and click Settings:

Security

VMTemplateEnable TPM
RouterMicrosoft UEFI Certificate AuthorityNo
DCMicrosoft WindowsYes
ServerMicrosoft WindowsYes
ClientMicrosoft WindowsYes

Memory

VMMaximum RAMMemory buffer
Router10245%
DC20485%
Server20485%
Client40965%

Integration Services

All VMs: check Guest services.

Checkpoints

All VMs: uncheck Enable checkpoints.

Automatic Start Action

All VMs: select Nothing.

Automatic Stop Action

All VMs: Select Shut down the guest operating system.

Additional Steps for the Linux Router VM

  1. In Hyper-V Manager, select AD Lab 01 router.contoso.com and edit settings.
  2. Click Add Hardware, select Network Adapter, click Add, and set Virtual switch to AD Lab Private.
  3. Click Security and in the Template drop-down, choose Microsoft UEFI Certificate Authority.

Part I – Introduction

Part II – Customization

Part III – Installation

Part IV – Conclusion