[Lxc-users] lxc-execute fails to exec lxc-init
Serge Hallyn
serge.hallyn at canonical.com
Tue Mar 27 14:43:52 UTC 2012
Quoting Peter Gillard-Moss (pgillard at thoughtworks.com):
> On 27 March 2012 15:08, Serge Hallyn <serge.hallyn at canonical.com> wrote:
>
> > Another option would be to copy an upstart or sysvinit script into
> > /var/lib/lxc/$host/root/etc/init{,.d}/ which does your bootstrapping
> > and removes itself when done. Then just lxc-start the container.
> >
>
>
>
> On 27 March 2012 15:24, Jäkel, Guido <G.Jaekel at dnb.de> wrote:
>
> > if it's the common way you want to setup&bootstrap a new container, maybe
> > you can -- as a third way -- inject a (self-deleting?) script into the
> > containers filesystem before the first start.
>
>
> This sounds sensible, similar to CloudInit[1]. Might be a consideration in
> installing/forking as part of the lxc templates?
Yes, we want to add a 'firstboot' option to the templates, as well as a
pre-boot script akin to an initrd to set things up before init gets
executed.
-serge
More information about the lxc-users
mailing list