In short
To build a VMware lab, install ESXi on a server that supports nested virtualization, deploy the vCenter Server Appliance (VCSA) at Tiny size on top of it, and run two or three nested ESXi hosts on an internal network. Add a lightweight NFS server for shared storage and prepare DNS records in advance. With this setup, you can practice vMotion, HA, DRS and distributed switch scenarios on a single server.
In this guide
The most practical way to build a VMware lab is to install ESXi on a single server that supports nested virtualization, deploy the vCenter Server Appliance (VCSA) on top of it, and run several virtual ESXi hosts on an internal network. That way, you can get hands-on with clusters, vMotion, HA and DRS without buying multiple physical servers, switches and storage devices. This guide covers the whole process, from resource planning and IP layout to installation steps and exam-focused lab scenarios.
Lab architecture: what goes where?
The setup we recommend has three layers. If nested virtualization is new to you, start with our article what is nested virtualization.
- Outer ESXi (L1): The ESXi installed on the nested VDS. All lab virtual machines run on it.
- Infrastructure VMs: The vCenter Server Appliance, a router/VPN virtual machine that serves as the gateway to the internal network (Linux, pfSense or OPNsense), and a lightweight Linux server providing DNS and NFS.
- Nested ESXi hosts (L2): Two or three virtual ESXi hosts that you add to vCenter and build a cluster with.
Sunucu Atlas's E5-2697V2 Nested VDS plans list "vCenter and ESXi installation" in the catalog, so you can receive the outer ESXi layer ready to go and move straight to lab design. We recommend confirming which ESXi version will be installed in a support ticket after you order.
Resource planning
RAM is where labs most often hit a wall. Even at its smallest (Tiny) size, the vCenter Server Appliance needs about 14 GB of memory, and each ESXi install requires at least 8 GB of RAM per host. Use the table below as a guideline:
| Virtual machine | vCPU | RAM | Disk (thin) |
|---|---|---|---|
| vCenter Server Appliance (Tiny) | 2 | 14 GB | Actual usage is much lower with thin deployment |
| Nested ESXi × 2 | 4 each | 8 GB each (for installation) | 32 GB boot + data disk each |
| Router / VPN VM | 1 | 1 GB | 8 GB |
| DNS + NFS Linux VM | 1 | 1-2 GB | 100 GB+ (shared datastore) |
This layout needs around 30 GB of RAM in total. E5-2697V2 Nested - 2, with 24 vCPUs, 32 GB of RAM and 400 GB of SSD, is enough for a two-host cluster; to leave room for the outer ESXi's own memory needs, lowering the nested hosts' memory after installation is a common lab practice (it is not an officially supported configuration). If you're planning a three-host cluster, vSAN or extra Windows-based VMs, E5-2697V2 Nested - 3 with 64 GB of RAM gives you much more headroom.
IP and network plan
Nested VDS plans come with 3 IPs. Our recommendation for a secure, well-organized lab:
| Address | Use |
|---|---|
| Public IP 1 | Outer ESXi management (open only to your IP) |
| Public IP 2 | WAN interface of the router/VPN VM; entry point to the lab |
| Public IP 3 | Spare: a service to expose for demos |
| 192.168.10.0/24 | Management network: vCenter, nested ESXi hosts, DNS/NFS |
| 192.168.20.0/24 | vMotion network |
| 192.168.30.0/24 | Storage (NFS/iSCSI) network |
Rather than exposing vCenter to the internet, the safest approach is to keep it on the internal network and reach it over a VPN (WireGuard or OpenVPN). Ask the support team whether the additional IPs are delivered to your server as routed or bridged (MAC-based); the router VM's WAN configuration depends on it.
Get DNS right from the start
Missing DNS records are the most common reason a vCenter install fails. Create both forward (A) and reverse (PTR) records for every component. A simple example with dnsmasq on the Linux VM:
# /etc/dnsmasq.d/lab.conf
domain=lab.ornekfirma.com
local=/lab.ornekfirma.com/
host-record=vcsa.lab.ornekfirma.com,192.168.10.10
host-record=esxi01.lab.ornekfirma.com,192.168.10.21
host-record=esxi02.lab.ornekfirma.com,192.168.10.22
host-record=nfs.lab.ornekfirma.com,192.168.10.5
host-record lines generate the reverse record automatically. To check, nslookup 192.168.10.10 should return vcsa.lab.ornekfirma.com. Because the .local suffix can conflict with mDNS, it is safer to use a subdomain of a domain you own.
Step-by-step setup
1. Prepare the outer ESXi
- Log in to the ESXi Host Client (
https://ESXI-IP/ui) and change the root password. - Under Networking > Virtual switches, create a new standard switch for the internal lab (e.g.
vSwitch1, with no physical uplink) and the port groupsLAB-MGMT,LAB-VMOTIONandLAB-STORAGE. - Enable the security settings on this switch so nested ESXi traffic can pass. Over SSH:
esxcli network vswitch standard policy security set \
-v vSwitch1 --allow-promiscuous=true \
--allow-forged-transmits=true --allow-mac-change=true
2. Set up the router/VPN and DNS/NFS VMs
Give the router VM two network adapters: one on the public network (IP 2) and one on the LAB-MGMT port group. Configure NAT and WireGuard. Then install the DNS/NFS Linux VM and create the NFS share:
sudo apt install -y nfs-kernel-server
sudo mkdir -p /srv/nfs/ds01
echo "/srv/nfs/ds01 192.168.10.0/24(rw,no_root_squash,sync,no_subtree_check)" | sudo tee -a /etc/exports
sudo exportfs -ra
no_root_squash is required because ESXi writes to the NFS datastore as root.
3. Create the nested ESXi hosts
- When creating the new VM, choose Other as the guest OS family and VMware ESXi as the version.
- In the CPU settings, check Expose hardware assisted virtualization to the guest OS. This is required for the nested ESXi to run VMs of its own.
- Add network adapters as
VMXNET3and connect them to theLAB-MGMT,LAB-VMOTIONandLAB-STORAGEport groups. - Mount the ESXi ISO and complete the installation; set a static IP, DNS server and FQDN in the DCUI.
4. Deploy the vCenter Server Appliance
Mount the VCSA installer ISO on your own computer and run the installer for your operating system from the vcsa-ui-installer folder. ISO and license access for VMware products is managed through the Broadcom support portal; for details, see the official VMware (Broadcom) documentation.
- Stage 1 (Deploy): Point it to the outer ESXi as the target, set the VM name and root password, and choose Tiny as the size and Thin as the disk mode. In network settings, enter
vcsa.lab.ornekfirma.comas the FQDN and192.168.10.10as the IP. - Stage 2 (Setup): Choose NTP or host time synchronization, enable SSH, and leave the SSO domain as
vsphere.local. - When the install finishes, open the vSphere Client at
https://vcsa.lab.ornekfirma.comand the appliance management interface on port:5480.
If you'll be reinstalling often, you can deploy from the command line with the JSON templates in the vcsa-cli-installer folder instead of the GUI:
vcsa-deploy install --accept-eula --acknowledge-ceip \
--no-ssl-certificate-verification embedded_vCSA_on_ESXi.json
5. Create the cluster
- In the vSphere Client, create a Datacenter and a Cluster under it.
- Add the
esxi01andesxi02hosts to the cluster. - On each host, create a separate VMkernel adapter for vMotion (192.168.20.0/24).
- Mount the NFS share on both hosts as a datastore with the same name.
Lab scenarios for certification exam prep
Reading alone isn't enough when you're preparing for vSphere certifications like VCP-DCV. Work through these scenarios in your lab, in order:
- vMotion and Storage vMotion: Migrate a small running Linux VM between hosts and datastores.
- vSphere HA: Power off a nested host and watch the VMs restart on the other host.
- DRS and resource pools: Experiment with reservation, limit and share values.
- Distributed Switch: Migrate from a standard switch to a vDS without losing the management network.
- Templates and Content Library: Build a template and clone it with guest customization.
- User and role management: Create users in SSO and assign roles following the principle of least privilege.
- Backup and updates: Take a file-based VCSA backup, then try an appliance update from the
:5480interface.
Tip: Once you've built a clean cluster, snapshot all the infrastructure VMs. When you break a scenario, you're back at the starting point within minutes.
In evaluation mode, ESXi and vCenter run with all features for 60 days; that's usually enough for exam prep.
Common mistakes
- Nested VMs have no network access: Promiscuous mode and forged transmits are disabled on the port group.
- vCenter stalls at Stage 2: The reverse DNS record is missing or time synchronization is inconsistent.
- VMs won't start inside the nested ESXi: The "Expose hardware assisted virtualization" option isn't checked.
- The datastore is filling up: Snapshots have piled up; consolidate them regularly.
Keeping your lab efficient over time
Use resources wisely and you can run many more scenarios on the same server. Keep the VMs for scenarios you aren't working on powered off; a powered-off VM only uses disk. Use thin provisioning on every disk, and for test VMs prefer lightweight Linux distributions or small test appliances over a full Windows install. When a scenario is done, delete its snapshots and clean up the datastore. Back up the vCenter configuration regularly from the appliance management interface and store the backup outside the lab; that way, even if something goes wrong with the outer ESXi, you can rebuild your cluster design within minutes.
Build your lab today
For a two-host vSphere cluster, E5-2697V2 Nested - 2, with 24 vCPUs and 32 GB of RAM, is a balanced choice; for bigger scenarios, you can compare the other E5-2697V2 Nested VDS plans in the same family. If you can't decide between the two platforms, our Xeon E5-2697V2 vs. Ryzen 9 5950X comparison will help. ESXi and vCenter installation is listed in the catalog for Sunucu Atlas plans; for any installation questions, you can open a support ticket.
Frequently asked questions
How much RAM do I need for a VMware lab?
The vCenter Server Appliance needs about 14 GB at Tiny size, and each nested ESXi install needs at least 8 GB. 32 GB is the minimum for a simple two-host cluster; 64 GB is recommended for three hosts, vSAN or extra Windows VMs.
Why does the vCenter install fail at Stage 2?
The most common causes are a missing reverse (PTR) DNS record or a time mismatch. Before you start the install, use nslookup to confirm that the FQDN resolves to the IP and the IP resolves back to the FQDN.
Why can't the virtual machines inside a nested ESXi reach the network?
If promiscuous mode, forged transmits and MAC address changes are disabled on the outer ESXi's port group, nested VM traffic is dropped. Set all three to Accept on the lab switch.
Can I build a VMware lab without a license?
After installation, ESXi and vCenter run with all features in a 60-day evaluation mode. When that period ends, you need to enter a license or rebuild the lab.
Is it safe to expose vCenter to the internet?
It isn't recommended. Keeping the vCenter and ESXi management interfaces on the internal network and accessing them through a VPN or IP restrictions protects your lab from automated scans and attacks.