[lxc-devel] [PATCH] openwrt: add common configuration file

Petar Koretic petar.koretic at sartura.hr
Tue Dec 2 09:56:53 UTC 2014


Hi St�phane,

On Nov 24, 16:35, St�phane Graber wrote:
> On Thu, Oct 30, 2014 at 12:41:49PM +0000, Petar Koretic wrote:
> > This adds OpenWrt common config file.
> >
> > Signed-off-by: Petar Koretic <petar.koretic at sartura.hr>
> > CC: Luka Perkov <luka.perkov at sartura.hr>
>
> Acked-by: St�phane Graber <stgraber at ubuntu.com>
>
> > ---
> >
> > OpenWrt templates are working using 'lxc-create -t download' command. We are
> > running that over our server on http://virtualwrt.org/containers/. There is
> > only support for x86, x86_64 and ar71xx as of now. We plan to add all other
> > architectures supported by OpenWrt in the future. The build scripts used to
> > generate images can be found here:
> >
> > https://github.com/VirtualWrt/misc
> >
> > Note that index files on virtualwrt.org/containers are not validated.
> >
> > OpenWrt now supports containers but due to platform specifics there are some limitations:
> >
> > * 'tar --anchored' doesn't come with busybox's tar version, lxc is patched in
> > OpenWrt packages feed to ignore this functionality.
>
> How did you workaround this?

We patched OpenWrt LXC and removed this option for now.

> The goal for the download template is to work with busybox, so it'd be
> nice if this could be resolved upstream too.

Looking at the busybox source they have their own tar implementation and
they didn't implement --anchored flag. Not sure how easy would be to add
that.

> > * .xz extraction is very expensive on most OpenWrt supported devices, -0 level
> > is used for rootfs compression to mitigate that to some extent.
> > * Priviliged containers are not supported at the moment since default user
> > is root on this platform.
> >
> > I'm looking forward for your comments and suggestions to get OpenWrt images
> > hosted on official lxc servers.
>
> So the first step to get images on the official lxc server would be to
> add support for OpenWRT to github.com/lxc/lxc-ci so that build-image can
> be used to build OpenWRT images. Then once we've got that, it should
> just be a matter of adding that to jenkins.linuxcontainers.org and we'll
> get daily builds.

We will take a look at this. Thanks.

Best regards,
Petar


More information about the lxc-devel mailing list