You can get the following error on OpenVZ hosts.
# vzctl enter 123 enter into CT 123 failed Unable to open pty: No such file or directory
To fix this, you can re-create the pty and tty devices from the hardware node.
# vzctl exec 123 /sbin/MAKEDEV tty # vzctl exec 123 /sbin/MAKEDEV pty
The vzctl enter should work again.