OpenVZ Forum


Home » General » Support » can't run X applications in Ubuntu 12.04 guest
can't run X applications in Ubuntu 12.04 guest [message #48980] Sat, 02 February 2013 05:22 Go to next message
chtlp is currently offline  chtlp
Messages: 3
Registered: February 2013
Junior Member
Hi, I am new to OpenVZ, and I have just installed Ubuntu 12.04 guest on a CentOS host machine. Everything works fine except that I can't run X applications over ssh in the guest machine.

I have installed xauth and turned on X11forwarding, but strangely $XAUTHORITY is not set and running xclock ouputs:

Error: Can't open display:

ssh -vvvY outputs the following log (this is the part of it related to x11):
debug2: x11_get_proto: /usr/local/bin/xauth list unix:17.0 2>/dev/null
debug1: Requesting X11 forwarding with authentication spoofing.
debug2: channel 0: request x11-req confirm 0
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug2: channel 0: request shell confirm 1
debug2: fd 3 setting TCP_NODELAY
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0
Welcome to Ubuntu 12.04.2 LTS (GNU/Linux 2.6.32-308.8.2.el5.028stab101.1 x86_64)


Does anyone has any clues how to solve this?

Best regards.
Re: can't run X applications in Ubuntu 12.04 guest [message #48982 is a reply to message #48980] Sat, 02 February 2013 17:37 Go to previous messageGo to next message
chtlp is currently offline  chtlp
Messages: 3
Registered: February 2013
Junior Member
About the problem, I checked that Ubuntu might not have a $XAUTHORITY variable, and in this case xauth should generate a .XAuthority file under $HOME folder, but for some reason my .XAuthority file is never generated.
Re: can't run X applications in Ubuntu 12.04 guest [message #48985 is a reply to message #48982] Mon, 04 February 2013 14:35 Go to previous messageGo to next message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
> Welcome to Ubuntu 12.04.2 LTS (GNU/Linux 2.6.32-308.8.2.el5.028stab101.1 x86_64)

do you use RHEL5-based kernel?
can you switch to RHEL6?
Re: can't run X applications in Ubuntu 12.04 guest [message #48986 is a reply to message #48985] Mon, 04 February 2013 14:48 Go to previous messageGo to next message
chtlp is currently offline  chtlp
Messages: 3
Registered: February 2013
Junior Member
Vaverin,

Yes, the server is running CentOS 5. Since it's a shared server, I am not sure If I can switch the kernel without causing any disruptions. Can you give some link on how to switch the kernel to RHEL6, or are you suggesting upgrading the system to CentOS 6? (I am still a newbie to Linux, so sorry if I am a little mistaken here.)

Best.
Re: can't run X applications in Ubuntu 12.04 guest [message #48987 is a reply to message #48986] Mon, 04 February 2013 15:39 Go to previous message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
you can install our RHEL6 based kernel and install it on CentOS5 node, it should work.

http://download.openvz.org/kernel/branches/rhel6-2.6.32/042s tab072.10

I've checked right now, xclock inside ubuntu 12.04 container works well on my test node with RHEL6-based kernel
Previous Topic: kernel 3.5 missing?
Next Topic: ID Problem running vzdump
Goto Forum:
  


Current Time: Tue Jul 01 23:16:56 GMT 2025

Total time taken to generate the page: 0.05370 seconds