Windows Server in Hyper-V
Step-by-step guide to deploying two Windows Server Domain Controllers (DC1 and DC2) with Active Directory, DNS, and RRAS in a local Hyper-V LAN.
Installation LAN with Windows Server and Hyper-V
Requirements:
- 1 PC with 2 NICs
- 8 GB RAM (or more)
- 120 GB SSD (minimum)
1. Download the ISO
Download the latest Windows Server 2025 (or 2022) evaluation ISO from the Microsoft Evaluation Center:
2. Create a Bootable USB
Download Rufus Portable:
Write the ISO to a USB stick using Rufus.
3. Host Installation
- Boot from USB and install Windows Server (2025 or 2022).
- Give the host a clear computer name and activate Windows.
- Install the Hyper-V role.
- Select the internal network card for your internal Virtual Switch (and create an external switch if VMs also need internet access), and specify a storage path for the VHDs.
- Configure the host network adapters:
- External NIC: External IP configuration (Internet)
- Internal NIC: Internal LAN IP configuration (
192.168.100.x, subnet255.255.255.0— set DNS to192.168.100.1and192.168.100.2once DC1 and DC2 are configured)
4. Virtual Machines Setup
Create 2 VMs connected to the internal Virtual Switch, each with:
- 2 virtual cores
- 30 GB VHD (or larger)
- 2 GB RAM (dynamic)
Install Windows Server on both VMs from the ISO.
DC1 Configuration
- Name: DC1
- IP:
192.168.100.1(Subnet255.255.255.0) - Activate Windows.
- Install Active Directory Domain Services (AD DS) and DNS.
- Promote to Domain Controller in a new forest with your domain name, Global Catalog, and DSRM password.
DC2 Configuration
- Name: DC2
- IP:
192.168.100.2(Subnet255.255.255.0) - DNS Configuration: Set DC2's primary DNS server to
192.168.100.1(DC1) before joining the domain so DC2 can resolve your Active Directory domain. - Activate Windows.
- Join DC2 to the domain.
- Install Active Directory Domain Services (AD DS) and DNS.
- Promote to Domain Controller in the existing forest with Global Catalog and DSRM password.
5. Verification & Completion
- Verify that Active Directory replication is working (
repadmin /replsummary). - Verify that DNS resolution works across both DCs (
nslookup). - Configure the Hyper-V host's internal NIC DNS servers to
192.168.100.1(DC1) and192.168.100.2(DC2) before joining the host to the domain. - Join the Hyper-V Server to the domain.
- Install Remote Access on the Hyper-V host (or on a dedicated VPN VM in production for better isolation) and configure VPN only / RRAS.