[Lxc-users] lxc-console: failed to connect to tty service
Daniel Lezcano
daniel.lezcano at free.fr
Sun Mar 6 21:19:16 UTC 2011
On 03/06/2011 02:13 PM, Advait Alai wrote:
> Hello,
>
> I have the following problem:
>
> $ lxc-console -n left
> lxc-console: failed to connect to the tty service
>
> The 'left' container is in the RUNNING state when I execute this command.
>
> Also, I the -d option does not seem to work when I want to run the container
> in the background. Executing $ lxc-start -n left -d /bin/bash
> and then lxc-info -n left shows that the container continues to be in the
> STOPPED state.
>
> How do I rectify this?
In order to use the console, the getty console should be launched inside
the container with the proper configuration, a rootfs and a lxc.tty=<nrttys>
It is inadequate to spawn an interactive shell within container in
daemon mode where fd 0, fd 1 and fd 2 are closed.
More information about the lxc-users
mailing list