vzctl enter VZID: Unable to open pty: No such file or directory

Issue :

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

———————————

Solution 1:

1. Edit the file /etc/rc.sysinit of the VPS server

2. Comment the line
#/sbin/start_udev

3. Add the following lines after /sbin/start_udev:

/sbin/MAKEDEV tty
/sbin/MAKEDEV pty

4. Reboot your VPS
vzctl restart VEID

Solution 2:

# vzctl exec 101 /sbin/MAKEDEV tty
# vzctl exec 101 /sbin/MAKEDEV pty
# vzctl enter 101

Now do the following, to find the udave package name as follows.

# rpm -qf /etc/udev/makedev.d/50-udev.nodes
udev-095-14.9.el5
# rpm -e udev-095-14.9.el5 –nodeps

Restart VE

NOTE: If the issue still persists then try to remount /dev/pts

try your own risk : vzctl exec vzid ‘ mount -v -t devpts none /dev/pts’

For more details contact linuxmaster007@gmail.com

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.