[Bug 863629] [NEW] libvirt-lxc: virFileOpenTtyAt can't be called on /some/other/dev/pts

Serge Hallyn 863629 at bugs.launchpad.net
Fri Sep 30 20:27:51 UTC 2011


Public bug reported:

lxcControllerRun() is calling virFileOpenTtyAt() with a slave opened on
/the/container/chroot/dev/pts.  While it is not documented in the
manpages, glibc's grantpt does a first check (ensuring that the passed
in fd is a pty slave) with '/dev/pts' as the hardcoded path, appending
the pty#.

lxcControllerRun always calls this on the first slave opened after
creating the new /dev/pts, so grantpt is always checking /dev/pts/0.
Therefore, if your host does not have /dev/pts/0 (easy to reproduce
using screen), then grantpt will fail, and the container creation will
subsequently also fail.

** Affects: libvirt (Ubuntu)
     Importance: High
         Status: Confirmed


** Tags: server-o-nrs

** Changed in: libvirt (Ubuntu)
       Status: New => Confirmed

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

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in Ubuntu.
https://bugs.launchpad.net/bugs/863629

Title:
  libvirt-lxc: virFileOpenTtyAt can't be called on /some/other/dev/pts

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



More information about the Ubuntu-server-bugs mailing list