<div dir="ltr">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.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 9, 2014 at 10:36 AM, Michael H. Warfield <span dir="ltr"><<a href="mailto:mhw@wittsend.com" target="_blank">mhw@wittsend.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Stéphane,<br>
<div><div class="h5"><br>
On Mon, 2014-06-09 at 10:12 -0400, Stéphane Graber wrote:<br>
> On Mon, Jun 09, 2014 at 10:07:05AM -0400, Shidan wrote:<br>
> > I now am trying to get an unprivilaged container to auto-start, I put the<br>
> > following in ~/.config/lxc/default.conf:<br>
> ><br>
> > lxc.start.auto = 1<br>
> > lxc.start.delay = 5<br>
> ><br>
> ><br>
> > I also tried putting it in the main /etc/lxc/default.conf file. For both<br>
> > cases it doesn't work and lxc-ls --fancy shows the autostart flag as NO.<br>
<br>
> For this to work, you need something to call "lxc-autostart" at session<br>
> open time. For privileged containers we have an init script doing that,<br>
> but for unprivileged users, there's no single way of doing it and it's<br>
> hard to know exactly what the user would want to see happen (have all<br>
> user containers started at boot time and exit at shutdown time or have<br>
> that happen at user session open time but then what about ssh sessions,<br>
> ...).<br>
<br>
</div></div>I think there's also a problem in the way lxc-autostart is handling the<br>
-P option(s) that would complicate this for user based containers<br>
outside of the global lxcpath.  See my message over in the -devel list.<br>
<div class="HOEnZb"><div class="h5"><br>
Mike<br>
--<br>
Michael H. Warfield (AI4NB) | <a href="tel:%28770%29%20978-7061" value="+17709787061">(770) 978-7061</a> |  mhw@WittsEnd.com<br>
   /\/\|=mhw=|\/\/          | <a href="tel:%28678%29%20463-0932" value="+16784630932">(678) 463-0932</a> |  <a href="http://www.wittsend.com/mhw/" target="_blank">http://www.wittsend.com/mhw/</a><br>
   NIC whois: MHW9          | An optimist believes we live in the best of all<br>
 PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!<br>
<br>
</div></div><br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>