Active Directory Lab: Create the Virtual Machines

Overview

This is the fourth post in a multi-part series that illustrates how to customize the Windows installer media to automate the process of installing a Windows AD domain controller, a Windows file server, and a Windows desktop environment. This article details the process for implementing a Linux router VM to provide internet access to the AD Lab.

Hyper-V natively provides network address translation (“NAT”) but implementing this Linux router allows for future revisions of the AD Lab to implement advanced concepts like multiple subnets.

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 fileAlmaLinux-9.5-x86_64-minimal.iso
DCInstall an operating system laterNA
ServerInstall an operating system laterNA
ClientInstall an operating system laterNA

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 Trusted Platform Module
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.


Previous: Prerequisites

Create the Virtual Machines