OpenVZ Forum


Home » General » Support » xorg installation problem in virtual machine (Cannot open tty0)
xorg installation problem in virtual machine (Cannot open tty0) [message #4044] Tue, 27 June 2006 15:19 Go to next message
rverlind is currently offline  rverlind
Messages: 3
Registered: May 2006
Location: Belgium
Junior Member
I am using the OpenVZ 2.6.16-026test012 kernel patch on a x86_64 Debian host system.

When trying to run Xorg from within an Debian Unstable virtual machine I get the following error (Complete Xorg log at the bottom of the message) :

Quote:


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



When I look for the different TTY devices I get the following (ls -al /dev/tty*) and I can not change the permission on tty0.

Quote:


crw-rw-rw- 1 root tty 5, 0 Jun 27 15:05 /dev/tty
crw-r--r-- 1 root root 4, 0 Jun 26 13:48 /dev/tty0



Can anybody give me a hint on how to proceed getting xorg working inside the virtual machine?

regards,
RUben



Quote:


X Window System Version 7.0.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 7.0
Build Operating System:Linux 2.6.16-1-vserver-amd64-k8 x86_64
Current Operating System: Linux STARIntra204 2.6.16-026test012 #1 SMP Mon May 15 15:36:29 CEST 2006 x86_64
Build Date: 16 March 2006
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: Tue Jun 27 14:42:33 2006
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Default Layout"
(**) |-->Screen "Screen0" (0)
(**) | |-->Monitor "Monitor0"
(**) | |-->Device "Videocard0"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(**) Option "XkbModel" "pc105"
(**) XKB: model: "pc105"
(**) Option "XkbLayout" "be"
(**) XKB: layout: "be"
(==) Keyboard: CustomKeycode disabled
(**) FontPath set to " unix/:7100,/usr/share/fonts/X11/misc/,/usr/share/fonts/X11/T TF/,/usr/share/fonts/X11/OTF,/usr/share/fonts/X11/Type1/,/us r/share/fonts/X11/CID/,/usr/share/fonts/X11/100dpi/,/usr/sha re/fonts/X11/75dpi/ "
(==) RgbPath set to "/usr/share/X11/rgb"
(==) ModulePath set to "/usr/lib/xorg/modules"
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.2
X.Org Video Driver: 0.8
X.Org XInput driver : 0.5
X.Org Server Extension : 0.2
X.Org Font Renderer : 0.4
(II) Loader running on linux
(II) LoadModule: "bitmap"
(II) Loading /usr/lib/xorg/modules/fonts/libbitmap.so
(II) Module bitmap: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.0
Module class: X.Org Font Renderer
ABI class: X.Org Font Renderer, version 0.4
(II) Loading font Bitmap
(II) LoadModule: "pcidata"
(II) Loading /usr/lib/xorg/modules/libpcidata.so
(II) Module pcidata: vendor="X.Org Foundation"
compiled for 7.0.0, module version = 1.0.0
ABI class: X.Org Video Driver, version 0.8

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


Re: xorg installation problem in virtual machine (Cannot open tty0) [message #4097 is a reply to message #4044] Wed, 28 June 2006 14:30 Go to previous messageGo to next message
rverlind is currently offline  rverlind
Messages: 3
Registered: May 2006
Location: Belgium
Junior Member
Just to be clear, I have read the following page on the wiki :
http://wiki.openvz.org/X_inside_VE

The difference is that I need to start X within the virtual machine to enable remote access using the nx ( http://www.nomachine.com ) libraries.

Ruben
Re: xorg installation problem in virtual machine (Cannot open tty0) [message #4119 is a reply to message #4044] Wed, 28 June 2006 18:12 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

from your quote it follows that your X is trying to access hardware, which looks really strange for me.

1. are you sure, that NX does the same as Xvnc? it should not require any direct hardware including tty's then. Also this should imply some limitations imho.

2. You can try to grant access to /dev/ttyX devices to VE. To do so, use:
host# vzctl set VEID --devnodes /dev/tty:rw
host# vzctl set VEID --devnodes /dev/tty0:rw


3. I recommend to update to 014 kernel Smile It should be much better and more stable.

4. you can try to give me an access and instruction on what you run/how to connect etc. I can try to help a bit.


http://static.openvz.org/userbars/openvz-developer.png
Re: xorg installation problem in virtual machine (Cannot open tty0) [message #4133 is a reply to message #4119] Thu, 29 June 2006 09:17 Go to previous messageGo to next message
rverlind is currently offline  rverlind
Messages: 3
Registered: May 2006
Location: Belgium
Junior Member
1. I believe NX really needs to start up the entire X environment on the server. As if you were really working on a screen and keyboard attached to that machine. So for the moment I actually try to start the X server using GDM.

2. Next week (after my short holiday Cool ) I will try to grant the VE access to the /dev/tty0 device the way you describe. I assume it is possible to grant multiple VEs access to the the hardware this way.

3. As for upgrading to test014, this will be also done after my holiday. Just need to remember how to get the 3ware 9550X-8 raid module in place to boot correctly.

4. I will first try to get it working myself. Need to learn a little bit more on OpenVZ VEs, X in OpenVZ VEs and X in general anyway. If I can not solve this problem anytime soon I will gladly accept your offer.

thx for the hints,
Ruben
Re: xorg installation problem in virtual machine (Cannot open tty0) [message #34381 is a reply to message #4133] Sat, 27 December 2008 02:18 Go to previous message
kjo.hansi.glaz
Messages: 7
Registered: December 2008
Junior Member
vzctl set <VEID> --devices c:4:7:rw --save

Makes tty7 working, but there is then the another problem
X :0 vt7

outputs
xf86PciVideoInfo is not set
Could not get primary PCI info
Aborted

Previous Topic: cannot remove openvz from Hypervm
Next Topic: Has anyone run more than 49 VEs?
Goto Forum:
  


Current Time: Tue Apr 16 07:05:28 GMT 2024

Total time taken to generate the page: 0.01829 seconds