[CRIU] ubuntu container dump error

riya khanna riyakhanna1983 at gmail.com
Fri Jun 6 01:00:17 PDT 2014


$ sudo lxc-attach -n test ps axef
  548 tty7     Ss+    0:00 /sbin/getty -8 38400 console
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
JOB=rc INSTANCE= RESULT=ok RUNLEVEL=2 PREVLEVEL
  550 lxc/tty1 Ss+    0:00 /sbin/getty -8 38400 tty1
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
JOB=rc INSTANCE= RESULT=ok RUNLEVEL=2 PREVLEVEL=N
  845 ?        Ss     0:00 /sbin/getty -8 38400 tty4
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
RUNLEVEL=2 PREVLEVEL=N CONTAINER=lxc UPSTART_EVENT
  847 ?        Ss     0:00 /sbin/getty -8 38400 tty2
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
RUNLEVEL=2 PREVLEVEL=N CONTAINER=lxc UPSTART_EVENT
  849 ?        Ss     0:00 /sbin/getty -8 38400 tty3
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
RUNLEVEL=2 PREVLEVEL=N CONTAINER=lxc UPSTART_EVENT

On Fri, Jun 6, 2014 at 12:51 AM, riya khanna <riyakhanna1983 at gmail.com> wrote:
> The lxc configure file mentions "lxc.console=none". How do I disable
> terminals? This is what I see in dump:
>
> (00.059128)     type devpts source devpts c /16 @ ./dev/lxc/tty1 flags
> 20000a options gid=5,mode=620,ptmxmode=000,
> (00.059140)     type devpts source devpts c /17 @ ./dev/lxc/tty2 flags
> 20000a options gid=5,mode=620,ptmxmode=000,
> (00.059152)     type devpts source devpts c /18 @ ./dev/lxc/tty3 flags
> 20000a options gid=5,mode=620,ptmxmode=000,
> (00.059167)     type devpts source devpts c /19 @ ./dev/lxc/tty4 flags
> 20000a options gid=5,mode=620,ptmxmode=000,
>
> On Fri, Jun 6, 2014 at 12:36 AM, Cyrill Gorcunov <gorcunov at gmail.com> wrote:
>> On Fri, Jun 06, 2014 at 11:26:38AM +0400, Pavel Emelyanov wrote:
>>> On 06/06/2014 10:26 AM, riya khanna wrote:
>>> > (00.415883) Error (tty.c:203): tty: Can't obtain ptmx index: Inappropriate ioctl for device
>>>
>>> Here's the error. It looks like you have terminals in your
>>> container, do you?
>>>
>>> Cyrill, we've met this error some time before, do you remember
>>> what was it?
>>
>> It looks like the /dev/console is used for tty.
>>
>> http://lists.openvz.org/pipermail/criu/2013-March/008054.html
>>
>> CC'ing Andrew


More information about the CRIU mailing list