I remember someone previously asked "can I run a virtual machine on a virtual machine". Of course, the answer is yes. hypervisors such as Xen HVM, KVM, VMware, and Qemu can all NEST virtual machines like this, however, low performance is of little practical use. A virtual machine running on a VMware ESXi virtual machine is called a multi-layer virtual machine or Nested Virtual Machine (Nested VMs ). If only one computer wants to test the multi-node OpenStack environment, it is a good way to use VMware ESXi to virtualize several OpenStack computing nodes running KVM Hypervisor. By default, VMware ESXi 5.0 does not support nested virtual machines. Therefore, after installing KVM on the VMware ESXi virtual machine, you will find that KVM can be installed but is unavailable:
# Kvm-OK
INFO: Your CPU does not support KVM extensions
KVM acceleration can NOT be used
The solution is simple: 1. Modify the settings of VMware ESXi; 2. Modify the settings of the corresponding virtual machine.
Log on to the VMware ESXi console and open the SSH service of VMware ESXi 5.0 (the default SSH service is disabled). Then, log on to VMware ESXi Using ssh and add vhv to the config file. allow = "TRUE:
# Vi/etc/vmware/config
Libdir = "/usr/lib/vmware"
Authd. proxy. vim = "vmware-hostd: hostd-vmdb"
Authd. proxy. nfc = "vmware-hostd: ha-nfc"
Authd. proxy. nfcssl = "vmware-hostd: ha-nfcssl"
Authd. proxy. vpxa-nfcssl = "vmware-vpxa: vpxa-nfcssl"
Authd. proxy. vpxa-nfc = "vmware-vpxa: vpxa-nfc"
Authd. fullpath = "/sbin/authd"
Authd. soapServer = "TRUE"
Vmauthd. server. alwaysProxy = "TRUE"
Vhv. allow = "TRUE"
After restarting VMware ESXi, Edit the virtual machine option (disable the virtual machine first) and open the Edit virtual machine settings dialog box, in the General options option on the Options page, replace the Guest Operating System type with VMware ESxi 5.xin Other,
After starting the VM, Run "kvm-OK" to see that KVM can be used:
# Kvm-OK
INFO:/dev/kvm exists
KVM acceleration can be used
Related reading:
Install and configure KVM on CentOS.
Install Minix on VMware ESXi.
Run different Hypervisor on the VMware ESXi Virtual Machine to check the VMware Running Nested VMs.