Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to understand how to use KVM in CenTOS. At the moment, all I have is a VMWare ESX 5.x server to use. Is there a way to get KVM working on a system that is running on VMWare? Essentially, a nested install?

This will not be used for production purposes, only testing/learning.

share|improve this question
Yes it is possible, you have to enable nested virtualisation - virtuallyghetto.com/2012/08/… – Ulrich Dangel Jan 28 '13 at 0:45
@Urlich: Please convert the comment to an answer. – pilona Oct 26 '13 at 17:54
@Mike B: "install" is misleading most of the time. KVM is just a facility offered by the kernel (accessed through the character device at /dev/kvm). CentOS should have the kernel module in the kernel package by default (though it could also be compiled-in). What you install is the hypervisor that makes use of KVM (e.g., QEMU). – pilona Oct 26 '13 at 18:10

To allow KVM to function inside a VM do the following;

In esxi 5.5 add the following line to your VM to enable nested virtualization;

hypervisor.cpuid.v0 = "FALSE"

Steps: go to "edit settings" ---->"options"---->"Advanced"---> "General"--->"Configuration Parameters"---->"configuration button, select add row and add the new parameter. hypervisor.cpuid.v0 = "FALSE"

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.