OpenVZ Forum


Home » General » Support » unable to open pty while entering - tried common solutions..
unable to open pty while entering - tried common solutions.. [message #32830] Mon, 01 September 2008 14:52 Go to next message
lj2012 is currently offline  lj2012
Messages: 7
Registered: February 2008
Location: Antwerp - Belgrium
Junior Member

Hi there,

I was following the Physical to VE howto.

After moving everything up, creating the pty and tty devs (MAKEDEV pty and MAKEDEV tty) I got
[root@bozar dev]# vzctl enter 4405
enter into VE 4405 failed
Unable to open pty: No such file or director
y

I tried:
- copying /dev from working VE
- copying /dev from main host
- starting udev inside VE

but no result:

[root@bozar dev]# vzctl exec 4405 /sbin/udevd -d
[root@bozar dev]# ps ax | grep udev
 2198 ?        S<s    0:00 /sbin/udevd -d
15120 ?        S<s    0:00 /sbin/udevd -d
15128 pts/4    S+     0:00 grep udev
[root@bozar dev]# vzpid 15120
Pid     VEID    Name
15120   4405    udevd
[root@bozar dev]# vzctl enter 4405
enter into VE 4405 failed
Unable to open pty: No such file or directory
[root@bozar dev]# vzctl exec 4405 MAKEDEV pty
[root@bozar dev]# vzctl exec 4405 MAKEDEV tty
[root@bozar dev]# vzctl exec 4405 ls /dev/
MAKEDEV
bus
console
core
fd
initctl
kmem
log
loop0
net
null
ppp
pts
shm
sndstat
stderr
stdin
stdout
xconsole
[root@bozar dev]# vzctl enter 4405
enter into VE 4405 failed
Unable to open pty: No such file or directory
[root@bozar dev]# ps aux | grep udev
root      2198  0.0  0.0  13248  1108 ?        S<s  Aug29   0:00 /sbin/udevd -d
root     15120  0.0  0.0   2264   564 ?        S<s  16:40   0:00 /sbin/udevd -d
root     22957  0.0  0.0  61124   744 pts/4    S+   16:46   0:00 grep udev
[root@bozar dev]# vzpid 15120
Pid     VEID    Name
15120   4405    udevd
[root@bozar dev]# kill 15120
[root@bozar dev]# ps aux | grep udev
root      2198  0.0  0.0  13248  1108 ?        S<s  Aug29   0:00 /sbin/udevd -d
root     22967  0.0  0.0  61128   748 pts/4    S+   16:46   0:00 grep udev
[root@bozar dev]# vzpid 2198
Pid     VEID    Name
2198    0       udevd
[root@bozar dev]# vzctl exec 4405 MAKEDEV tty
[root@bozar dev]# vzctl exec 4405 MAKEDEV pty
[root@bozar dev]# vzctl enter 4405
enter into VE 4405 failed
Unable to open pty: No such file or directory


I'm out of options.

/etc/vz/conf/4405.conf :
#{...}
ONBOOT="yes"

# UBC parameters (in form of barrier:limit)
KMEMSIZE="11055923:11377049"
LOCKEDPAGES="256:256"
PRIVVMPAGES="65536:69632"
SHMPAGES="21504:21504"
NUMPROC="240:240"
PHYSPAGES="0:2147483647"
VMGUARPAGES="33792:2147483647"
OOMGUARPAGES="26112:2147483647"
NUMTCPSOCK="360:360"
NUMFLOCK="188:206"
NUMPTY="16:16"
NUMSIGINFO="256:256"
TCPSNDBUF="1720320:2703360"
TCPRCVBUF="1720320:2703360"
OTHERSOCKBUF="1126080:2097152"
DGRAMRCVBUF="262144:262144"
NUMOTHERSOCK="360:360"
DCACHESIZE="3409920:3624960"
NUMFILE="9312:9312"
AVNUMPROC="180:180"
NUMIPTENT="128:128"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="10485760:11530240"
DISKINODES="200000:220000"
QUOTATIME="0"

# CPU fair sheduler parameter
CPUUNITS="1000"


IP_ADDRESS="87.237.9.208"
HOSTNAME="test"
NAMESERVER="85.158.210.68"
#DEVNODES="pty:rw pty0:rw"



Re: unable to open pty while entering - tried common solutions.. [message #32833 is a reply to message #32830] Mon, 01 September 2008 15:35 Go to previous messageGo to next message
lj2012 is currently offline  lj2012
Messages: 7
Registered: February 2008
Location: Antwerp - Belgrium
Junior Member

sorry: found it:
turns out udev had to be stopped/renamed anyway... Still a mystery to me since it didn't popped up in

vzctl exec 4405 ps aux | grep udev 


Anyway, I did:

vzctl exec 4405 /bin/bash
/etc/init.d/udev stop
mv /etc/init.d/udev /etc/init.d/udev.bak
cd /dev
MAKEDEV pty
MAKEDEV tty
exit
vzctl stop 4405
vzctl start 4405

et voila.
Let me know if this is stupid and breaks other things in ubuntu.. (exept for the udev upgrades...)
Thanks anyway,
L.
Re: unable to open pty while entering - tried common solutions.. [message #32851 is a reply to message #32830] Tue, 02 September 2008 20:01 Go to previous messageGo to next message
piavlo is currently offline  piavlo
Messages: 159
Registered: January 2007
Senior Member
Looks like with udev you have devpts mounted under /dev/pts
but you don't have the pts multeplexer device /dev/ptmx
if you create it, it should work also with udev.
Re: unable to open pty while entering - tried common solutions.. [message #32896 is a reply to message #32851] Mon, 08 September 2008 03:03 Go to previous messageGo to next message
jakob is currently offline  jakob
Messages: 19
Registered: June 2008
Junior Member
piavlo wrote on Tue, 02 September 2008 16:01

Looks like with udev you have devpts mounted under /dev/pts
but you don't have the pts multeplexer device /dev/ptmx
if you create it, it should work also with udev.
I hit the same problem, but /dev/ptmx existed and looked good.
Looks like all Ubuntu Hardy VEs are affected by this.
Re: unable to open pty while entering - tried common solutions.. [message #34715 is a reply to message #32833] Tue, 27 January 2009 15:52 Go to previous message
lj2012 is currently offline  lj2012
Messages: 7
Registered: February 2008
Location: Antwerp - Belgrium
Junior Member

sometimes udev is started from within rc.sysinit. Commenting out en making devices again works.

# vzctl exec 4444 vi /etc/rc.sysinit

(search for start_udev and comment out)

# vzctl exec 4444 cat /etc/rc.sysinit | grep udev
##/sbin/start_udev

# vzctl exec 4444 bash
cd /dev
MAKEDEV pty
MAKEDEV tty
exit

# vzctl stop 4444
# vzctl start 4444

Previous Topic: Trying to get openVZ running on Dell
Next Topic: Single IP not reachable from within VE
Goto Forum:
  


Current Time: Thu Apr 25 17:29:48 GMT 2024

Total time taken to generate the page: 0.01588 seconds