[lxc-users] Serge Hallyn's article "Publishing LXD images"

Serge Hallyn serge.hallyn at ubuntu.com
Tue Dec 8 17:26:37 UTC 2015


Quoting david.andel at bli.uzh.ch (david.andel at bli.uzh.ch):
> But now happens something strange:
> 
> When running 'lxc exec wily-with-upstart-1 /bin/bash' the prompt changes to root at wily-with-upstart-1 as expected, but then closes the shell in a few seconds, falling back on the host prompt.
> This happens both in the original wily (with systemd) and in the wily-with-upstart containers, but not in a trusty container.
> I haven't found any entries in /var/log in those containers during the time that this happens.
> 
> What could this be and how can I find the cause?

Jinkeys, no idea.  Is the container still running after your
shell dies?

I'd try getting debug output from upstart itself.  Depending on which
lxc you're running, you may need to use lxc from the daily ppa to get
the patch "support arguments in lxc.init_cmd".  Add the following to
your container config:

  raw.lxc: |-
    lxc.console.logfile = /tmp/out
    lxc.init_cmd = /sbin/init --debug --verbose



More information about the lxc-users mailing list