[ale] How to build LXC templates from ISO or installed OS please ?

Boris Borisov bugyatl at gmail.com
Wed Apr 22 15:05:08 EDT 2015


Not to kill the thread here :) But isn't Docker supersede LXC. Android
Lolipop tried to substitute docker with sticker :)

On Wednesday, April 22, 2015, Michael H. Warfield <mhw at wittsend.com> wrote:

> This is really a question that should be raised on the lxc-users mailing
> list.
>
> On Mon, 2015-04-20 at 08:52 -0400, Narahari 'n' Savitha wrote:
> > Good Monday morning friends:
>
> >         Here is the scenario.  My office has SLES 11SP3.  I installed
> >         it and then I enabled LXC on it.  The LXC stuff went thru
> >         fine.
>
> Oooo...  That's a little on the oldish side.
>
> What version of LXC did you install?  What kernel version are you
> running?
>
> >         When I tried to get a container upend running with a
> >         predefined template the only Suse related is Open-Suse 13SP1.
>
> Where did you get this "predefined" template?
>
> We have some template scripts that generate containers.  I've done some
> work on the lxc-opensuse template script and I have contacts at Suse.
> It has a "-r release" option but it's strictly going to pull from the
> OpenSuse repos.
>
> We also have a "download" template which pulls predefined container
> images from "images.linuxcontainers.org" and that has OpenSuse images
> but, currently, only for 12.3.  So I'm really confused where this 13SP1
> came from...
> >
> >         I tried using that and it work since the libs are
> >         incompatible.
>
> Ah, this I don't understand.  The libs in the container are separate and
> independent from the libs in the host.  I've even got a OpenSuse
> container running on my Fedora 21 host.  In fact, that's how I
> bootstrapped the whole image process to get OpenSuse images into the
> download template repository for Stephan's download template.
>
> >         In this context I would like to build a LXC template from the
> >         SLES 11SP3 ISO directly or from the installed OS(using the
> >         SLES 11SP3).
>
> If you have LXC installed on 11SP3 as you say...  What do you get when
> you run this command:
>
> lxc-create -n suse1 -t opensuse
>
> If everything is working on the host, it should install a container
> named "suse1" that is a version of opensuse.
>
> >         All examples I see are for cents or ubuntu or debian.
>
> We have templates for alpine, alt, arch, busybox, cirros, opengentoo,
> mandrivia, oracle, debian, ubuntu, centos, fedora and more.  Not all
> templates work on all hosts (I think I have the Fedora and CentOS
> templates working pretty well on most hosts) but the container images
> downloaded using the download template should work on all supported host
> platforms.
> >
> >         Any inputs on SLES LXC template building is appreciated ?
>
> This really needs to be addressed on the lxc-users mailing list.
> >
> > -N
>
> Regards,
> Mike
> --
> Michael H. Warfield (AI4NB) | (770) 978-7061 |  mhw at WittsEnd.com
>    /\/\|=mhw=|\/\/          | (678) 463-0932 |
> http://www.wittsend.com/mhw/
>    NIC whois: MHW9          | An optimist believes we live in the best of
> all
>  PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!
>
>

-- 
Sent from Gmail Mobile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20150422/ce215da3/attachment.html>


More information about the Ale mailing list