How to fix “Unable to open pty: No such file or directory” error in OpenVZ

September 11th, 2008 Categories: Hot Tips


For some odd reason, one of the VPS’s on my OpenVZ Virtual Server sometimes looses the /dev/pty device files – I don’t know why, but it happens.

So, a quick fix, is to run the following commands, as root, on the main host node.:

In my case, the VPS’s ID is 1001.

So, the command I have to run is

vzctl exec 1001 /sbin/MAKEDEV pty

This will then re-create the /dev/pty device, and the VPS will work again

Tags: , , , ,
No comments yet.
You must be logged in to post a comment.