Nested KVM VM inside a VMware Workstation 8 VM – how to
I had to do some tests with KVM virtual machine, but I did not have a physical host available to devote to KVM.
What to do? Here it’s come to the rescue VMware Workstation 8!
It is possible to install and run nested KVM VM in a VMware Workstation VM (doing what is called "nested virtualization").
For this test I used a CentOS 6.3 distro, but the same procedure should work with other RedHat and Debian/Ubuntu based distro.
And now the step followed:
Create a custom VM in Workstation 8
Durimg the creation wizard, select "LSI Logic SAS" SCSI controller
After wizard completion and before booting the VM, customize the processor enabling "Virtualize Intel VT-x/EPT or AMD-V/RVI"
Edit the associated .vmx file and append the following line:
(thanks to a vmware community user that found this parameter)
Now we can boot the VM, install the OS (remember to install the virtualization packages) and install VMware Tools.
And finally we can create a KVM VM and boot it!