[Lxc-users] lxc-console: container is stopped?
Daniel Lezcano
daniel.lezcano at free.fr
Tue Apr 19 07:44:23 UTC 2011
On 04/19/2011 08:25 AM, Ulli Horlacher wrote:
> I have a new container which I cannot attach to (lxc-console):
>
>
> root at zoo:/lxc# /usr/bin/lxc-start -f egal.cfg -n egal&
> [1] 3800
>
> root at zoo:/lxc# pstree -p 3800
> lxc-start(3800)---init(3801)-+-cron(3857)
> |-rsyslogd(3827)-+-{rsyslogd}(3839)
> | `-{rsyslogd}(3840)
> |-su(3849)---bash(3854)
> |-su(3851)---bash(3860)
> `-su(3899)---bash(3903)
>
> root at zoo:/lxc# lxc-console -n egal
> lxc-console: 'egal' is stopped
>
>
> Why is it in mode 'stopped'?
That means lxc-console was not able to find the unix socket and failed
with an ECONNREFUSED.
It is interpreted the lxc-start supervisor (the container's init parent)
is not there, so no such container is running.
> How can I debug this?
Yes, let's understand why we can't connect.
(1) strace lxc-console
(2) netstat -lx | grep lxc
For the latter you should see @/var/lib/lxc/egal/command
If I refer to the process tree you gave, I don't see any getty, so I
suppose you didn't set the tty option in the configuration file, right ?
More information about the lxc-users
mailing list