[meta-virtualization] Question Integration of LXC

Bruce Ashfield bruce.ashfield at gmail.com
Tue May 22 05:09:57 PDT 2018


On Tue, May 22, 2018 at 7:38 AM, Nicolai Weis <nicolai.weis at web.de> wrote:

> Hi all,
>
> In a project I want to integrate lxc-containers into the
> core-image-minimal for the minnowboard turbot. Therefore I'm using the
> krogoth branch (have to use this branch) for the meta-layers.
> As described in the README-file I add meta-virtualization, meta-oe,
> meta-networking, meta-filesystems and meta-python to the bblayers.conf. In
> the local.conf
> I added at the end of the file BBFILE_PRIORITY_openembedded-layer = "4"
> and IMAGE_INSTALL_append = " lxc" (lxc_2.0.0.bb).
>
> After the sucessful build I start the image and created with the
> busybox-template - should I use a different template? - a lxc-busybox
> container. I tried to start the container, but the error
> "1079 failed initializing cgroup support" appeared. lxc-checkconfig showed
> cgroup-namespaces: required. I tried to solve this with adding cgroup-lite
> to IMAGE_INSTALL_append, but it
> didn't change anything (only let cgroup-namespaces disappear and showed
> Cgroup clone_children flag: enabled). I'm using sysvinit instead of systemd.
>
>
What kernel are you using ? This typically means that the kernel config
isn't correct.
If you aren't using linux-yocto, then the fragments we have in the layer
are likely
not being applied, and you'll need to manually configure your kernel with
the right
options.

Otherwise, it could be that the cgroups are not being mounted properly by
your
recipe, so have a look and confirm if cgroups or cgroups2 are in fact
mounted in
your image.

Bruce


> Do I have to change some configurations in the lxc-recipe? I would be very
> grateful if you can give me some information about it.
>
> Thanks
> Nicolai
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>
>


-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-virtualization/attachments/20180522/aa7d0212/attachment.html>


More information about the meta-virtualization mailing list