OpenVZ Forum


Home » General » Support » Unable to open pty
Unable to open pty [message #24419] Wed, 05 December 2007 02:25 Go to next message
nakamine3 is currently offline  nakamine3
Messages: 2
Registered: December 2007
Location: Japan
Junior Member
Hi, I got same problem as the url below after I finished the
command "yum group install "Development Tools".

http://forum.openvz.org/index.php?t=msg&goto=8974&

# vzctl enter 1200
enter into VE 1200 failed
Unable to open pty: No such file or directory

# uname -a
Linux example.jp 2.6.9-023stab044.4 #1 Mon May 28 23:00:20 MSD 2007 i686 athlon i386 GNU/Linux

Does anyone have a solution?
Re: Unable to open pty [message #24558 is a reply to message #24419] Thu, 06 December 2007 10:43 Go to previous messageGo to next message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
Could you please specify VE template?
Re: Unable to open pty [message #24630 is a reply to message #24558] Fri, 07 December 2007 04:50 Go to previous messageGo to next message
nakamine3 is currently offline  nakamine3
Messages: 2
Registered: December 2007
Location: Japan
Junior Member
Thanks for reply.

os template is centos-4-i386-default.

If you need any other information, I can post it upon request.
Re: Unable to open pty [message #24640 is a reply to message #24630] Fri, 07 December 2007 07:05 Go to previous messageGo to next message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
"vzctl enter" fails because it cannot find device file. Centos 4 uses udev to create device files. If Your VE uses udev -- it should create this device file inside Your VE automaticaly,
If your VE does not use udev -- it should have pre-dreated devices files inside /dev directory.

- Could You please check is udev started inside Your VE (ps ax | grep udev)?
- Could You please show the mounts inside Your VE (cat /proc/mounts)
- Could You please show existing device files inside Your VE (ls /dev -al)?

thank You,
Vasily Averin
Re: Unable to open pty [message #29408 is a reply to message #24419] Sat, 12 April 2008 09:32 Go to previous messageGo to next message
SoftDux is currently offline  SoftDux
Messages: 55
Registered: November 2007
Location: Johannesburg, South Afric...
Member
Hi

I've setup a VE using the centos-5-i386-default template, configured the IP's & networking, entered the VE, setup cPanel (which took about 2 / 3 hours), configured the hosting, and setup the first hosting client. I then wanted to increase the diskspace,but it didn't give me the added space. So I rebooted the VE, and got the same error.


Here's the output:

[root@gandalf ~]# vzctl enter 1001
enter into VE 1001 failed
Unable to open pty: No such file or directory

[root@gandalf ~]# vzctl exec 1001 ps ax|grep udev
 5331 ?        S<s    0:00 /sbin/udevd -d

[root@gandalf ~]# vzctl exec 1001 cat /proc/mounts
simfs / simfs rw 0 0
/proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
none /dev tmpfs rw 0 0
none /dev/pts devpts rw 0 0
simfs (deleted)\040/var/tmp simfs rw,nosuid,noexec 0 0

[root@gandalf ~]# vzctl exec 1001 ls /dev -al
total 8
drwxr-xr-x  7 root root    680 Apr 12 11:24 .
drwxr-xr-x 21 root root   4096 Apr 12 11:25 ..
drwxr-xr-x  2 root root     60 Apr 12 11:24 .udev
lrwxrwxrwx  1 root root     13 Apr 12 11:24 MAKEDEV -> /sbin/MAKEDEV
lrwxrwxrwx  1 root root      4 Apr 12 11:24 X0R -> null
crw-------  1 root root   5, 1 Apr 12 11:24 console
lrwxrwxrwx  1 root root     11 Apr 12 11:24 core -> /proc/kcore
lrwxrwxrwx  1 root root     13 Apr 12 11:24 fd -> /proc/self/fd
prw-------  1 root root      0 Apr 12 11:24 initctl
srw-rw-rw-  1 root root      0 Apr 12 11:24 log
brw-r-----  1 root disk   7, 0 Apr 12 11:24 loop0
brw-r-----  1 root disk   7, 1 Apr 12 11:24 loop1
brw-r-----  1 root disk   7, 2 Apr 12 11:24 loop2
brw-r-----  1 root disk   7, 3 Apr 12 11:24 loop3
brw-r-----  1 root disk   7, 4 Apr 12 11:24 loop4
brw-r-----  1 root disk   7, 5 Apr 12 11:24 loop5
brw-r-----  1 root disk   7, 6 Apr 12 11:24 loop6
brw-r-----  1 root disk   7, 7 Apr 12 11:24 loop7
drwxr-xr-x  2 root root     40 Apr 12 11:24 mapper
drwxr-xr-x  2 root root     60 Apr 12 11:24 net
crw-rw-rw-  1 root root   1, 3 Apr 12 11:24 null
crw-rw----  1 root lp    99, 0 Apr 12 11:24 parport0
crw-rw----  1 root lp    99, 1 Apr 12 11:24 parport1
crw-rw----  1 root lp    99, 2 Apr 12 11:24 parport2
crw-rw----  1 root lp    99, 3 Apr 12 11:24 parport3
crw-------  1 root root 108, 0 Apr 12 11:24 ppp
drwxr-xr-x  2 root root      0 Apr 12 11:24 pts
drwxr-xr-x  2 root root     40 Apr 12 11:24 shm
lrwxrwxrwx  1 root root     15 Apr 12 11:24 stderr -> /proc/self/fd/2
lrwxrwxrwx  1 root root     15 Apr 12 11:24 stdin -> /proc/self/fd/0
lrwxrwxrwx  1 root root     15 Apr 12 11:24 stdout -> /proc/self/fd/1
crw-rw-rw-  1 root root   5, 0 Apr 12 11:24 tty
-rw-r--r--  1 root root    512 Apr 12 11:24 urandom
crw-rw-rw-  1 root root   1, 5 Apr 12 11:24 zero



What am I doing wrong?


Here's the /etc/vz/conf/1001.conf file

ONBOOT="yes"

# UBC parameters (in form of barrier:limit)
KMEMSIZE="11055923:11377049"
LOCKEDPAGES="256:256"
PRIVVMPAGES="256000:262140"
SHMPAGES="21504:21504"
NUMPROC="240:240"
PHYSPAGES="0:2147483647"
VMGUARPAGES="131072: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="15728640:16777216"
DISKINODES="600000:660000"
QUOTATIME="0"

# CPU fair sheduler parameter
CPUUNITS="1000"


VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/$VEID"
OSTEMPLATE="centos-5-i386-default"
ORIGIN_SAMPLE="vps.basic"
HOSTNAME="vps03.softdux.com"
IP_ADDRESS="xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx xxx.xxx.xxx"
NAMESERVER="4.2.2.2"

Re: Unable to open pty [message #30207 is a reply to message #24419] Fri, 16 May 2008 09:42 Go to previous messageGo to next message
mastersherin is currently offline  mastersherin
Messages: 35
Registered: January 2007
Location: India
Member

Hello,

Fix here : http://www.sherin.in/index.php/2008/05/15/unable-to-open-pty -no-such-file-or-directory/

Ty


Sherinmon A,

Re: Unable to open pty [message #33224 is a reply to message #30207] Wed, 01 October 2008 09:14 Go to previous message
ittec is currently offline  ittec
Messages: 41
Registered: February 2008
Member
Hi

this problem seems to be very common. There are a lot of solutions on forum but i don't know which is better beacause i don't know if udev is really useful to my VPS.

Are you agree with this solution?

http://forums.openitc.co.uk/index.php?topic=3.0

Is bad to unable udev?

Thanks
Previous Topic: bnx2 module missing
Next Topic: iptables NAT support for a single container
Goto Forum:
  


Current Time: Sat Nov 16 10:12:37 GMT 2024

Total time taken to generate the page: 0.03198 seconds