From: Paul Sladen (vserver_at_paul.sladen.org)
Date: Wed 09 Oct 2002 - 12:44:58 BST
On Wed, 9 Oct 2002, Lars Braeuer wrote:
>
> I found out that somehow several device nodes were missing. I was able to solve the
> problem by creating the nodes using the mknod binary from the host system.
These /should/ be either created by your self, or with the `vserver build'
command (read the source to see what it's doing--it's only a shell script).
> crw--w---- 1 root tty 4, 0 Oct 5 23:32 tty[0-nn]
You probably don't want these ("tty0-tty12") present in the vserver--they
are the virtual-consoles on the physical machines and will therefore leave
each vserver fighting for them. Whilst it is possible to create a different
tty entry in each vserver and have one virtual-console per vserver, you
probably want to leave them as console for logging into the host-server.
I've just been trying to find a link to this in the vserver FAQ, but I
can't, so for reference, this is probably want you want:
crw-rw-rw- 1 root root 1, 7 May 14 08:22 full
crw-rw-rw- 1 root root 1, 3 May 14 08:22 null
crw-rw-rw- 1 root tty 5, 2 Oct 9 12:19 ptmx
drwxr-xr-x 2 root root 0 Oct 5 22:01 pts
crw-rw-rw- 1 root root 1, 8 May 14 08:22 random
crw-rw-rw- 1 root tty 5, 0 May 14 08:22 tty
cr--r--r-- 1 root root 1, 9 May 14 08:22 urandom
crw-rw-rw- 1 root root 1, 5 May 14 08:22 zero
Also, under Debian, `/dev/pts' needs to be mounted setgid:
devpts on /vservers/alpha type devpts (rw,gid=5,mode=620)
(Group 5 is the `tty' group as above).
-Paul
-- Nottingham, GB