Ask Your Question
1

Running VM inside OpenStack VM

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

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

Comments

Which Hypervisor driver, KVM?

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

Yes. It is KVM.

yijian gravatar imageyijian ( 2013-11-18 09:10:51 -0500 )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 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

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

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
Y

More information on how to activated nested virtualization with KVM depending on your processor can be found https://docs.openstack.org/developer/devstack/guides/devstack-with-nested-kvm.html (in the docs).

edit flag offensive delete link more
-1

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

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.

http://www.youtube.com/watch?v=Tu5rEKoXi3A

http://docs.openstack.org/image-guide/content/ch_preface.html

edit flag offensive delete link more

Comments

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 291 times

Last updated: Jun 29 '17