OpenVZ Forum


Home » General » Support » VE fails to startx
Re: VE fails to startx [message #32701 is a reply to message #32696] Mon, 25 August 2008 07:02 Go to previous messageGo to previous message
satimis is currently offline  satimis
Messages: 39
Registered: August 2008
Member
piavlo wrote on Mon, 25 August 2008 06:34

Probably X server (like getty) requires direct access to HN console/tty and probably you just can't have it in VE.

To verfy this would you mind performing the following test?:
Let's check if you can get virtual console with getty in VE
get displayed on HN monitor( just like like HN getty's which can be
accessed with Ctrl+Alt+F*)
1)First of all,if you have any, stop X server on HN, so that /dev/tty7 is not occupied by it.
2)In VE create for upstart /etc/event.d/tty7 (similar to
/etc/event.d/tty{1,2,3,4,5,6} in HN) and make sure it actually uses
tty7
3) Give VE access to /dev/tty{0,7}
vzctl set 101 --devnodes tty0:rw
vzctl set 101 --devnodes tty7:rw
(don't know if /dev/tty0 is needed)
4)start your VE
5)Check in front of HN monitor if Ctrl+Alt+F7 gives you
the virtual console of your VE.


Hi piavlo,


Ubuntu is running as Host here. The problem on Ubunut is without init 2/3/etc, only graphic and non-graphic modes. I can't do anything on grub menu. I tried it previously. On grub menu I have to select graphic/non graphic modes. On non-graphic mode it drops to root shell as rescue mode. I tried the OpenVZ kernel rescue mode. On root shell vzctl is not started. Nothing I can do.


I tried booting up Ubuntu. Pressed [Ctrl]+F3 switching to non graphic mode. However X is running. Ignoring it performed follows;

[Host]# vzctl stop 101

[Host]# initctl list
showing tty7 is not running

[Host]# vzctl create 101 --devnodes /etc/event.d/tty7
101: unrecognized option `--devnode'

[Host]# vzctl create 101 --device /etc/event.d/tty7
101: unrecognized option `--device'

Unable to proceed further.


Quote:


Anyway the proper way to go is to use vnc server or XDMCP (which do not require console access) like explained in. http://wiki.openvz.org/X_inside_VE. Anyway you need real X server
in VE only if you use the HN as your desktop station and want to run X server inside VE and not HN (hard to believe you actually want this).

I tried it before unable to to start/forward X. Then I tried entering VE to start X there to see whether it will work.


B.R.
satimis
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Troubleshooting VE start failure
Next Topic: booting kernel with raid and lvm
Goto Forum:
  


Current Time: Tue Jul 29 22:31:50 GMT 2025

Total time taken to generate the page: 0.06052 seconds