Tutorial: Nested ESXi 8 Instance with VMware on Linux

Abstract: Resolves the inability to run nested ESXi 8 on Linux by configuring VMware Workstation with specific CPU flags and hardware settings.

Created: 2026-10-13 by
Setting up a nested ESXi 8 environment on Linux allows for robust testing of vSphere features without dedicated bare-metal hardware. By configuring the host VM with specific CPU flags and hardware versions, you can successfully run VMware Workstation or Player to host an ESXi guest. This guide details the precise configuration steps required to enable virtualization extensions within the virtual machine.

Prerequisites and Host Configuration

Before installing ESXi, your Linux host must meet specific requirements to support nested virtualization. The most critical requirement is that the physical CPU supports hardware virtualization (Intel VT-x or AMD-V) and that this feature is enabled in the BIOS/UEFI settings. On the Linux side, you need a virtualization platform capable of exposing these capabilities to guests. VMware Workstation Pro or Player on Linux is the standard choice for this tutorial. Ensure you have at least 16GB of RAM available for the host system, as ESXi itself requires approximately 4-8GB, leaving room for other test VMs. Additionally, allocate sufficient disk space; a minimal ESXi installation consumes about 30GB, but allocating 60-100GB is recommended for snapshots and additional workloads. The Linux host should be updated to ensure compatibility with the latest VMware releases. If you are using Ubuntu or Debian-based systems, install the necessary kernel headers and development tools to compile any required modules. For RHEL or CentOS derivatives, ensure the EPEL repository is enabled. It is also advisable to check if KVM/QEMU is running in the background, as it can sometimes conflict with VMware’s access to hardware virtualization extensions. Stopping and disabling the libvirtd service temporarily during the setup process can prevent resource contention.

Creating the Nested Virtual Machine

Launch VMware Workstation or Player on your Linux host and create a new virtual machine. Select "Custom (advanced)" rather than the typical wizard to gain full control over the hardware parameters. When prompted for the guest operating system, choose "VMware ESXi" if available in the dropdown menu. If not, select "Other" and then "Linux" with version 6.x-10.x Kernel based. This ensures the virtual hardware profile is appropriate for server-grade OS installations. During the hardware customization phase, you must configure the processor settings carefully. Assign at least two cores to the VM to allow ESXi to function correctly, though four cores provide better performance for management tasks. Crucially, you must enable "Virtualize Intel VT-x/EPT or AMD-V/RVI" in the processor options. Without this flag, the ESXi installer will fail because it cannot detect the necessary hardware-assisted virtualization features. Also, ensure that "Virtualize CPU Performance Counters" is checked if your host CPU supports it, as this can improve stability. For memory allocation, assign 8GB of RAM to the nested ESXi VM. While 4GB is the minimum, modern ESXi installations with basic services like vCenter Agent or logging can struggle with less memory. Set the network adapter to "NAT" or "Host-only" mode initially to isolate the nested environment from your primary network, preventing IP conflicts. You can change this later once the networking stack is configured.

Installing ESXi 8

Attach the ESXi 8 ISO image to the virtual CD/DVD drive. Boot the VM and proceed through the initial installation screens. Accept the license agreement and select the virtual disk created earlier. During the installation, you may encounter warnings about unsupported hardware; since this is a nested environment, these warnings are expected and can be safely ignored by pressing Enter. Once the installation completes, reboot the VM. The first boot will present the ESXi shell interface. Press F2 to customize the system and set a root password. Note that the default console timeout is short; increase it in the troubleshooting options if you need more time to type commands. After setting the password, navigate to the Network Adapters section to verify the MAC address and port group assignments. For a basic setup, leave the default VLAN ID as 0. Exit the shell and press Alt+F1 to access the command line if needed. Verify that the management network has obtained an IP address via DHCP. If you prefer a static IP, use the DCUI (Direct Console User Interface) to configure the network settings manually. Remember the IP address displayed on the screen, as you will need it to access the web interface.

Accessing and Configuring the Management Interface

Open a web browser on your Linux host and navigate to https://. You will see a security warning because the self-signed certificate is not trusted; proceed anyway. Log in with the root credentials you created during installation. The HTML5 Web Client will load, providing access to all vSphere features. From here, you can upload VM templates, create virtual machines, and configure storage. If you plan to connect this nested ESXi to a real vCenter Server, ensure that the time synchronization is correct and that DNS resolution works properly. Refer to our guide on VMWare 17 Player Linux NAT guest can ping but cannot resolve DNS names if you encounter name resolution issues within the nested environment. Proper DNS configuration is essential for domain joining and certificate validation. You can now deploy test VMs inside ESXi to validate your nested setup. Create a simple Linux or Windows VM and verify that it boots and receives network connectivity. This confirms that the nested virtualization chain is functioning correctly from the Linux host down to the guest OS.

Troubleshooting Common Issues

If the ESXi installer fails to detect the hard drive, ensure that the virtual disk controller is set to SATA or NVMe rather than SCSI, although modern ESXi supports both. Performance might be sluggish if CPU pinning is not configured correctly on the host. Check the host’s CPU usage while the nested VM is running; high utilization indicates a bottleneck. Network connectivity issues often stem from incorrect VLAN tagging or firewall rules on the Linux host. Ensure that iptables or nftables are not blocking traffic between the bridge interfaces used by VMware. If you experience intermittent disconnections, try switching the network adapter type from E1000 to VMXNET3 after installing the VMware Tools drivers inside ESXi.

Frequently Asked Questions

Can I run nested ESXi on a Linux host using KVM instead of VMware?

Yes, but it requires passing through CPU flags explicitly using QEMU arguments. You must add "-cpu host" and enable nested virtualization in the kernel module parameters for KVM. This method is more complex to configure than using VMware Workstation on Linux.

Why does my nested ESXi VM crash during boot?

Crashes usually indicate insufficient memory allocation or disabled hardware virtualization extensions. Ensure the VM has at least 8GB of RAM and that the "Virtualize Intel VT-x" option is enabled in the VM settings. Check the VMware logs for specific error codes related to CPU exceptions.

How do I update ESXi 8 in a nested environment?

You can use the vSphere CLI or the Update Manager to apply patches. Download the ESXi patch bundle and upload it to a datastore accessible by the host. Then, place the host in maintenance mode and execute the upgrade command via the command line or web interface.

Is it possible to connect nested ESXi to a physical vCenter?

Yes, provided that network routing and DNS resolution are correctly configured between the nested host and the vCenter server. The nested ESXi must be able to reach the vCenter API endpoints, and time synchronization must be accurate to avoid authentication failures.

What are the performance implications of nested virtualization?

Nested virtualization incurs a significant performance overhead due to double context switching. Expect reduced I/O throughput and slower VM creation times compared to bare-metal deployments. It is suitable for functional testing but not for production workloads or stress testing.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More