WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
    • VMware Cloud Foundation 9.1
    • VMware Cloud Foundation 9.0
  • VKS
  • Homelab
    • Hardware Options
    • Hardware Reviews
    • Lab Deployment Scripts
    • Nested Virtualization
    • Homelab Podcasts
  • VMware Nostalgia
  • Apple

Search Results for: guest operations

Nested

Here is a consolidated page on all the articles that I have written about Nested Virtualization.

All Nested ESXi Virtual Appliances

  • Free Flings on Broadcom Support Portal (BSP)
  • License Entitlement Flings on Broadcom Support Portal (BSP)

Installing ESX / ESXi in VM

  • Refresher on Nested ESXi Networking Requirements
  • How to install all versions of ESX and ESXi in VM?

VMware Cloud Foundation

  • Automated Lab Deployment for VCF 9.0
  • Automated Lab Deployment for VVF 9.0
  • Automated Lab Deployment for VCF 5.1
  • Automated VCF Workload Domain deployment using PowerVCF
  • Custom vSAN HCL JSON for VCF 5.1 and vSAN ESA using Nested ESXi

VMware Cloud

  • Automated Nested Lab Deployment on SDDC Part 1: VMware Cloud on AWS
  • Automated Nested Lab Deployment on SDDC Part 2: Azure VMware Solution
  • Automated Nested Lab Deployment on SDDC Part 3: Google Cloud VMware Engine
  • Automated Nested Lab Deployment on SDDC Part 4: Oracle Cloud VMware Solution
  • Nested ESXi on VMware Cloud on AWS (VMC)
  • ESX 3.x on VMware Cloud on AWS? 

vSphere 8.0

  • vSphere & vSAN 8 Lab Deployment Script
  • Enabling vSAN 8 Express Storage Architecture (ESA) using Nested ESXi

vSphere 7.0

  • Simplified Nested ESXi installation in ESXi 7.0 Update 2 using HTTP Boot over VirtualEFI
  • Heads Up - Nested ESXi crashes in ESXi 7.0 running on older CPUs

vSphere 6.7

  • Native MAC Learning in vSphere 6.7 removes the need for Promiscuous mode for Nested ESXi
  • Nested ESXi 6.7 Virtual Appliance Updates
  • Leveraging Instant Clone in vSphere 6.7 for extremely fast Nested ESXi provisioning

vSphere 6.5

  • Nested ESXi Enhancements in vSphere 6.5
  • Virtual NVMe and Nested ESXi 6.5?
  • ESXi 6.5 Virtual Appliance is now available
  • vGhetto Automated vSphere Lab Deployment for vSphere 6.0u2 & vSphere 6.5
  • ESXi Learnswitch – Enhancement to the ESXi MAC Learn DvFilter
  • Updated Nested ESXi 6.0u3, 6.5d & 6.5u1 Virtual Appliances
  • New Nested ESXi 6.x Content Library

vSphere 6.0

  • How to configure an All-Flash VSAN 6.0 Configuration using Nested ESXi?
  • Updated VSAN 6.0 Nested ESXi OVF Templates for 64 Nodes, All-Flash Array & Fault Domain Testing
  • How to configure SMP-FT using Nested ESXi in vSphere 6?
  • VMware Tools is now pre-installed with Nested ESXi 6.0
  • Quick Tip – Upgrading VMware Tools for Nested ESXi 6.0
  • Subscribe to vGhetto Nested ESXi Template Content Library in vSphere 6.0
  • How to VMFork aka Instant Clone Nested ESXi?
  • Nested ESXi Virtual Appliance 6.x
  • vSphere 6.0 Update 2 hints at Nested ESXi support for Paravirtual SCSI (PVSCSI) in the future
  • Updated Nested ESXi 6.0u3 & 6.5d Virtual Appliances
  • New Nested ESXi 6.x Content Library

vSphere / vCloud 5.x

  • Having Difficulties Enabling Nested ESXi in vSphere 5.1?
  • How to Enable Nested ESXi & Other Hypervisors in vSphere 5.1
  • How to Enable Nested ESXi & Other Hypervisors in vCloud Director 5.1
  • The Missing Piece In Creating Your Own Ghetto vSEL Cloud
  • How to Enable Support for Nested 64bit & Hyper-V VMs in vSphere 5
  • Nested ESXi Virtual Appliance 5.x

vCloud Air

  • Nested ESXi on vCloud Air (Promiscuous Mode not required)
  • How to deploy vSphere 6.0 (VCSA & ESXi) on vCloud Director and vCloud Air?

Additional Info Tips/Tricks

  • Enable TRIM/UNMAP from Nested vSAN OSA/ESA to physical vSAN OSA
  • Unable to power on vSphere Cluster Services (vCLS) VM in Nested ESXi with no host is compatible with the virtual machine
  • GPU Passthrough with Nested ESXi
  • Using vSphere Lifecycle Manager (vLCM) to remediate Nested ESXi host with CPU on the host is not supported
  • Nested ESXi 5.1 Supports VMXNET3 Network Adapter Type
  • How to Configure Nested ESXi 5 to Support EVC Clusters
  • How to Enable Nested vFT (virtual Fault Tolerance) in vSphere 5
  • How to Install VMware VSA in Nested ESXi 5 Host Using the GUI
  • Cool Undocumented Features in vCloud Director 1.5
  • The Missing Piece In Creating Your Own Ghetto vSEL Cloud
  • Nested Virtualization APIs For vSphere & vCloud Director 5.1
  • How To Enable Nested ESXi Using VXLAN In vSphere & vCloud Director 
  • Will Intel’s VMCS Shadowing Feature Benefit VMware’s Nested Virtualization?
  • How to run Nested RHEV Hypervisor on ESXi? 
  • How to quickly setup and test VMware VSAN (Virtual SAN) using Nested ESXi
  • How to run Nested ESXi on top of a VSAN datastore? 
  • VMware Tools for Nested ESXi 
  • Why is Promiscuous Mode & Forged Transmits required for Nested ESXi?
  • How to properly clone a Nested ESXi VM?
  • Running Nested Xen Hypervisor with VMware Tools on ESXi
  • OVF template for creating Nested ESXi 3 or 32 node VSAN Cluster
  • How to run Nested ESXi on the vCloud Hybrid Service?
  • Do I need additional licenses for Nested ESXi?
  • ESXi MacLearn dvFilter - Improve Network/CPU performance when using Promiscuous Mode for Nested ESXi
  • How to run Qemu & KVM on ESXi?
  • Does the ESXi Mac Learn dvFilter work with Nested ESXi on NSX VXLAN’s?
  • VMware has the best platform to run latest Windows 10 Desktop, Server & Hyper-V Tech Preview!
  • Running Nested ESXi / VSAN Home Lab on Ravello
  • Using PowerCLI to invoke Guest Operations API to a Nested ESXi VM
  • VM serial logging to the rescue for capturing Nested ESXi PSOD
  • Running Nested ESXi, NSX-V or NSX-T on top of NSX-T
  • Configure NSX-T Enhanced Data path / Network Stack (ENS) for Nested ESXi
  • Distributed Power Management (DPM) with Nested ESXi
  • Emulating a Virtual USB storage device using Nested ESXi

How to properly clone a Nested ESXi VM?

12.06.2013 by William Lam // 54 Comments

I often hear from users that they would like to be able to just clone from an existing Nested ESXi VM that has already been configured and just create additional Nested ESXi VM instances from that. For me personally, I do not have a use case for this since I just deploy additional ESXi instances using an automated Kickstart deployment. However, I can see why this would be useful for anyone that does not have an automated deployment or just want to quickly deploy additional Nested ESXi instances by just cloning from an existing image and then manually change the networking configuration afterwards.

UPDATE (07/01/21) - As of ESXi 7.0 Update 2, cloning an ESXi boot volume (Nested or Physical) is no longer safe and can lead to data corruption. Please refer to the following two VMware KB articles for more information on this topic https://kb.vmware.com/kb/84280 and https://kb.vmware.com/kb/84349 

First off, cloning of a Nested ESXi VM is possible and you can already do this today. You will get a brand new Virtual Machine that will have a unique MoRef ID, InstanceUUID, BIOS UUID and MAC Addresses for each of the virtual network adapters which you can see an example of this from the screenshot below.

Everything from outside of the guest OS looks great as we would expect but there is actually two issues from within ESXi that you may not be aware of.

  • The first issue is that you will get a duplicated MAC Address of the VMkernel interface(s) because the Nested ESXi configuration is exactly the same.
  • The second issue is having a duplicated ESXi System UUID, also known as a VMkernel UUID which should normally be unique and can sometimes be used for tracking purposes. You can see this System UUID by running the following ESXCLI command: esxcli system uuid get or by looking in esx.conf configuration file.

To properly clone an existing Nested ESXi VM, you will need to perform the following two operations within the Nested ESXi VM prior to cloning.

First Configuration - There is an advanced ESXi setting called FollowHardwareMac that will automatically update the VMkernel's MAC Address whenever the Virtual Machine's virtual network adapter MAC Addresses changes. To do so, you will need to run the following ESXCLI command:

esxcli system settings advanced set -o /Net/FollowHardwareMac -i 1

Second Configuration - The other modification that is required is to delete the existing System UUID entry in /etc/vmware/esx.conf configuration file. This will ensure a new System UUID will automatically be generated when the system boots up. To do so, open esx.conf and delete the entire /system/uuid line entry as seen in the screenshot below. Here is a quick snippet you can run without needing to open up VI:

sed -i 's#/system/uuid.*##' /etc/vmware/esx.conf

To ensure the file is persisted, run /sbin/auto-backup.sh

Once both configurations have been performed you are now ready to start cloning additional Nested ESXi instances. You will still need to login to each Nested ESXi VM and manually change the IP Address and hostname which you of course can leverage the Guest Operations API if you have VMware Tools for Nested ESXi installed.

If you plan on joining your "cloned" Nested ESXi instances to a vCenter Server and the ESXi hosts contains a local datastore, you will not be able to add the hosts to the same Datacenter/Cluster. The reason for this is that the cloned ESXi hosts will have a duplicated VMFS UUID. To fix this, you just need to re-signature the VMFS volume by using the following ESXCLI command:

esxcli storage vmfs snapshot resignature -l [VMFS-VOLUME]

Categories // ESXi, Nested Virtualization Tags // clone, ESXi, nested, nested virtualization, uuid

w00t! VMware Tools for Nested ESXi!

11.11.2013 by William Lam // 42 Comments

I have been working with Nested ESXi since it original inception and this technology has greatly benefited me and the entire VMware community, especially when it comes to learning about VMware software and being able to easily prototype something before installing it on actual hardware. However, one thing that I felt that has been missing for awhile now is the ability to run an instance of VMware Tools within a Nested ESXi VM. I have personally been asking for this feature for a couple of years and I know many in the VMware community have expressed interests as well.

I am super excited to announce that VMware has just released a new Fling that provides you with a VIB that you can install VMware Tools inside a Nested ESXi host. I originally showed a demo of this at VMworld Barcelona in my vBrownBag Tech Talk and as I mentioned we would be releasing this as a VMware Fling very soon. So here it is!

UPDATE (08/20/15) - An updated version of VMware Tools for Nested ESXi was just published, make sure to download latest version and you can find more details here.

Requirements:

  • Nested ESXi running 5.0, 5.1 or 5.5 

Installation:

To install the VIB, you simply just need to download it and upload the VIB it to your Nested ESXi datastore and then run the following commands:

esxcli system maintenanceMode set -e true
esxcli software vib install -v /vmfs/volumes/[VMFS-VOLUME-NAME]/esx-tools-for-esxi-9.7.0-0.0.00000.i386.vib -f
esxcli system shutdown reboot -r "Installed VMware Tools"

You can also install the VIB directly from VMware.com if you have direct or proxy internet connectivity from your ESXi host by running the following commands:

esxcli network firewall ruleset set -e true -r httpClient
esxcli software vib install -v http://download3.vmware.com/software/vmw-tools/esxi_tools_for_guests/esx-tools-for-esxi-9.7.0-0.0.00000.i386.vib -f

Once the VIB has been successfully installed, you will need to reboot the host for the changes to take effect. To verify, you can now login to either your vSphere Web/C# Client and you should now see the status for VMware Tools for your Nested ESXi host showing green and the IP Address of the Nested ESXi host should be displayed.

So why would you want to do this? Well, there’s a couple of reasons actually. The first one is pretty basic, which is when I need to reboot or shutdown a Nested ESXi VM, instead of having to jump into the VM console or SSH into ESXi host, I could just right click in the vSphere Web/C# Client and just say shutdown or reboot. I also tend to do all sorts of craziness in my lab (I’m sure this is an understatement for folks that know me) and may often break networking connectivity to my Nested ESXi VM. In vSphere 5.0, we introduced the Guest Operations API (formally known as VIX API) which is now part of the vSphere API. This API is actually quite handy as it allows you to perform guest operations within the VM without needing network connectivity as it relies on the fact that VMware Tools is running (pretty cool stuff!).

Here is a screenshot demonstrating the executing of vmkfstools through the Guest Operations API to one of my Nested ESXi VM:

A couple of things to note:

  • If you install VMware Tools on Nested ESXi VM, you will NOT be able to just right click in the UI and say install/upgrade
  • If you wish to integrate this into you ESXi image, you can take a look at a community tool  called ESXi-Customizer created by Andreas Peetz which I have used in the past and works great. Image Builder does not support raw VIBs, only zip files which may need to contain additional metadata information. If you want to create an offline bundle instead to then use Image Builder to create your custom ISO, Andreas has a new tool you can take a look at here.

Finally, if you have any feedback (likes/dis-likes), thanks, comments please head over to the VMware's Fling page for VMware Tools for Nested ESXi and leave a comment. I am sure the Jim Mattson the engineer who built this Fling would greatly appreciate any feedback you may have.

Categories // ESXi, Nested Virtualization Tags // ESXi 5.0, ESXi 5.1, ESXi 5.5, nested, nested virtualization, vmware tools, vSphere 5.0, vSphere 5.1, vSphere 5.5

  • « Previous Page
  • 1
  • …
  • 9
  • 10
  • 11
  • 12
  • 13
  • …
  • 22
  • Next Page »

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • What Host Lifecycle Operations Are Available after Importing vCenter into VCF 9.x Fleet? 06/24/2026
  • VCF 9.1 - Enabling High Availability for a Small VCF Management Services (VCFMS) Deployment 06/22/2026
  • Clarifying Minimum Required ESX Hosts for VCF Deployments 06/18/2026
  • VCF 9.1 - Auditing VCF Management Services (VCFMS) IP Pool Usage  06/17/2026
  • VCF 9.1 - Auditing vCenter Server Connections using the Connection Utilization API 06/15/2026
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.

To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2026