Re: Unable to open pty: No such file or directory [message #45110 is a reply to message #45026] |
Tue, 31 January 2012 01:37  |
 |
JimL
Messages: 116 Registered: February 2007
|
Senior Member |
|
|
Apparently this wasn't limited to Centos 6. Since the Centos 6 kernel crashes, I booted up my old Centos 5 partition, migrated the container to a Fedora 14 system and it had the same problem. Now it worked OK still on Centos 5 but I want to get that system upgraded to Centos 6 but since the OpenVZ kernel won't run, I had to get my important containers working somewhere else.
It didn't work on Fedora either. I started poking around and found that the following worked for me. YMMV
In addition to the MAKEDEV entries I had to perform the following steps from the host:
vzctl exec 225 bash
rm /dev/null
mknod /dev/null c 1 3
chmod 666 /dev/null
mknod /dev/ptmx c 5 2
chmod 666 /dev/null
I did restart sshd and all is well. I haven't shut it down yet to see if it comes up OK, but that got it running again. I can
vzctl enter 225
and
ssh 192.168.2.25
So I'm happy. well maybe that's a stretch.
Jim.
Note: I had to create the ptys via MAKEDEV too.
[Updated on: Tue, 31 January 2012 01:38] Report message to a moderator
|
|
|