Tuesday, January 19, 2010

Unable to enter into vps node

Unable to open pty: No such file or directory
You may receive the following message on entering a VPS:
# vzctl enter 101
enter into VE 101 failed
Unable to open pty: No such file or directory
The reason behind this is the missing tty/pty files . You can create it using the MAKEDEV program, execute the following commands on the host server ( main node ).
# vzctl exec VEID /sbin/MAKEDEV tty
# vzctl exec VEID /sbin/MAKEDEV pty
Replace VEID with your actual vps id . In our example its 101 .

Restart vps .

#vzctl restart VEID
Thats a temporary fix. To Fix this issue permanently follow the below steps after entering to your vps client node (101 in our case) .
1) #vzctl enter VEID
2) Edit the file /etc/rc.sysinit
3) Comment the line
#/sbin/start_udev
4) Add the following lines after /sbin/start_udev:
/sbin/MAKEDEV tty
/sbin/MAKEDEV pty
5) Reboot your VPS client node .
vzctl restart VEID
You can also access the file /etc/rc.sysinit for the node 101 from the main VPS node . It should be from /vz/private/VEID/etc/rc.sysinit .

You can also try the below steps by updating the startup files

# vzctl exec VEID update-rc.d -f udev remove
# vzctl restart veid
Above fixes may not work for ubuntu servers . In that case you can try the below command
# vzctl exec VEID ‘dpkg –force-depends –purge udev’

No comments:

Post a Comment