Home > virtualization, vmware, workstation > Nested KVM VM inside a VMware Workstation 8 VM – how to

Nested KVM VM inside a VMware Workstation 8 VM – how to

image_thumb[17]

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

image_thumb[6]

Durimg the creation wizard, select "LSI Logic SAS" SCSI controller

image_thumb[5]

After wizard completion and before booting the VM, customize the processor enabling "Virtualize Intel VT-x/EPT or AMD-V/RVI"

image_thumb[8]

Edit the associated .vmx file and append the following line:

apic.xapic.enabled=FALSE

(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!

image_thumb[15]

About these ads
  1. Kiril
    12 Sep 2012 at 22:28 | #1

    Any idea why “virsh list” and Virtual Machine Manager hang on Ubuntu 12.04 inside workstation provided the above settings in the vmx are put?

    Same thing worked fine on 11.04

  2. Robert
    6 Oct 2012 at 23:50 | #2

    For the virsh list hang problem in Ubuntu 12.04, try setting:

    vhv.enable = “TRUE”
    vcpu.hotadd = “FALSE”

    Might help.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 574 other followers

%d bloggers like this: