<div dir="ltr"><div>Hi there!</div><div>Here is a few findings about LXC templates available on OpenWRT CC.</div><div><br></div><div>Just for reference, here below you can see all the templates available on CC and what works and what does not.</div><div><br></div><div><div>/usr/share/lxc/templates/lxc-oracle <-- BAD ARCHITECTURE. NO ARM</div><div>/usr/share/lxc/templates/lxc-plamo <-- depends on "flock". It may work. I get Failed to download </div><div>/usr/share/lxc/templates/lxc-busybox <-- creates the containers, but doesn't start (busybox no statically linked)</div><div>/usr/share/lxc/templates/lxc-fedora <-- fails to download /releases/20/Fedora/armhfp/os</div><div>/usr/share/lxc/templates/lxc-sshd <--- fails requires ssh-keygen. is it available on openwrt?</div><div>/usr/share/lxc/templates/lxc-ubuntu-cloud <-- no idea what's broken</div><div>/usr/share/lxc/templates/lxc-openmandriva</div><div>/usr/share/lxc/templates/lxc-gentoo <-- requires tar. maybe works >220MB. Ran out of disk on /tmp</div><div>/usr/share/lxc/templates/lxc-download <-- no idea what's wrong</div><div>/usr/share/lxc/templates/lxc-archlinux <-- fails require pacman. not available</div><div>/usr/share/lxc/templates/lxc-cirros <-- require tar. works? some problem still with lxc cgroups</div><div>/usr/share/lxc/templates/lxc-debian <-- requires debootstrap. itäs not a openwrt package</div><div>/usr/share/lxc/templates/lxc-ubuntu <-- requires debootstrap. itäs not a openwrt package</div><div>/usr/share/lxc/templates/lxc-centos <-- requires yum. fails container creation</div><div>/usr/share/lxc/templates/lxc-altlinux <-- requires apt-get. fails container creation</div><div>/usr/share/lxc/templates/lxc-alpine <-- requires sha256sum. is it available?</div><div>/usr/share/lxc/templates/lxc-opensuse <-- requires zipper. not available</div></div><div><br></div><div>Cheers,</div><div>Antonio</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 10, 2016 at 10:03 PM, Daniel Golle <span dir="ltr"><<a href="mailto:daniel@makrotopia.org" target="_blank">daniel@makrotopia.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Antonio,<br>
<span class=""><br>
On Wed, Feb 10, 2016 at 09:52:25PM +0200, Antonio Aloisio wrote:<br>
> Hi there,<br>
> I have tried to run lxc on openwrt but it looks to me that those packages<br>
> are broken.<br>
<br>
</span>I'm actively using LXC, however, I use a custom overlayfs method to<br>
create OpenWrt containers.<br>
<span class="">><br>
> root@Honeypot:/home/gnuton# lxc-create -t download -n xx<br>
> Setting up the GPG keyring<br>
> ERROR: Unable to fetch GPG key from keyserver.<br>
> lxc_container: lxccontainer.c: create_run_template: 1102 container creation<br>
> template for xx failed<br>
<br>
</span>I manually use debootstrap to setup Debian rootfs and throwing that at<br>
LXC works great. I once went through the Debian template and believe it<br>
would make sense to fix it up to work on OpenWrt, so LXC becomes more<br>
useable. Do you have gnupg installed? If not or if GPG stuff fails for<br>
some reason, you can try to to modify the Debian template to use<br>
debootstrap having the signature checks disabled (not ideal,<br>
obviously).<br>
<span class=""><br>
> I have also installed LXC LuCi web GUI and it doesn't work too.<br>
> The GUI would allow me to create a openwrt based conatainer, but the truth<br>
> is that there is no such template available as you may see from the above<br>
> list.<br>
<br>
</span>I never tried lxc-download nor the LuCI GUI which is afaik just a<br>
proof-of-concept and not that usable in it's current state.<br>
<span class=""><br>
<br>
> Digging further I had a look at the source code and I noticed there some<br>
> problems too<br>
> for instance<br>
> <a href="https://github.com/openwrt/packages/blob/master/utils/lxc/patches/030-lxc-download.patch" rel="noreferrer" target="_blank">https://github.com/openwrt/packages/blob/master/utils/lxc/patches/030-lxc-download.patch</a><br>
> points lxc-download to use a not working server.<br>
<br>
</span>If you feel like helping, please suggest a patch via github.<br>
<span class=""><br>
> I would like to know what's the status of LXC, is it supposed to work or<br>
> those packages are unmantained?<br>
<br>
</span>Good question... @luka ?<br>
<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Daniel<br>
</font></span></blockquote></div><br></div>