On OpenVZ server can happen issue with pty & tty

Error:
vzctl enter VEID
enter into VE VEID failed
Unable to open pty: No such file or directory

Here's the Fix:

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
#/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