Citrix Systems 5.5.0 Washer User Manual


 
XenServer Virtual Machine Installation Guide Installing Linux VMs 23
[servers]
0=VNC
[server-VNC]
name=VNC
command=/usr/bin/Xvnc -geometry 800x600 -PasswordFile /etc/vncpass BlacklistTimeout=0
flexible=true
5. Restart GDM, and then wait for the graphical console to be detected by XenCenter:
/etc/init.d/gdm restart
Note
You can check that the VNC server is running using a command like ps ax | grep vnc.
Enabling a graphical console on Red Hat, CentOS, or Oracle Linux
VMs
Note
Before setting up your Red Hat VMs for VNC, be sure that you have installed the Linux guest agent. See
the section called “Installing the Linux guest agent” for details.
To configure VNC on Red Hat VMs, you need to modify the GDM configuration. The GDM configuration
is held in a file whose location varies depending on the version of Red Hat Linux you are using. Before
modifying it, first determine the location of this configuration file; this file will then be modified in a number
of subsequent procedures in this section.
Determining the location of your VNC configuration file
If you are using Red Hat Linux version 3 or 4 the GDM configuration file is /etc/X11/gdm/gdm.conf.
This is a unified configuration file that contains default values as specified by the provider of your version of
GDM in addition to your own customized configuration. This type of file is used by default in older versions
of GDM, as included in these versions of Red Hat Linux.
If you are using Red Hat Linux version 5 the GDM configuration file is /etc/gdm/custom.conf. This is
a split configuration file that contains only user-specified values that override the default configuration. This
type of file is used by default in newer versions of GDM, as included in these versions of Red Hat Linux.
Configuring GDM to use VNC
1. As root on the text CLI in the VM, run the command rpm -q vnc-server gdm. The package names
vnc-server and gdm should appear, with their version numbers specified.
If these package names are displayed, the appropriate packages are already installed. If you see a
message saying that one of the packages is not installed, then you may not have selected the graphical
desktop options during installation. You will need to install these packages before you can continue. See