[lxc-users] Start container from systemd

Serge Hallyn serge.hallyn at ubuntu.com
Thu Mar 12 05:43:15 UTC 2015


Quoting Mark Clarkson (mark.clarkson at smorg.co.uk):
> On Mon, 2015-03-02 at 17:15 +0000, Serge Hallyn wrote:
> > >  ExecStart=/usr/bin/lxc-start -F -n ubtr1
> > 
> > Could you add "-l trace -o /tmp/lxc.out" to the ExecStart args here
> > and
> > show us the contents of /tmp/lxc.out?
> > 
> 
> NOTES:
> * Starting from systemd:
>   - lxc-start -n <ct> .. doesn't work
>   - lxc-start -f <conf> -n <ct> .. does work
>     + but container cannot be stopped either
>       * within systemd (ExecStop) .. doesn't work
>       * from the cmdline (lxc-stop -n <ct>) .. doesn't work
> 
>   - lxc-autostart -A .. does work
>     + containers can be started and stopped

Back to a frequent question - what do

find / -name lxc-start
find / -name liblxc*

show?

If you create a systemd unit and have it do:

lxc-ls -f > /tmp/debug.out

or

strace -f -o/tmp/strace.out lxc-ls -f > /tmp/debug.out

what do yo uget in /tmp/strace.out and /tmp/debug.out?


More information about the lxc-users mailing list