[lxc-users] LXC auto start not working
Michael H. Warfield
mhw at WittsEnd.com
Mon Jun 9 14:27:25 UTC 2014
Hello,
On Mon, 2014-06-09 at 10:07 -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 don't think that's going to work in default.conf. It will have to be
in the individual configuration files. It might work if you put it in
there and THEN created the container. But, if you created the container
first and then put the parameters in default.conf, I don't think that's
going to work.
> 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.
Did you try putting it in the individual configuration files? Try that.
I strongly syspect you're going to have problems with lxc-autostart with
unpriv containers at the moment, even if you lxc-ls to recognize the
autostart config option. I just discovered this yesterday while
investigating the code for another feature but, currently, it appears
that lxc-autostart is not honoring the -P option. It might work, in
this case, if you have an lxcpath specified in your configuration file
but I haven't chased the logic path on that one down yet. Stephane
probably needs to chime in on this.
>
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!
-------------- 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/601a2802/attachment.sig>
More information about the lxc-users
mailing list