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

Daniel Lezcano daniel.lezcano at free.fr
Tue Jun 7 18:51:46 UTC 2011


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