To truly simulate an enterprise network environment in your home laboratory, deploying a Windows Server with Active Directory Domain Services (AD DS) is mandatory. Active Directory acts as the centralized nervous system for network authentication, Group Policy enforcement, and domain management. Whether you are practicing system administration or executing penetration testing with Kali Linux, a functional domain controller is the ultimate target and defender.
In this comprehensive guide, we will walk through provisioning a Windows Server virtual machine within our Proxmox environment, attaching it to our isolated vmbr1 network (behind our pfSense firewall), and promoting it to a fully functional Primary Domain Controller (PDC).
Step 1: Provisioning the Windows Server VM in Proxmox
Before installing the operating system, we must configure the virtual hardware to support Windows Server optimally.
- Create the VM: In the Proxmox Web GUI, click Create VM. Name it
WinServer-DCand select your uploaded Windows Server ISO in the OS tab. - System and Disks: Enable the Qemu Agent. For the Hard Disk, allocate at least 50GB. Change the Bus/Device to SATA or IDE (unless you plan to load VirtIO drivers during installation).
- CPU and Memory: Allocate 2 to 4 cores and at least 4096 MB (4GB) of RAM to ensure smooth operation of the GUI and AD DS services.
- Network: Connect the network device exclusively to your isolated bridge (
vmbr1) so the server is protected behind your pfSense firewall.
Step 2: OS Installation and Initial Configuration
Boot the VM and proceed with the standard Windows Server installation, selecting the Desktop Experience version unless you are comfortable managing the server entirely via PowerShell. Once installed, log in with the local Administrator account.
Before installing any roles, the server requires two critical configurations:
- Rename the PC: Open Server Manager, click on Local Server, and change the Computer Name to something identifiable, such as
DC01. Restart the server. - Assign a Static IP: Active Directory relies heavily on DNS, which requires a static IP. Navigate to the Network Connections panel, open the IPv4 properties, and assign a static IP within your pfSense LAN subnet (e.g.,
192.168.1.10). Set the Preferred DNS Server to point to itself (127.0.0.1).
Step 3: Installing the Active Directory Domain Services Role
With the baseline configuration complete, we can install the necessary server roles.
- Open Server Manager and click Add roles and features.
- Select Role-based or feature-based installation and choose your local server (
DC01) from the pool. - In the Server Roles list, check the box for Active Directory Domain Services. A prompt will appear asking to add required features; click Add Features.
- Click Next through the remaining screens and hit Install. Wait for the binary installation to complete.
Step 4: Promoting the Server to a Domain Controller
Installing AD DS only places the tools on the server. You must now configure the domain.
- In Server Manager, look for the yellow warning triangle at the top. Click it and select Promote this server to a domain controller.
- Since this is a fresh lab, select Add a new forest. Enter a Root domain name (e.g.,
kasbatech.local). - Leave the Forest and Domain functional levels at their defaults. Enter a strong Directory Services Restore Mode (DSRM) password.
- Skip the DNS delegation warning, accept the default NetBIOS name (e.g.,
KASBATECH), and leave the database paths at their default locations (C:\Windows\NTDS). - Review your selections, wait for the prerequisites check to pass, and click Install. The server will automatically reboot upon completion.
Conclusion and Next Steps
When the server reboots, you will notice the login screen now prompts you to sign into the domain (e.g., KASBATECH\Administrator). You now have a fully functional Active Directory Domain Controller running securely within your Proxmox environment.
From here, you can open Active Directory Users and Computers to begin creating organizational units (OUs), provisioning test user accounts, and utilizing Group Policy Objects (GPOs) to enforce security settings across your virtual network.

