Difference between revisions of "LXC"
m (Text replace - "__NOTOC__" to "") |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | ||
If you want to play with LXC on nova, here is how you do it. Before setting up LXC with nova you have to enable cgroups: | If you want to play with LXC on nova, here is how you do it. Before setting up LXC with nova you have to enable cgroups: | ||
Line 18: | Line 18: | ||
* Download the current natty UEC image. | * Download the current natty UEC image. | ||
− | * In order to use LXC in nova you have to add "-- | + | * In order to use LXC in nova you have to add "--libvirt_type=lxc" to your config. |
Bundle your image as you normally would: | Bundle your image as you normally would: | ||
Line 24: | Line 24: | ||
<pre><nowiki> | <pre><nowiki> | ||
− | euca-bundle-image -i | + | euca-bundle-image -i natty-amd64.img |
− | euca-upload-bundle -b mybucket -m /tmp/ | + | euca-upload-bundle -b mybucket -m /tmp/natty-amd76.img |
− | euca-register mybucket/ | + | euca-register mybucket/natty-amd64.img.manifest.xml |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</nowiki></pre> | </nowiki></pre> |
Latest revision as of 23:30, 17 February 2013
If you want to play with LXC on nova, here is how you do it. Before setting up LXC with nova you have to enable cgroups:
sudo mkdir /cgroup sudo mount none -t cgroup -o cpuacct,memory,devices,cpu,freezer,blkio /cgroup
And add to your /etc/fstab
none /cgroup cgroup cpuacct,memory,devices,cpu,freezer,blkio 0 0
Note: You will need to download a newer version of libvirt 0.8.8.
- Download the current natty UEC image.
- In order to use LXC in nova you have to add "--libvirt_type=lxc" to your config.
Bundle your image as you normally would:
euca-bundle-image -i natty-amd64.img euca-upload-bundle -b mybucket -m /tmp/natty-amd76.img euca-register mybucket/natty-amd64.img.manifest.xml