[Lxc-users] LXC: missing /dev/pts/nn
Gus Power
gus at energizedwork.com
Tue Jun 7 09:17:02 UTC 2011
Hi Daniel,
The rootfs directory exists and seems identical to another host I have
which is running containers fine:
> ls -alh /usr/lib/lxc/rootfs
total 4.0K
drwxr-xr-x 2 root root 120 May 28 19:56 .
drwxr-xr-x 4 root root 128 May 28 19:56 ..
-rw-r--r-- 1 root root 0 May 28 19:56 .keep_app-emulation_lxc-0
-rw-r--r-- 1 root root 205 May 28 19:56 README
> cat /usr/lib/lxc/rootfs/README
This directory must exist, even though no contents are ever placed
here. It is used to temporary mount the rootfs of lxc in a private
mount namespace only visible by the processes running in the
container.
> ls -alh /dev/console
crw------- 1 root root 5, 1 Jun 1 16:03 /dev/console
Running lxc-start under strace I see the following /dev/pt* references:
open("/dev/ptmx", O_RDWR) = 3
statfs("/dev/pts", {f_type="DEVPTS_SUPER_MAGIC", f_bsize=4096,
f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0},
f_namelen=255, f_frsize=4096}) = 0
stat("/dev/pts/26", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 26),
...}) = 0
stat("/dev/pts/26", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 26),
...}) = 0
open("/dev/pts/26", O_RDWR|O_NOCTTY) = 4
open("/dev/ptmx", O_RDWR) = 5
stat("/dev/pts/27", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 27),
...}) = 0
stat("/dev/pts/27", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 27),
...}) = 0
open("/dev/pts/27", O_RDWR|O_NOCTTY) = 6
read(10, lxc-start: No such file or directory - failed to mount a new
instance of '/dev/pts'
Any ideas where I can go from here? (I really don't want to bounce the
host).
Thanks,
Gus.
On 06/06/11 22:37, Daniel Lezcano wrote:
> On 06/06/2011 06:14 PM, Gus Power wrote:
>> Hi,
>>
>> I've got a box with 15 lxc containers running happily. However I tried
>> to setup another container today and met with some resistance:
>>
>> lxc-start 1307376067.433 WARN lxc_cgroup - using deprecated
>> ns_cgroup
>> lxc-start 1307376067.567 WARN lxc_conf - rootfs specified but
>> no console found at '/usr/lib/lxc/rootfs/dev/console'
>
> Did you checked this error ? ^^^^^^^^^^^^
>
>> lxc-start 1307376067.568 WARN lxc_conf - failed to mount
>> '/dev/pts/26'->'/usr/lib/lxc/rootfs/dev/tty1'
>> lxc-start 1307376067.572 ERROR lxc_conf - No such file or
>> directory - failed to mount a new instance of '/dev/pts'
>> lxc-start 1307376067.572 ERROR lxc_conf - failed to setup the
>> new pts instance
>> lxc-start 1307376067.572 ERROR lxc_start - failed to setup the
>> container
>> lxc-start 1307376067.572 ERROR lxc_sync - invalid sequence
>> number 1. expected 2
>>
>>
>>> lxc-version
>> lxc version: 0.7.4.1
>>
>>> uname -a
>> Linux hn2 2.6.38-gentoo-r6 #4 SMP Wed Jun 1 09:55:02 BST 2011 x86_64
>> Quad-Core AMD Opteron(tm) Processor 8354 AuthenticAMD GNU/Linux
>>
>> Looking in /dev/pts I see that for some reason 26 is indeed missing:
>>> ls -alh /dev/pts/
>> ...
>>
>> crw------- 1 root root 136, 2 Jun 2 14:53 2
>> crw------- 1 root root 136, 20 Jun 3 13:11 20
>> crw------- 1 root tty 136, 21 Jun 3 13:11 21
>> crw------- 1 root root 136, 22 Jun 3 13:13 22
>> crw------- 1 root tty 136, 23 Jun 3 13:13 23
>> crw------- 1 root root 136, 24 Jun 3 14:31 24
>> crw------- 1 root tty 136, 25 Jun 3 14:31 25
>> crw------- 1 root root 136, 28 Jun 3 15:09 28
>> crw------- 1 root tty 136, 29 Jun 3 15:09 29
>> crw------- 1 root tty 136, 3 Jun 2 14:45 3
>>
>> ...
>>
>> I'm loathed to just try and make another device node and hope for the
>> best. Can anyone shed some light on what may or may not be happening
>> here?
>>
>> Thanks!
>>
>> Gus.
>>
>> ------------------------------------------------------------------------------
>>
>> Simplify data backup and recovery for your virtual environment with
>> vRanger.
>> Installation's a snap, and flexible recovery options mean your data is
>> safe,
>> secure and there when you need it. Discover what all the cheering's
>> about.
>> Get your free trial download today.
>> http://p.sf.net/sfu/quest-dev2dev2
>> _______________________________________________
>> Lxc-users mailing list
>> Lxc-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/lxc-users
>>
>
More information about the lxc-users
mailing list