Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

X inside VE

330 bytes added, 09:03, 13 April 2016
Using Xephyr: changed comma to dot in DISPLAY value
=== Single application ===
To run an X application inside a [[container]], one need needs simply to connect to a container with '''ssh -X''':
<pre>
host# ssh -2 -c blowfish -X user@address
Change your display settings (don't forget to change them back after you establish a connection)
<pre>DISPLAY=:1,.0</pre>
Forward your application or desktop over ssh to Xephyr
===== GDM =====
Edit the '''gdm.conf''' file and in xdmcp section, comment out the '''0=standard ''' line under the [servers] section - this will prevent gdm from trying to launch an X server on the local machine - it will simply listen for xdmcp requests. Insert '''0=inactive''' in [servers] section. Insert '''Enable=1''' in [xdmcp] section. Also, change from VCAllocation=true to VTAllocation=false and comment out the FirstVT=7 lineif that lines exists. Change the access restrictions (if any) to suit your needs and then start GDM.
=== Client/Host Configuration ===
=== Errata ===
On a side note, as of December 2007, I was never able to successfully get an Xserver to run inside a container and have the display output onto virtual-terminal 7 (the Xserver default), However, you can get an Xserver running on the hostnode to display output on virtual-terminal 7 without any special configuration (as the hostnode has direct access to all necessary devices).
 
Another user has done this with XDM and X. Just follow the directions on the wiki. It is possible.
== See also ==
* [[NX inside containerVE]]
== External links ==
* http://www.myatus.co.uk/2009/08/24/x-server-with-sound-inside-an-openvz-proxmox-container/
* http://forum.openvz.org/index.php?t=tree&th=235&mid=1115&&rev=&reveal=
* http://ait.web.psi.ch/services/linux/kde-desktop-sharingsoftware/local/by_task/desktop_sharing/index.htmhtml
* http://ait.web.psi.ch/services/ssh/vnc-ssh.html
* http://www.vnc.com/pipermail/vnc-list/2002-July/031831.html
Anonymous user