[Lxc-users] "PTY allocation request failed on channel 0 - stdin: is not a tty"
Ulli Horlacher
framstag at rus.uni-stuttgart.de
Tue Nov 29 16:52:23 UTC 2011
On Tue 2011-11-29 (17:33), Ulli Horlacher wrote:
> If there is no /etc/init/tty1.conf, then create one. It should contain:
>
> # tty1 - shell
> #
> # This service maintains a shell on tty1 from the point the system is
> # started until it is shut down again.
>
> start on stopped rc RUNLEVEL=[2345]
> stop on runlevel [!2345]
>
> respawn
> exec /bin/openvt -elfc 1 -- su -l
Of course you need the openvt programm installed. It is in the "kbd"
package. And you have to reboot the container.
To test it without rebooting, use:
ssh root at your_container "/bin/openvt -lfc 1 -- su -l"
lxc-lxc-console -n your_container
--
Ullrich Horlacher Server- und Arbeitsplatzsysteme
Rechenzentrum E-Mail: horlacher at rus.uni-stuttgart.de
Universitaet Stuttgart Tel: ++49-711-685-65868
Allmandring 30 Fax: ++49-711-682357
70550 Stuttgart (Germany) WWW: http://www.rus.uni-stuttgart.de/
REF: <20111129163344.GH32057 at rus.uni-stuttgart.de>
More information about the lxc-users
mailing list