Setting Up a HomeLab with VirtualBox: A Step-by-Step Guide

Setting Up a HomeLab with VirtualBox: A Step-by-Step Guide

Creating a HomeLab using VirtualBox is an excellent way to practice IT administration, networking, and cybersecurity. In this guide, I will walk you through setting up a Windows Server 2019 and a Windows 10 client, configuring Active Directory, and integrating the client into the domain.

Creating a HomeLab using VirtualBox is an excellent way to practice IT administration, networking, and cybersecurity. In this guide, I will walk you through setting up a Windows Server 2019 and a Windows 10 client, configuring Active Directory, and integrating the client into the domain.

Step 1: Download and Install VirtualBox

  1. Visit the VirtualBox website and download the latest version.
  2. Install VirtualBox by following the installation wizard.

Step 2: Download Windows Server 2019 Evaluation

  1. Download the Windows Server 2019 Evaluation ISO from Microsoft’s Evaluation Center.

Step 3: Create a Virtual Machine for Windows Server 2019

  1. Open VirtualBox and click on New.
  2. Set a name for the VM, e.g., DC.
  3. Select Microsoft Windows as the type and Windows Server 2019 (64-bit) as the version.
  4. Attach the ISO file downloaded in Step 2.
  5. Check Skip Unattended Installation.
  6. Click Next.

Step 4: Adjust Hardware Configuration

  1. Assign 2GB RAM and 2 CPUs.
  2. Set a Virtual Hard Disk of 50GB (recommended best practice).

Step 5: Finalize Virtual Machine Setup

  1. Review the summary and click Finish.
  2. Go to Tools > System and uncheck Floppy from the boot order, ensuring Optical and Hard Disk are prioritized.
  3. Navigate to the Network tab and set Adapter Attached to Bridged Adapter (connects the VM to your router for IP assignment).
  4. Click OK.

Step 6: Install Windows Server 2019

  1. Start the VM and proceed with the Windows installation.
Setting Up a HomeLab with VirtualBox: A Step-by-Step Guide
  1. Select Windows Server 2019 Datacenter Evaluation (Desktop Experience).
  2. Choose Custom Installation.
  3. Complete the installation process.

Step 7: Configure Windows Server 2019

  1. Set up a password for the administrator account.
  2. Right-click on Start > System.
  3. Rename the PC to match the server name chosen in Step 3.
  4. Restart the VM.

Step 8: Download and Set Up Windows 10 Evaluation VM

  1. Download Windows 10 Evaluation from Microsoft’s Evaluation Center.
  2. Create a new VM in VirtualBox, naming it Helpdesk.
  3. Attach the Windows 10 ISO.
  4. Skip Unattended Installation and click Next.
  5. Assign 2GB RAM, 2 CPUs, and 35GB Virtual Hard Disk.
  6. Start the VM and install Windows 10.

Step 9: Configure Windows 10

  1. Choose Domain Join Instead when setting up the user.
  2. Set Admin as the username, along with a password and security questions.
  3. Rename the PC to Helpdesk.

Step 10: Configure Active Directory on Windows Server 2019

  1. Start the DC VM.
  2. Open Server Manager > Manage > Add Roles and Features.
  3. Select Active Directory Domain Services.
  4. Click Next until you reach Confirmation, then click Install.
  5. Once installed, click Promote this Server to a Domain Controller.
  6. Choose Add a New Forest, setting the root domain as jobskillshare.org.
  7. Set NetBIOS domain name as JSS.
  8. Click Next through the installation process and let the server reboot.

Step 11: Verify Active Directory Installation

  1. Open Server Manager.
  2. Navigate to Tools > Active Directory Users and Computers.
  3. Verify that Active Directory is running.
Setting Up a HomeLab with VirtualBox: A Step-by-Step Guide

Step 12: Add Windows 10 Helpdesk Machine to the Active Directory

  1. Open Active Directory Users and Computers.
  2. Check the Computers section (should be empty).
Setting Up a HomeLab with VirtualBox: A Step-by-Step Guide
  1. On the Helpdesk machine:
    • Open System Properties.
    • Click Change.
    • Select Domain and enter jobskillshare.org.
Setting Up a HomeLab with VirtualBox: A Step-by-Step Guide
  1. Open Command Prompt on the Server and type:
ipconfig /all
  1. Note the IPv4 Address.
  2. On Helpdesk, go to Network & Internet > Change Adapter Options.
Setting Up a HomeLab with VirtualBox: A Step-by-Step Guide
  1. Open Ethernet Properties > IPv4 Properties and set the DNS server to the Domain Controller’s IP Address.
Setting Up a HomeLab with VirtualBox: A Step-by-Step Guide

Setting Up a HomeLab with VirtualBox: A Step-by-Step Guide
  1. Restart the machine.

Step 13: Create an Active Directory User

  1. Open Active Directory Users and Computers.
  2. Right-click on Users > New > User.
Setting Up a HomeLab with VirtualBox: A Step-by-Step Guide
  1. Enter details and set a password.
Setting Up a HomeLab with VirtualBox: A Step-by-Step Guide
  1. Uncheck User must change password at next logon.
  2. Right-click on the new user > Properties > Member Of > Add > Domain Admins.
Setting Up a HomeLab with VirtualBox: A Step-by-Step Guide

Setting Up a HomeLab with VirtualBox: A Step-by-Step Guide

Step 14: Verify Domain Connectivity

  1. Restart Helpdesk VM.
  2. Log in using the Active Directory credentials.
  3. Open Active Directory Users and Computers.
  4. Verify that Helpdesk is now a part of the domain.
Setting Up a HomeLab with VirtualBox: A Step-by-Step Guide

What are the system requirements for running VirtualBox?

You need at least 8GB of RAM and sufficient CPU cores to run multiple virtual machines efficiently.

Why use a bridged adapter instead of NAT?

A bridged adapter allows your VM to communicate with other devices on the network, making it act like a real machine on the same network.

How do I troubleshoot network connectivity issues between my virtual machines?

Check your VirtualBox network settings, ensure the correct adapter is selected, and confirm the DNS settings point to the domain controller.

Can I use a different version of Windows Server?

Yes, but the steps may vary slightly. It is recommended to use an evaluation version for learning purposes.

How can I back up my virtual machines?

You can create snapshots in VirtualBox or export the VM to an OVA file for backup and migration purposes.

Leave a Comment

Your email address will not be published. Required fields are marked *