piavlo wrote on Thu, 21 August 2008 23:56 |
First checj that /dev/tty{1,2,3,4,.....} also exist, if they do
read on.
Omit /dev vzctl set 101 --devnodes tty0:rw
Also tty0 is the current virtual console, while real ttys start with tty1. I don't know how it interacts between VE and HN, but probably you need to give VE the access to the first free tty of HN
and not to tty0. By default in HN inittab allocates tty1 to tty6 for getty process. Now if you are also running X server on HN it uses tty7.
So probably you should give tty8 access to VE.
|
Hi piavlo,
Thanks for your advice and URL. Performed following steps;
[Host]# ps -ef | grep init | grep -v grep
root 1 0 0 20:59 ? 00:00:01 /sbin/init
root 5529 1 0 21:00 ? 00:00:00 init
[Host]# netstat -anp | grep init | grep -v grep
unix 2 [ ] DGRAM 6314 1/init @/com/ubuntu/upstart
[Host]# initctl list
control-alt-delete (stop) waiting
logd (stop) waiting
rc-default (stop) waiting
rc0 (stop) waiting
rc1 (stop) waiting
rc2 (stop) waiting
rc3 (stop) waiting
rc4 (stop) waiting
rc5 (stop) waiting
rc6 (stop) waiting
rcS (stop) waiting
rcS-sulogin (stop) waiting
sulogin (stop) waiting
tty1 (start) running, process 6314
tty2 (start) running, process 4853
tty3 (start) running, process 4856
tty4 (start) running, process 4850
tty5 (start) running, process 4851
tty6 (start) running, process 4857
[Host]# vzctl set 101 --devnodes tty8:rw
Setting devices
WARNING: Settings were not saved and will be resetted to original values on next
[Host]# vzctl set 101 --devnodes tty8:rw save
non-option ARGV-elements: save
[Host]# vzctl enter 101
[VE]# startx
X: warning; process set to priority -1 instead of requested priority 0
This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.
X.Org X Server 1.4.0.90
Release Date: 5 September 2007
X Protocol Version 11, Revision 0
Build Operating System: Linux Ubuntu (xorg-server 2:1.4.1~git20080131-1ubuntu9.2)
Current Operating System: Linux satimis-desktop32 2.6.24-19-openvz #1 SMP Sat Jul 12 05:02:33 UTC 2008 i686
Build Date: 13 June 2008 01:08:21AM
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Aug 23 15:06:23 2008
(==) Using config file: "/etc/X11/xorg.conf"
Fatal server error:
xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
giving up.
xinit: Connection reset by peer (errno 104): unable to connect to X server
xinit: No such process (errno 3): Server error.
[VE]# tail var/log/Xorg.0.log
(II) Module pcidata: vendor="X.Org Foundation"
compiled for 1.4.0.90, module version = 1.0.0
ABI class: X.Org Video Driver, version 2.0
Fatal server error:
xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
(WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
(WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
(WW) xf86OpenConsole: VT_GETSTATE failed: Bad file descriptor
Please help. TIA
B.R.
satimis