Unable to open pty: No such file or directory

# vzctl enter 1011
enter into VE  1011failed
Unable to open pty: No such file or directory
The fix is

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

Restart that VE.