# Nested ESXi Setup on KVM You can find [instructions on how to run ESXi nested on ESXi](https://williamlam.com/nested-virtualization). This is a good solution vor a VMWare based (Home) Lab setup. It is also possible to install ESXi on a libvirt/KVM based virtualization host. The hardware that works is quite strange. Performance problems are minor though as it is virtual hardware. ## Known Problems * There was a "[security patch](https://bugs.launchpad.net/ubuntu/+source/rustc-1.62/+bug/1993183)" for kvm_amd nested that broke nested ESXi. * ESXi 8.0 / VMWare Workstation 17 [needs flushbyasid](https://communities.vmware.com/t5/VMware-Workstation-Pro/VMware-nested-under-KVM-on-Ryzen-stopped-working-on-5-19-kernel/td-p/2956504) and that is not supported when nested virtualization is used. ## Prerequisites Get the [install ISO for ESXi 7.0.3 from VMWare](https://customerconnect.vmware.com/en/evalcenter?p=free-esxi7). Check back before a new install unless you want to practice patching. ([Install ISO for ESXi 8.0.1](https://customerconnect.vmware.com/en/evalcenter?p=free-esxi8) but that is broken) ## VM settings All Disks and CDROM: SATA Network: Intel e1000 Pro ## Example domain definition ```XML esxi2a 8e94bab6-6a97-470b-8313-b3ce6c2cbc7b 29360128 29360128 16 hvm /usr/share/OVMF/OVMF_CODE_4M.ms.fd /var/lib/libvirt/qemu/nvram/esxi2a_VARS.fd destroy restart destroy /usr/bin/qemu-system-x86_64