How to Create a Virtual Machine Test Lab on VMware Workstation
and Step-by-Step Guide: Installing Windows Server 2022 Datacenter on it.
Creating a virtual test lab or a single VM is one of the best ways to practice enterprise IT concepts such as Active Directory (Domain Infrastructure), DNS, DHCP, IIS, WDS, MDT, SCCM, Group Policy, and more.
In this guide, we’ll create a Virtual Machine (VM) on VMware Workstation 17 Pro step by step. We’ll then walk through installing and configuring Windows Server 2022 Datacenter on this VM.
1. Download and Install VMware Workstation Pro.
You can create a single VM or a virtual test lab for practice using VMware Workstation. The Pro version is available for free on the Broadcom website. You can download it here by signing in or creating an account.
System Requirements (recommended for smooth lab practice)-
i. 8‑core vCPU
ii. 16–32 GB RAM
iii. SSD storage (at least 100 GB free)
- Download the VMware Workstation setup
- Run the setup and follow the installation wizard.
- Restart your system if prompted.
We’re now ready to create a VM for our test lab. If you’d like to watch a step‑by‑step walkthrough of these steps, please visit our YouTube Video.
2. Create a New Virtual Machine on VMware Workstation Pro.
On VMware Workstation, you can create virtual machines for a wide range of operating systems, including Windows, Linux/Ubuntu, macOS, and even VMware ESXi. In this guide, we’ll focus on creating a VM for Windows Server 2022 Datacenter.Steps:-
- Open VMware Workstation → Click Create a New Virtual Machine.

- Choose Typical (recommended) or Custom (for advanced configuration).
- Select Installer disc image (ISO) → Browse and select the Windows Server 2022 ISO (Or you can select later in VM settings).
- Enter your username and password (optional) for automated installation.
- Configure hardware:
- Memory: 2-4 GB
- Processors: 2–8 cores
- Disk Size: 60–80 GB (single file recommended)
- Network Adapter: Do not use, we will configure it later.
- Review settings → Click Finish.

- Open VMware Workstation → Click Create a New Virtual Machine.
The VM will be created with the specified configuration.
3. Install Windows Server 2022 on VM created above.
We already selected the Windows Server 2022 ISO during VM creation. If not, you can click Edit VM Settings and select the ISO under the CD/DVD device option. If the ISO is not available, you can download it directly from the Microsoft website.
- Start the above created VM.
- The VM will boot from the ISO we selected and begin installation.

- Win Server 2022 Installation is fully automated.

- The VM will reboot 2–3 times.

- Once installation Setup is completed, log in with the credentials you provided.
4. Install VMware Tools
VMware Tools is a lightweight utility that enhances performance and improves integration between the host and guest operating systems in VMware virtual machines.
Benefits include:
- Better display resolution
- Clipboard sharing (copy/paste between host and VM)
- Improved network and disk performance
Steps:-
- The installation begin automatically after login, If not go to VM Menu→ Install VMware Tools.

- Follow the wizard and restart the VM when prompt.
- The installation begin automatically after login, If not go to VM Menu→ Install VMware Tools.
5. Configure Networking on Virtual Machine
For a test lab or VM, a private network is recommended. If communication between the host and guest is required, we can configure both a private network and a host-only network.
- Shut down the VM.
- Go to VM Settings → Add Network Adapter.
- Select Host-only or Custom: Specific Virtual Network → OK.

- Start the VM again.
- Configure static IP on Server/VM:
- Open ncpa.cpl → Network Adapter Properties → IPv4 → Properties
- Select Use the following IP address
- Put the IP details.
- Example configuration:-
- IP:
192.168.10.10 - Subnet:
255.255.255.0 - Gateway: Leave blank (for isolated lab)

- Once done, click OK → Close.
The base VM is ready, It can be used for clone or create additional VMs for different roles.
Pro Tip: Use VMware’s Snapshot feature to save the VM state before making major changes. Snapshots make it easy to roll back if something goes wrong.
We have successfully created a Windows Server 2022 VM on VMware Workstation Pro, configured with a host-only private network. This setup is now ready for lab practice and testing.








