We currently migrate to MediaWiki from our old installation, but not all content has been migrated yet. Take a look at the Wiki Team page for instructions how to help or browse through our new wiki at wiki.linux-vserver.org to find the information already migrated.
This page has been made to answer the questions related to running X ( XFree86 and XOrg ) in a Vserver.
There are two main things you might want to do relating to X:
1 Run an X server on the physical machine that the Vserver is running on, and log in on the keyboard, mouse, and monitor that are connected to the hardware the host and vserver run on.
2 Connect from an Xserver on a different machine, and log into a desktop that is running on the Vserver.
3 Run an X server on the host and connect to the vserver (I haven't tried this, but I can't imagine that there would be any problems - this should be pretty much the same as option 2. However, you would need to make sure that running the X server on the host didn't create any security concerns - -nolisten tcp should be used for example.)
Running an X server inside a vserver
All the stuff below is written from memory - I don't have access to the machine I did this on right now, so I'll have to come back later, and fill in the blanks.
Running an X session on a vserver
Using ssh X forwarding to get the gui of the apps you want.
using ssh has the advantage that
1.its easier
2. you don't have to get the whole X session instead only the prgram you want.
3. its safer.
heres how.
1.first make use your guest has an ip and a hostname.
2. install open-ssh server onto the guest.
3. edit the file /etc/ssh/sshd_config to include X11UseLocalhost? no
4. /etc/ini.d/ssh restart. now give root a password using passwd
5. exit from the guest
6 ssh -l root <ip addr> -X
7 enter passwd
8 now if you have logged into you guest then good otherwise turnoff the ssh client from your host (anyone know how to not disable it)
and then again go into your vserver and /etc/ini.d/ssh restart
9. once you can ssh into the guest do echo $DISPLAY
you get something like this sid2.mydomain.com:10.0.
10. enter xeyes and see if you get any thing. (you must have a X server running on your host or whereever you are sshing from)
11. if it does not work try ping <hostname for me it sid2.mydomain.com)
12. if it does not work then do nano /etc/hosts and enter the lines
<ip addr> <vserver name> <hostname>
<ip addr> localhost.localdomain localhost
13. then try pinging it should work now.