Today we can across one VPS having issues with pusedo terminal access. While entering into the vps from the openvz hardware node we received the following error.
enter into VE 701 failed
Unable to open pty: No such file or directory
Thanks for the openvz community who helped us to fix this problem with the following fix.
Code:
vzctl exec VEID /sbin/MAKEDEV pty
vzctl exec VEID /sbin/MAKEDEV tty
vzctl enter VEID
To Fix this issue permanently:
1. Edit the file /etc/rc.sysinit of the VPS server
2. Comment the line
3. Add the following lines after /sbin/start_udev:
Code:
/sbin/MAKEDEV tty
/sbin/MAKEDEV pty
4. Reboot your VPS
OR
Code:
vzctl exec veid update-rc.d -f udev remove
vzctl restart veid
Hopefully the above commands should help you fix your issues as well.