OpenVZ Forum


Home » General » Support » Unable to open pty: No such file or directory (Unable to open pty: No such file or directory)
Re: Unable to open pty: No such file or directory [message #45110 is a reply to message #45026] Tue, 31 January 2012 01:37 Go to previous message
JimL is currently offline  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

 
Read Message
Read Message
Previous Topic: vzdummy-apache and vzdev for RHEL 6 templates
Next Topic: Disturb VMs in two HDD
Goto Forum:
  


Current Time: Thu Oct 02 18:41:32 GMT 2025

Total time taken to generate the page: 0.16029 seconds