Jump to: navigation, search
no edit summary
In the previous chapter we looked at enabling VNC support in domain0 for the purpose of providing a remote graphical display for a Xen domainU guest. This approach works well in situations where only one graphical desktop is required. In situations where multiple graphical desktops are required (for example, it is quite likely that more than one user will want to be logged into a desktop at any one time) it is necessart necessary to run instances of the VNC server on the domainU guest rather than rely on the VNC support provided by domain0. The purpose of this chapter is to describe in detail how to achieve such a configuration.
== Installing VNC on the Xen domainU Guest ==
The very first step in the configuration process involves ensuring that VNC support is installed on the domainU guest. As domainU systems often use a mininal minimal configuration it is possible that VNC has yet to be installed. the The precise steps to install VNC vary between distributions. Check the documentation for your chosen distribution if you are unsure. A few examples are:
For Red Hat Linux, CentOS and Fedora:
The ''vncserver'' tool will prompt for a password which will be required each time a remote user attempts to connect to the desktop. At this prompt enter a suitable password to protect access to the desktop. Once a suitable password has been provided vncserver will start a new desktop in the background connected to port 5901 ready for a remote user to connect to using ''vncviewer''. The following transcript shows the typical output from an initial launcd launch of a vncserver session:
To establish a secure connected connection we need to use SSH tunneling to establish an encrypted connection. This is achieved by first establishing the tunnel using the ''ssh'' command. In doing so we will map port 5901 on our local system to port 5901 on the remote domainU system (assuming that the VNC session is configured on display :1). This connection would be established as follows:
== Configuring the Xen domainU Desktop Environment ==
When the desktop appears you will notice that it doesn't look much like the standard desktop you would expect to see on most modern Linux distributions. In fact it may will look something like the following figure:

Navigation menu