[Bug 913952] Re: no console on precise containers

Serge Hallyn 913952 at bugs.launchpad.net
Mon Jan 9 20:18:46 UTC 2012


There are 3 causes, all stemming from commit
3aa6b68f7e19fa3e1c2bba75bee921a98b7b46af in upstream util-linux.

1. getty no longer accepts a full pathname.  It prepends '/dev' to the
string it uses to open the file.  /etc/init/console.conf in lxcguest
passes /dev/console.  Rather than changing getty, this can be changed in
console.conf by passing just 'console'.

2. ioctl(fd, TIOCSCTTY) is called twice, and returns -EPERM for the
container's console.  Upstream commit
1593b134ebf596ae7a2b1e73f2dcc8c4e7febddd fixes that by change log_err to
log_warn.

3. a new call to tcsetpgrp is added, which returns Inappropriate ioctl
for device.  This is still present in upstream util-linux, but changing
the following log_err to log_warn allows getty to succeed.

With each of these changes, precise containers have a console again.

** Changed in: lxc (Ubuntu)
       Status: New => Triaged

** Changed in: lxc (Ubuntu)
   Importance: Undecided => High

** Also affects: util-linux (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/913952

Title:
  no console on precise containers

Status in “lxc” package in Ubuntu:
  Triaged
Status in “util-linux” package in Ubuntu:
  New

Bug description:
  When a precise container is started, 'lxc-start -n p1', the
  /dev/console getty does not work.  The other consoles ('lxc-console -n
  p1 -t [1-4]') do.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/913952/+subscriptions




More information about the foundations-bugs mailing list