[lxc-users] LXC auto start not working

Michael H. Warfield mhw at WittsEnd.com
Mon Jun 9 14:36:57 UTC 2014


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!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 482 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140609/e6352e39/attachment.sig>


More information about the lxc-users mailing list