[lxc-users] LXC auto start not working

Shidan shidan at gmail.com
Mon Jun 9 14:46:18 UTC 2014


I tried it both in the individual configuration files and the main one. I
actually can't get lxc-autostart to work even in a session as the user that
owns the container right now and lxc-ls is not recognizing the options in
the config file.


On Mon, Jun 9, 2014 at 10:36 AM, Michael H. Warfield <mhw at wittsend.com>
wrote:

> Stéphane,
>
> On Mon, 2014-06-09 at 10:12 -0400, Stéphane Graber wrote:
> > On Mon, Jun 09, 2014 at 10:07:05AM -0400, Shidan wrote:
> > > I now am trying to get an unprivilaged container to auto-start, I put
> the
> > > following in ~/.config/lxc/default.conf:
> > >
> > > lxc.start.auto = 1
> > > lxc.start.delay = 5
> > >
> > >
> > > I also tried putting it in the main /etc/lxc/default.conf file. For
> both
> > > cases it doesn't work and lxc-ls --fancy shows the autostart flag as
> NO.
>
> > For this to work, you need something to call "lxc-autostart" at session
> > open time. For privileged containers we have an init script doing that,
> > but for unprivileged users, there's no single way of doing it and it's
> > hard to know exactly what the user would want to see happen (have all
> > user containers started at boot time and exit at shutdown time or have
> > that happen at user session open time but then what about ssh sessions,
> > ...).
>
> I think there's also a problem in the way lxc-autostart is handling the
> -P option(s) that would complicate this for user based containers
> outside of the global lxcpath.  See my message over in the -devel list.
>
> 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!
>
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140609/11c92368/attachment.html>


More information about the lxc-users mailing list