Installing VMware ESXi inside a VirtualBox virtual machine is a common setup for learning, testing, and lab environments. It allows you to experiment with ESXi without dedicating a physical server. However, because ESXi itself is a bare-metal hypervisor, running it inside another hypervisor requires some extra configuration.
The good news is that with the right settings enabled, ESXi works reliably inside VirtualBox for practice and non-production use.
Install VMware ESXi on a VirtualBox VM
The steps below walk you through the complete process, from preparing VirtualBox to successfully booting and installing ESXi. We recommend following them in order, as ESXi is very strict about virtualization requirements.
1. Enable Hardware Virtualization on Your PC
Before touching VirtualBox, you need to make sure your system supports nested virtualization.
- Restart your PC and enter BIOS/UEFI settings.
- Locate CPU or Advanced settings.
- Enable Intel VT-x or AMD-V (SVM), depending on your processor.
- Save changes and boot back into Windows.
- In Windows, open Task Manager and confirm virtualization is enabled.
Without hardware virtualization, ESXi will not boot inside VirtualBox.
2. Install and Update VirtualBox
You must use a recent version of VirtualBox to ensure proper nested virtualization support.
- Download and install VirtualBox from the official website.
- Install the matching Extension Pack for the same version.
- Restart your PC after installation.
Keeping VirtualBox updated reduces boot and compatibility issues with ESXi.
3. Create a New Virtual Machine for ESXi
Now you’ll create the VM that will host ESXi.
- Open VirtualBox and click New.
- Name the VM (for example, ESXi Lab).
- Set Type to Other.
- Set Version to Other/Unknown (64-bit).
- Allocate at least 4 GB RAM (8 GB recommended).
- Assign 2 or more CPU cores.
ESXi needs adequate CPU and memory to complete installation and boot properly.
4. Configure Processor and Nested Virtualization
This is the most important step for running ESXi inside VirtualBox.
- Select the VM and click Settings.
- Go to System > Processor.
- Increase CPU cores to at least 2.
- Check Enable PAE/NX.
- Enable Nested VT-x/AMD-V.
- Go to System > Motherboard and enable EFI.
Without nested virtualization, ESXi will fail with CPU or VT-x errors.
5. Configure Storage and Network
Proper storage and networking settings help ESXi detect hardware correctly.
- In Settings > Storage, attach the ESXi ISO as an optical disk.
- Use a VDI or VMDK disk with at least 40 GB size.
- In Network, select Bridged Adapter (recommended for lab access).
- Choose your active network interface.
Bridged networking allows you to access ESXi via browser later.
6. Apply Required VBoxManage Commands
ESXi requires specific CPU identifiers that VirtualBox doesn’t expose by default.
- Close VirtualBox completely.
- Open Command Prompt as Administrator.
- Run the following commands (replace VM name if needed):
VBoxManage modifyvm "ESXi Lab" --cpu-profile "Intel Core i7-6700K" - Restart VirtualBox.
This step prevents ESXi from failing CPU compatibility checks.
7. Start the VM and Install ESXi
You’re now ready to install ESXi inside the VM.
- Start the VirtualBox VM.
- When the ESXi installer loads, press Enter to begin.
- Accept the license agreement.
- Select the virtual disk as the installation target.
- Choose keyboard layout and set a root password.
- Complete installation and reboot the VM.
- Remove the ESXi ISO when prompted.
After reboot, ESXi should load successfully.
8. Access ESXi Web Interface
Once ESXi boots, you can manage it from a browser.
- Note the IP address shown on the ESXi console.
- Open a browser on your host PC.
- Enter the IP address in the address bar.
- Log in using root and the password you created.
You now have a fully functional VMware ESXi lab running inside VirtualBox.
Wrapping Up
Installing ESXi on a VirtualBox VM is an excellent way to learn virtualization, test configurations, and build a home lab without dedicated hardware. While the setup requires extra steps like enabling nested virtualization and applying CPU profiles, the end result is well worth it.
Keep in mind that this setup is intended for testing and learning only, not production use. Once everything is configured correctly, ESXi runs surprisingly well inside VirtualBox and gives you hands-on experience with enterprise-grade virtualization from a single PC.