OpenVZ Forum


Home » General » Support » *SOLVED* /dev/pts support in VE
*SOLVED* /dev/pts support in VE [message #14693] Fri, 06 July 2007 09:33 Go to next message
wilf is currently offline  wilf
Messages: 30
Registered: January 2007
Location: UK
Member
Hello,

I am running...
door linux-2.6.18 # uname -a
Linux door 2.6.18-028stab035 #1 SMP Thu Jul 5 08:00:10 BST 2007 x86_64 AMD Opteron(tm) Processor 848 AuthenticAMD GNU/Linux


I can see pts's in /dev:-
door linux-2.6.18 # ls /dev/pts*
0  1

However, the same command in the VE returns nothing.

What do I have to do to have pts's in a VE?

Best Regards, Paul.

[Updated on: Fri, 06 July 2007 20:59] by Moderator

Report message to a moderator

Re: /dev/pts support in VE [message #14694 is a reply to message #14693] Fri, 06 July 2007 09:42 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

have you compiled kernel yourself?
what OS is used inside VE?


http://static.openvz.org/userbars/openvz-developer.png
Re: /dev/pts support in VE [message #14695 is a reply to message #14694] Fri, 06 July 2007 09:48 Go to previous messageGo to next message
wilf is currently offline  wilf
Messages: 30
Registered: January 2007
Location: UK
Member
Yup, Vanilla 2.6.18 patched with patch-ovz028stab035.1-combined.gz, using kernel-2.6.18-x86_64-smp.config.ovz as .config, with a few changes to suit my devices.

As I said, base instance has pts's - Host os is Gentoo 2006.1, template is gentoo-20060317-amd64-stage3.tar.gz.

Best Regards, Paul.
Re: /dev/pts support in VE [message #14697 is a reply to message #14695] Fri, 06 July 2007 10:07 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

I guess you have to mount /dev/pts inside a VE, i.e. smth like
mount -t devpts devpts /dev/pts

OR if /dev/pts line is there in /etc/fstab just
mount /dev/pts


Probably stage3 doesn't do that for you


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: /dev/pts support in VE [message #14701 is a reply to message #14697] Fri, 06 July 2007 14:35 Go to previous messageGo to next message
wilf is currently offline  wilf
Messages: 30
Registered: January 2007
Location: UK
Member
Hi Kir,

Sorry for the delay, I have been distracted.

fstab doesn't even exist for the VE, which might explain it. Executing the mount command gives...
colo2 dev # mount -t devpts devpts /dev/pts
colo2 dev # ls /dev/pt*
/dev/ptmx  /dev/ptyp0  /dev/ptyp1  /dev/ptyp2  /dev/ptyp3  /dev/ptyp4  /dev/ptyp5

/dev/pts:
colo2 dev #
so it looks like the mount command works OK - there just aren't any pts's. Any (more) ideas? - and thanks,

Best Regards, Paul.
Re: /dev/pts support in VE [message #14702 is a reply to message #14701] Fri, 06 July 2007 14:42 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

I guess the problem is now solved -- you just need to make sure this mount executes somewhere during the course of VE booting (i.e. in /sbin/rc sysinit or else). Maybe you need to put the appropriate line in /etc/fstab for it to work.

As I know those /dev/pts/* entries are created dynamically -- ssh sessions and vzctl enter creates/uses these in some cases. Try ssh-ing into VE or use vzctl enter and see if there are some devices appearing.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: /dev/pts support in VE [message #14708 is a reply to message #14693] Fri, 06 July 2007 19:57 Go to previous message
wilf is currently offline  wilf
Messages: 30
Registered: January 2007
Location: UK
Member
Thanks Kir,

For your support.

Have a great weekend.

Best Regards. Paul.
Previous Topic: *SOLVED* Disk quota exceeded
Next Topic: *SOLVED* HN NAT Security
Goto Forum:
  


Current Time: Tue Sep 10 04:15:06 GMT 2024

Total time taken to generate the page: 0.04791 seconds