[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:33:44 UTC 2011


On Tue 2011-11-29 (10:15), Patrick Kevin McCaffrey wrote:

> I do not have a tty config file.  

Then it is no wonder, you do not have tty access.


> Containers are new to me

console tty is not LXC specific, every standard Linux should have it.

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


-- 
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: <865947594.554984.1322583317113.JavaMail.root at mail18.pantherlink.uwm.edu>




More information about the lxc-users mailing list