Running VM inside OpenStack VM

asked 2013-11-18 08:54:42 -0600

yijian gravatar image

Is it possible to run VM inside an existing OpenStack VM?

Specifically, I'm trying to run user mode Linux inside Debian jessi based guest on top of OpenStack. Is there restrictions?

edit retag flag offensive close merge delete


Which Hypervisor driver, KVM?

sgordon gravatar imagesgordon ( 2013-11-18 09:05:17 -0600 )edit

Yes. It is KVM.

yijian gravatar imageyijian ( 2013-11-18 09:10:51 -0600 )edit

The thing you look for is nested virtualisation. The answers below help you further. But depending on the OS you are using you may have different performance results. I had to give up KVM inside KVM to create windows images, because of performance issues (100% CPU & guest OS in stuck) on older HW

Andreas Merk gravatar imageAndreas Merk ( 2017-06-29 14:14:30 -0600 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2017-06-29 10:48:49 -0600

For Intel processor:

echo "options kvm-intel nested=y" >> /etc/modprobe.d/dist.conf

Reboot and check it was enabled:

cat /sys/module/kvm_intel/parameters/nested

More information on how to activated nested virtualization with KVM depending on your processor can be found (in the docs).

edit flag offensive delete link more

answered 2013-11-18 13:15:15 -0600

What format is the OS in you are loading ? QCOW2, RAW, VMDK ? (please don't say ISO) Have you loaded any of the Virt-IO drivers for Disk and Networking ? These are cloud aware and give you additional performance. I would also recommend loading the Cloud-init package as well which gives you lots of flexibility in an OpenStack/KVM environment, things like root disk re-sizing and many others. Most of the conversion can be done with KVM at the command line. More information about OS image cloud optimization in a talk at the OpenStack Conference in Portland.

edit flag offensive delete link more


laboshinl gravatar imagelaboshinl ( 2013-11-18 13:26:51 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-11-18 08:54:42 -0600

Seen: 405 times

Last updated: Jun 29 '17