Installing Active Directory on Windows Server on Virtual Machine (Home Lab) (Ep. 1)
Table of Contents
Introduction
This tutorial will guide you through the process of installing Active Directory on a Windows Server running in a virtual machine. This setup is ideal for practicing IT skills in a home lab environment. By following these steps, you'll be equipped to create a virtualized Active Directory setup using VMware Workstation and Windows Server 2022.
Step 1: Setting Up Your Environment
Before you start the installation, ensure you have the following software ready:
- VMware Workstation Pro: Download from VMware Workstation Pro.
- Windows Server 2022 ISO: Download from Microsoft Evaluation Center.
Practical Tip
- Make sure your system meets the hardware requirements for running a virtual machine efficiently.
Step 2: Installing VMware Workstation
- Run the VMware Workstation installer.
- Follow the on-screen instructions to complete the installation.
- Launch VMware Workstation after installation is finished.
Common Pitfall
- Ensure that virtualization is enabled in your BIOS settings for optimal performance.
Step 3: Creating a New Virtual Machine
- Open VMware Workstation.
- Click on "Create a New Virtual Machine."
- Select "Typical" and click "Next."
- Choose "Installer disc image file (iso)" and browse to the Windows Server 2022 ISO you downloaded.
- Click "Next," then select the operating system version (Windows Server 2022).
- Name your virtual machine and choose a location to store it.
- Allocate resources (CPU, Memory) based on your system capabilities.
- Finish the configuration and click "Finish."
Practical Tip
- Allocate at least 4GB of RAM and 2 CPUs for better performance during setup.
Step 4: Installing Windows Server on the Virtual Machine
- Power on the newly created VM.
- Follow the Windows Server installation prompts:
- Select the language, time, and keyboard layout.
- Click "Install now."
- Choose the edition of Windows Server you want to install.
- Accept the license terms and click "Next."
- Select "Custom: Install Windows only (advanced)."
- Choose the disk where you want to install Windows and click "Next."
Common Pitfall
- Make sure the virtual disk is properly formatted to avoid installation errors.
Step 5: Configuring Windows Server
- After installation, set up the administrator account with a strong password.
- Complete the initial configuration wizard.
Practical Tip
- Ensure Windows is updated after installation to avoid security vulnerabilities.
Step 6: Installing Active Directory
- Open the Server Manager.
- Click on "Add roles and features."
- Proceed through the wizard until you reach the "Server Roles" section.
- Check "Active Directory Domain Services" and follow the prompts to install.
Practical Tip
- Restart the server if prompted to finalize the installation.
Step 7: Basic Active Directory Setup
- After installation, click the notification flag in Server Manager.
- Select "Promote this server to a domain controller."
- Choose to add a new forest and enter your domain name (e.g.,
example.local
). - Set the Directory Services Restore Mode (DSRM) password.
- Follow the prompts and click "Install."
Common Pitfall
- Make sure to remember the DSRM password; you will need it for recovery.
Step 8: Creating Organizational Units (OUs)
- Open Active Directory Users and Computers from the Tools menu in Server Manager.
- Right-click your domain and select "New" > "Organizational Unit."
- Name the OU (e.g., "Sales").
Step 9: Creating Groups
- Right-click on the OU where you want the group.
- Select "New" > "Group."
- Name the group and set the scope (e.g., Global, Domain Local) and type (e.g., Security).
Group Scope Explanation
- Global: Used to grant access to resources in the same domain.
- Domain Local: Used for access to resources in the domain.
Group Type Explanation
- Security Groups: Used to assign permissions.
- Distribution Groups: Used for email distribution lists.
Step 10: Creating Users
- Right-click the OU or group where you want to create a user.
- Select "New" > "User."
- Enter the user’s first name, last name, and logon name.
- Set a password and configure options as needed.
Conclusion
By following these steps, you have successfully installed Active Directory on a Windows Server in a virtual machine. This setup provides a solid foundation for practicing IT skills, such as user and group management. In future tutorials, you can explore more advanced AD configurations and features. Stay tuned for more home lab projects!