Running nested VMware ESXi host under KVM hypervisor

Published on Author admin

Prerequisites:

  • hardware support for VT-x
  • enabled nested virtualization for KVM

Use below command to create KVM virtual machine containing VMware ESXi:

virt-install --virt-type=kvm --name=vmware-esxi1 \
--ram 4096 --vcpus=4 \
--virt-type=kvm --hvm \
--cdrom /home/pawel/ISO/VMware/VMware-VMvisor-Installer-6.7.0.update01-10302608.x86_64.iso \
--network network:default,model=e1000 \
--graphics vnc --video qxl \
--disk pool=default,size=128,sparse=true,bus=ide,format=qcow2 \
--boot cdrom,hd --noautoconsole --force \
--cpu host-passthrough

I was trying with "--cpu host-model-only" parameter, but in that case I have received warning message that CPU does not support hardware virtualization, so I have changed to "--cpu host-passthrough"