[Lxc-users] LXC: missing /dev/pts/nn

Gus Power gus at energizedwork.com
Wed Jun 8 07:26:54 UTC 2011


Hi Daniel,

Here's the strace -f output: http://pastebin.com/raw.php?i=jWbG14Hg

The config for this node is as follows:

lxc.utsname = somenode.com

lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0

lxc.rootfs = /var/lxc/somenode.com

lxc.tty = 1
lxc.pts= 128

lxc.cap.drop = sys_module mknod mac_override sys_boot

lxc.cgroup.devices.deny = a
lxc.cgroup.devices.allow = c 1:3 rw
lxc.cgroup.devices.allow = c 1:5 rw
lxc.cgroup.devices.allow = c 1:9 rw
lxc.cgroup.devices.allow = c 1:8 r
lxc.cgroup.devices.allow = c 136:* rw
lxc.cgroup.devices.allow = c 5:2 rw
lxc.cgroup.devices.allow = c 4:1 rwm
lxc.cgroup.devices.allow = c 4:0 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 5:1 rwm

Thanks!

Gus.


On 07/06/11 19:51, Daniel Lezcano wrote:
> On 06/07/2011 11:17 AM, Gus Power wrote:
>> 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.
> 
> this rootfs is a temporary directory for pivot_root the rootfs. It is
> internally used by lxc and should not be specified in the configuration.
> 
> By the way, can you give the configuration file of lxc ?
> 
>>> 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).
> 
> Can you give the output of strace -f ?
> 
> Thanks
>   -- Daniel




More information about the lxc-users mailing list