Re: [Vserver] openpty(): No such file

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Sat 18 Nov 2006 - 20:46:28 GMT
Message-ID: <20061118204628.GA24608@MAIL.13thfloor.at>

On Sat, Nov 18, 2006 at 01:05:48PM +0100, Oliver Heinz wrote:
> Am Freitag, 17. November 2006 18:48 schrieb Oliver Heinz:
> > Am Freitag, 17. November 2006 17:49 schrieb Herbert Poetzl:
> > > On Fri, Nov 17, 2006 at 11:05:52AM +0100, Oliver Heinz wrote:
> > > > Am Donnerstag, 16. November 2006 13:11 schrieb Daniel Hokka Zakrisson:
> > > > > Oliver Heinz wrote:
> > > > > > Hello,
> > > > > >
> > > > > > yesterday I upgraded my development server from
> > > > > > vmlinuz-2.6.12.5-vs2.0 to 2.6.17.14-grsec2.1.9-vs2.0.2.1 and
> > > > > > util-vserver from util-vserver-0.30.210 to util-vserver-0.30.211.
> > > > > >
> > > > > > All Debian/Ubuntu guests are running fine, but for the old Suse9.0
> > > > > > guest when entering via vserver servername enter i get an error:
> > > > > >
> > > > > > root@gobi:/usr/src/packages# vserver dakar enter vlogin:
> > > > > > openpty(): No such file or directory root@gobi:/usr/src/packages#
> > > > > >
> > > > > > Any Idea what's wrong? Entering via ssh works fine, all services
> > > > > > are running, so it's not a major issue, just annoing.
> > > > >
> > > > > Does it have /dev/ptmx and a mounted /dev/pts? When you log in
> > > > > through ssh, what tty are you on?
> > > >
> > > > dakar:~ # w
> > > > 10:56:59 up 1 day, 1:03, 2 users, load average: 0.16, 0.16, 0.29
> > > > USER TTY LOGIN@ IDLE JCPU PCPU WHAT
> > > > oheinz ttyp1 10:28 11:22 0.10s 0.10s -bash
> > > > root ttyp2 10:56 0.00s 0.04s 0.00s w
> > >
> > > ~~~~~~~~~
> > > looks like legacy ptys .. haven't seen them
> > > for some time now, not sure that is related though ..
> >
> > I was wondering too, when I ssh to a real physical host with suse 9.0 and
> > kernel 2.4 I get ptys
> >
> > > what does /dev contain in your guest?
>
> Just those few devices that are SuSE default ;-)
>
> - I tried to attach the List but: Message body is too big and nobody
> approved it yet. Is there someting special you are interessted?
> ttys?pts?

ahem, this is what your guest should actually have in its
/dev, nothing more ...

# ls /dev
console full log= null ptmx pts/ random tty urandom zero

maybe an additional hdv1, but that's it, everything
else is not required and reduces your guest's security
which is why the tools do not put stuff there besides
the entries listed above ...

best,
Herbert

> TIA,
> Oliver
>
> > > TIA,
> > > Herbert
> > >
> > > > dakar:~ # mount
> > > > /dev/hda2 on / type reiserfs (rw)
> > > > proc on /proc type proc (rw)
> > > > devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
> > > >
> > > > dakar:~ # ls -la /dev/ptmx
> > > > crw-rw-rw- 1 root tty 5, 2 Sep 23 2003 /dev/ptmx
> > > >
> > > >
> > > > Thanks so far,
> > > > Oliver
> > > > _______________________________________________
> > > > Vserver mailing list
> > > > Vserver@list.linux-vserver.org
> > > > http://list.linux-vserver.org/mailman/listinfo/vserver
> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Sat Nov 18 20:48:45 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sat 18 Nov 2006 - 20:48:54 GMT by hypermail 2.1.8