[Lxc-users] /dev/pts vs. ptmx - symlink?

Toens Bueker toens.bueker at lists0903.nurfuerspam.neuroserve.de
Sun Oct 17 06:19:31 UTC 2010


Hi *,

I just recently stumbled upon lxc and wanted to give it a go. My
testplatform is a maverick. As various posts on the list show, there
is an issue with /dev/pts or /dev/ptmx:

root at sokka:~# lxc-start -n testlxc
lxc-start: No such file or directory - failed to mount a new instance of '/dev/pts'
lxc-start: failed to setup the new pts instance
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'testlxc'
lxc-start: Device or resource busy - failed to remove cgroup '/cgroup/testlxc'

In order to use severeal instances of /dev/pts it was suggested that
/dev/ptmx should be a symlink to /dev/pts/ptmx. Obviously I tried that
- but to no avail.

Here are the respective directories on host and guest (still unlinked
on the host although I have tried that already and I didn't work):

root at sokka:~# ls -la /dev/pts
drwxr-xr-x  2 root     root      0 2009-04-09 02:33 .
drwxr-xr-x 19 root     root   3680 2010-10-16 08:34 ..
crw--w----  1 adtadmin tty  136, 0 2010-10-17 08:09 0
crw-------  1 adtadmin tty  136, 1 2010-10-17 08:09 1
c---------  1 root     root   5, 2 2010-10-16 08:34 ptmx
root at sokka:~# ls -la /dev/ptmx 
crw-rw-rw- 1 root tty 5, 2 2010-10-17 08:10 /dev/ptmx

root at sokka:/var/lib/lxc/testlxc/rootfs# ls -la dev/pts/
drwxr-xr-x 2 root root 4096 2010-10-16 08:16 .
drwxr-xr-x 4 root root 4096 2010-10-16 08:16 ..
crw-rw-rw- 1 root root 5, 2 2010-10-16 08:03 ptmx
root at sokka:/var/lib/lxc/testlxc/rootfs# ls -la dev/ptmx 
lrwxrwxrwx 1 root root 8 2010-10-16 08:16 dev/ptmx -> pts/ptmx

Could somebody please post his or her solution? How should the link
(permissions, etc.) look like? Should it be on host or guest or both?

Any hint is appreciated.

Thx.
Töns
-- 
There is no safe distance.




More information about the lxc-users mailing list