lxc support

asked 2012-03-05 07:24:27 -0500

andycjw gravatar image

is lxc as back-end for compute instance currently usable with devstack? I have tried setting LIBVIRT_TYPE=lxc in localrc but not able to launch any instance successfully, it always end up at error state, is this normal?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2012-03-06 15:42:30 -0500

Yes, I'm running it successfully. You may need to use a different image, though, as the blank cirros img won't work if that's what you're currently trying. Any fs you can chroot to once mounted should work. You can test this as well by manually launching with virsh using the configuration that gets generated.

edit flag offensive delete link more

answered 2012-03-06 15:54:40 -0500

andycjw gravatar image

can you show me any image that is usable with lxc? I really want to try this

edit flag offensive delete link more

answered 2012-03-06 16:31:21 -0500

I don't have a link to one (though I'm sure there are plenty online), but you can quickly whip up a small image based on the cirros initrd to test your setup. E.g.:

mkdir foobar cd foobar gunzip -c <path>/cirros-0.3.0-x86_64-initrd | cpio -i

Make a copy of cirros-0.3.0-x86_64-blank.img (name it cirros-lxc.img or whatever), mount, and copy everything from foobar over. Once that's done, you can unmount, add that image to glance, and then launch (making sure to select that image). You can verify by checking the expected fs at the mount point at launch (e.g. /opt/stack/nova/instances/instance-#/rootfs).

Let me know if you hit issues and/or if it works for you.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2012-03-05 07:24:27 -0500

Seen: 76 times

Last updated: Mar 06 '12