How to run KVM on a VMware ESXi Virtual Machine

Source: Internet
Author: User
Tags kvm hypervisor

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.