>>>>> "DL" == Daniel Lezcano <[email protected]> writes:

    DL> There is a bug with lxc-0.7.2 and the console. You can not
    DL> launch 2 consoles for the same container.  This is fixed with
    DL> lxc-0.7.4.

Although this shouldn't be the problem, I tried to install lxc 0.7.4 and
it didn't help.

    DL> Is it possible, you have more 'getty' in the container than
    DL> lxc.tty provides for the container ? 

No.  I've got `lxc.tty = 2', but there is only one getty configured in
inittab and according to lxc-ps only one getty is running:

  template   17219 pts/43   SNs+   0:00 /sbin/getty 38400 tty1 linux

    DL> That will lead to have the getty to use the /dev/ttyX of the
    DL> host, I guess. For example lxc.tty= 2 and there 4 getty
    DL> processes where the two last ones will use the /dev/tty3 and
    DL> /dev/tty4 of the host.

I should probably mention that a sample session looks like this (with a
passwordless root account):

  # lxc-console -n template

  Type <Ctrl+a q> to exit the console

  Debian GNU/Linux 5.0 template.nest.zamazal.org tty1

  template.nest.zamazal.org login: root
  Last login: Tue Mar  1 12:16:43 CET 2011 on tty1

  Permission denied

  Debian GNU/Linux 5.0 template.nest.zamazal.org tty1

  template.nest.zamazal.org login:

I.e. the console interacts, I'm successfully authenticated, last login
information (giving the time of the last broken login attempt) is
printed, and then something unknown prints "Permission denied" and logs
me out immediately.  auth.log says:

  Mar  1 12:16:43 template login[31]: pam_env(login:session): Unable to open 
env file: /etc/default/locale: No such file or directory
  Mar  1 12:16:43 template login[31]: pam_unix(login:session): session opened 
for user root by LOGIN(uid=0)
  Mar  1 12:16:43 template login[31]: Permission denied

A working login looks like this instead:

  Mar  1 12:33:25 xxx login[323]: pam_env(login:session): Unable to open env 
file: /etc/default/locale: No such file or directory
  Mar  1 12:33:25 xxx login[323]: pam_unix(login:session): session opened for 
user root by LOGIN(uid=0)
  Mar  1 12:33:25 xxx login[841]: ROOT LOGIN  on 'tty1'



------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Lxc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to