OpenVZ Forum


Home » Mailing lists » Users » /dev/tty0
/dev/tty0 [message #13904] Thu, 07 June 2007 12:05 Go to next message
Jun OKAJIMA is currently offline  Jun OKAJIMA
Messages: 30
Registered: March 2006
Member
From: openvz.org
I can not open /dev/tty0.
"DEVICES="c:4:all:rw" does not help.

/dev/tty works, but /dev/tty0 does not.
This is feature? or possible to solve this?
It is Okay to run Apache/Sendmail,
but a bit inconvienient for debugging or development or such purposes.

OpenVZ version: 2.6.18-028stab033

--- Okajima, Jun. Tokyo, Japan.

[ If you dont add "DEVICES=c:4:all:rw" line to vps.conf ]
# cat /dev/tty0
cat: /dev/tty0: Permission denied
[ If you add "DEVICES=" to vps.conf ]
# cat /dev/tty0
cat: /dev/tty0: No such device
( anyway, you can not access /dev/tty0. Why? This is inevitable feature? )
# ls -la /dev/tty0
crw------- 1 root tty 4, 0 May 6 11:39 /dev/tty0
# uname -r
2.6.18-028stab033
Re: /dev/tty0 [message #13909 is a reply to message #13904] Thu, 07 June 2007 14:38 Go to previous messageGo to next message
Jun OKAJIMA is currently offline  Jun OKAJIMA
Messages: 30
Registered: March 2006
Member
From: openvz.org
I still have not solved this issue.
You change something on /dev/tty[0-9] in a VE?
I guess they are not same as usual ones.

-----

I can not open /dev/tty0.
"DEVICES="c:4:all:rw" does not help.

/dev/tty works, but /dev/tty0 does not.
This is feature? or possible to solve this?
It is Okay to run Apache/Sendmail,
but a bit inconvienient for debugging or development or such purposes.

OpenVZ version: 2.6.18-028stab033

--- Okajima, Jun. Tokyo, Japan.

[ If you dont add "DEVICES=c:4:all:rw" line to vps.conf ]
# cat /dev/tty0
cat: /dev/tty0: Permission denied
[ If you add "DEVICES=" to vps.conf ]
# cat /dev/tty0
cat: /dev/tty0: No such device
( anyway, you can not access /dev/tty0. Why? This is inevitable feature? )
# ls -la /dev/tty0
crw------- 1 root tty 4, 0 May 6 11:39 /dev/tty0
# uname -r
2.6.18-028stab033
Re: /dev/tty0 [message #13911 is a reply to message #13909] Thu, 07 June 2007 15:17 Go to previous message
Jun OKAJIMA is currently offline  Jun OKAJIMA
Messages: 30
Registered: March 2006
Member
From: openvz.org
Ummm?? Maybe here is the problem? What is ve_is_super()???

@@ -2506,6 +2603,12 @@ retry_open:
#ifdef CONFIG_VT
if (device == MKDEV(TTY_MAJOR,0)) {
extern struct tty_driver *console_driver;
+#ifdef CONFIG_VE
+ if (!ve_is_super(get_exec_env())) {
+ mutex_unlock(&tty_mutex);
+ return -ENODEV;
+ }
+#endif
driver = console_driver;
index = fg_console;

----------

I still have not solved this issue.
You change something on /dev/tty[0-9] in a VE?
I guess they are not same as usual ones.

-----

I can not open /dev/tty0.
"DEVICES="c:4:all:rw" does not help.

/dev/tty works, but /dev/tty0 does not.
This is feature? or possible to solve this?
It is Okay to run Apache/Sendmail,
but a bit inconvienient for debugging or development or such purposes.

OpenVZ version: 2.6.18-028stab033

--- Okajima, Jun. Tokyo, Japan.

[ If you dont add "DEVICES=c:4:all:rw" line to vps.conf ]
# cat /dev/tty0
cat: /dev/tty0: Permission denied
[ If you add "DEVICES=" to vps.conf ]
# cat /dev/tty0
cat: /dev/tty0: No such device
( anyway, you can not access /dev/tty0. Why? This is inevitable feature? )
# ls -la /dev/tty0
crw------- 1 root tty 4, 0 May 6 11:39 /dev/tty0
# uname -r
2.6.18-028stab033
Previous Topic: trouble with veth device in combination with long veid
Next Topic: Can I use openvz in Ubuntu 7.04 for amd_64?
Goto Forum:
  


Current Time: Wed Aug 21 17:49:26 GMT 2019