How to Set Up a Virtual Lab with VirtualBox or Hyper-V
Build a practice network of virtual machines on one PC: choose between VirtualBox and Hyper-V, set up isolated networks, use snapshots, and plan the memory.
3 min readBy Swati
Reviewed by the AmazingRDP technical team

A lab too big for your PC? A dedicated server can run Hyper-V or another hypervisor with many virtual machines. See Cheap Dedicated Servers from $38.99
A virtual lab is a set of virtual machines on one computer, connected by a network that exists only inside it. It is where you practise what you would not dare on real systems: build a Windows domain, break a Linux server, test an upgrade. Two free tools cover almost every need.
VirtualBox or Hyper-V?
| VirtualBox | Hyper-V | |
|---|---|---|
| Runs on | Windows, macOS, Linux | Windows 10 and 11 Pro, Enterprise, Education; Windows Server |
| Cost | Free | Included in those Windows editions |
| Ease for beginners | Easier: one window, simple USB and shared folders | More technical |
| Speed with Windows guests | Good | Very good |
| Automation | VBoxManage, Vagrant | PowerShell, built in |
| Choose it when | You are starting out, or not on Windows Pro | You work with Windows Server and want what companies run |
Running both on one PC works on current versions, with VirtualBox slower while Hyper-V is switched on. Pick one.
Before you start
- Memory decides the size of the lab. Add up what the machines need and leave 4 GB for your own system. 16 GB runs three or four small machines; 32 GB is comfortable.
- An SSD with 100 GB or more free.
- Virtualisation switched on in the PC's firmware settings.
- Installer images (ISO) from the makers' sites. Microsoft offers evaluation editions of Windows Server and Windows Enterprise. See operating systems to try in a virtual machine.
Set up in VirtualBox
- Install VirtualBox from virtualbox.org.
- Click New, name the machine, choose the ISO, and set memory, processors and disk size.
- Under Settings, Network, choose how the machine is connected (table below).
- Start it and install the system. Afterwards install the Guest Additions from the Devices menu.
- Take a snapshot of the clean installation.
Set up in Hyper-V
Switch the feature on: open Turn Windows features on or off, tick Hyper-V, and restart.

Or in PowerShell as administrator: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All.
- Open Hyper-V Manager and create a switch under Virtual Switch Manager (table below).
- Choose New, Virtual Machine. Pick Generation 2 for current systems, set the memory, connect the switch, and attach the ISO.
- Start the machine and install. Take a checkpoint when it is clean.
The networks
| You want | VirtualBox | Hyper-V |
|---|---|---|
| Machines reach the internet; nothing reaches them | NAT | Default Switch |
| Machines see each other only; no internet | Internal Network | Private switch |
| Machines and your PC see each other; no internet | Host-only Adapter | Internal switch |
| Machines appear on your real network | Bridged Adapter | External switch |
For a lab, use an isolated network for the machines' own traffic. A lab domain controller or DHCP server on your real network can disturb every other device on it. A machine may have two adapters: one isolated, one NAT for updates.
A first lab worth building
| Machine | Role | Memory |
|---|---|---|
| Windows Server | Domain controller, DNS, DHCP | 4 GB |
| Windows 11 | A PC joined to the domain | 4 GB |
| Ubuntu Server | A web server, or a machine to manage over SSH | 1 to 2 GB |
Habits that save time
- Snapshot before every experiment, and delete old snapshots; they grow.
- Keep one clean machine of each system and clone it in place of reinstalling.
- Give machines fixed addresses and write them down.
- Shut machines down when you are done; a suspended lab still holds disk space and, when resumed, memory.
When the PC is too small
A VPS is itself a virtual machine and normally cannot run others inside it. A dedicated server can: install Hyper-V or another hypervisor on it and reach the lab from anywhere. Related: Windows Server vs Linux server.
Questions
What is a virtual lab?
A set of virtual machines on one computer, joined by a private network, used for practice and testing.
Is VirtualBox or Hyper-V better for a home lab?
VirtualBox is easier and runs on every system. Hyper-V is faster with Windows guests and closer to what companies run.
How much RAM do I need for a virtual lab?
16 GB for three or four small machines; 32 GB for a comfortable lab.
Can I run virtual machines inside a VPS?
Normally not. For that you need a dedicated server.