Ask Your Question
2

What images to use to launch instances using LXC with OpenStack

asked 2013-12-14 18:54:47 -0500

anonymous user

Anonymous

I have successfully deployed OpenStack Havana using Juju and MAAS. Virt type is LXC. What kind of images should I use to be able to launch LXC containers from Openstack and how to overcome the lack of volume support to add storage? Any leads will do :) Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-12-16 10:28:11 -0500

Nuriel gravatar image

updated 2013-12-16 10:29:40 -0500

You need to create an image which can be used (but I guess you've already figured that one out :)). It took me some time but eventually I've managed to get a Centos image working and a libvirt LXC could boot from it. I combined information from the following two links: http://www.emanuelis.eu/2010/05/28/how-to-create-a-lxc-centos-template/ and mainly https://engage.eucalyptus.com/customer/portal/articles/515456-how-to-create-a-centos-based-machine-image

One important thing to note is, that because the host system had its selinux disabled, I had to remove the /selinux directory from the container's image. Also important was that the cgroups are properly mounted on the host and that the services cgconfig and cgred should be started, then libvirtd restarted to pick-up the changes and you should be good to go.

edit flag offensive delete link more

Comments

Thanks, I will look into it. I have to create and Ubuntu image. but I guess the principle would be the same! Cheers, Isein!

inko gravatar imageinko ( 2013-12-16 11:39:30 -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-12-14 18:54:47 -0500

Seen: 675 times

Last updated: Dec 16 '13