Citrix Systems 6.2.0 manual Determining the Location of your VNC Configuration File

Page 69

Note:

You can check that the VNC server is running using a command like ps ax grep vnc.

D.2. 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 Section 5.5, “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.

Note:

For information on enabling VNC for RHEL, CentOS, or OEL 6.x VMs, see Section D.2.5, “Enabling VNC for RHEL, CentOS, or OEL 6.x VMs”.

D.2.1. Determining the Location of your VNC Configuration File

If you are using Red Hat Linux version 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.

D.2.2. Configuring GDM to use VNC

1.As root on the text CLI in the VM, run the command rpm -qvnc-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 the appropriate Red Hat Linux x86 Installation Guide for details regarding installing additional software on your VM.

2.Open the GDM configuration file with your preferred text editor and add the following lines to the file:

[server-VNC] name=VNC Server

command=/usr/bin/Xvnc -SecurityTypes None -geometry 1024x768 -depth 16 \ -BlacklistTimeout 0

flexible=true

With configuration files on Red Hat Linux 3 and 4, this should be added above the [server- Standard] section.

With configuration files on Red Hat Linux 5, this should be added into the empty [servers] section.

3.Modify the configuration so that the Xvnc server is used instead of the standard X server:

If you are using Red Hat Linux 3 or 4, there will be a line just above that reads:

0=Standard

62

Image 69
Contents Citrix XenServer 6.2.0 Virtual Machine Users Guide Trademarks Contents VM Migration with XenMotion and Storage XenMotion Importing the Demo Linux Virtual Appliance Windows VM Release Notes Setting Up a Red Hat Installation Server About this Document OverviewXenServer Documentation Virtual Machines Creating VMsOther Methods of VM Creation Importing an Exported VM XenServer ToolsPage Supported Guests and Allocating Resources Supported Guests, Virtual Memory, and Disk Size LimitsOperating System Minimum Maximum Minimum Disk Space 4GB 8GB Operating System Experimental GuestsDeprecated Guests XenServer Product Family Virtual Device SupportVirtual device Linux VMs Windows VMs VM Block Devices Creating Windows VMs Basic Procedure for Creating a Windows VMAvailable Windows Templates Template Name DescriptionUsing XenCenter to Create a VM Attaching an ISO Image LibraryTo create a Windows 7 32-bit VM Page Installing a Windows VM from an ISO Repository Using the CLI Using the CLI to Create a Windows VMCreating Linux VMs Distribution Vendor Install From Network From CD RepositoryCreating a Linux VM by Installing from a Physical CD/DVD Network Installation Notes Creating a Linux VM by Installing From an ISO ImageAdvanced Operating System Boot Parameters To install Debian using a preseed fileTo install Rhel Using a Kickstart File To install the guest agent Installing the Linux Guest AgentLinux Distribution Installation Notes Additional Installation Notes for Linux DistributionsAdditional Debian Notes Preparing to Clone a Linux VMMachine Name IP addressPage XenMotion and Storage XenMotion VM Migration with XenMotion and Storage XenMotionXenMotion Storage XenMotionMigrating a VM using XenCenter Live VDI MigrationLimitations and Caveats To Move Virtual Disks Updating VMs To uninstall the XenServer ToolsUpdating Windows Operating Systems Updating XenServer Tools for Windows VMsPage VApps Creating a vApp using XenCenterManaging vApps in XenCenter Creating vAppsDeleting vApps using XenCenter Start and shutdown vApps using XenCenterDeleting vApps To start a vAppImporting and Exporting vApps To export a vAppTo import a vApp Persist XenDesktop Private Desktop Mode VM Boot BehaviorReset XenDesktop Shared Desktop Mode Advanced Notes for Virtual MachinesInstalldir/xensetup.exe /S /norestart Connecting to a Windows VM Using Remote Desktop Windows Volume Shadow Copy Service VSS providerTo enable the Windows XenServer VSS provider To Enable Remote Desktop on a Windows VMTime Handling in Linux VMs Time Handling in Windows VMsInstalling a VM from Reseller Option Kit BIOS-locked Media To set individual Linux VMs to maintain independent timesGuest OS Dependent wallclock Independent wallclock Preparing for Cloning a Windows VM Using VSS Using XenCenterUsing the CLI Cloning Windows VMs Assigning a GPU to a Windows VM for Use with XenDesktopTo assign a GPU to a Windows VM using xe CLI To assign a GPU to a Windows VM using XenCenterTo detach a Windows VM from a GPU using XenCenter To detach a Windows VM from a GPU using the xe CLIDetach the GPU from the VM by entering the following To Import the Demo Linux Virtual Appliance Using XenCenter Importing the Demo Linux Virtual ApplianceUseful Tests Page Importing and Exporting VMs Supported FormatsFormat Description Attribute Description Open Virtualization Format OVF and OVAXVA Format Disk Image Formats VHD and VmdkXVA Version 1 Format Operating System FixupTransfer VM Importing VMsTo use the RawVDI transfer protocol Importing VMs from OVF/OVA To Import VMs from OVF/OVA using XenCenterPage Importing Disk Images To Import VMs from a Disk Image using XenCenterImporting VMs from XVA To Import VMs from XVA Files VM using XenCenterTo Import a VM from XVA using the xe CLI Exporting VMsExporting VMs as OVF/OVA To Export VMs as OVF/OVA using XenCenter Exporting VMs as XVA To Export VMs as XVA Files using XenCenterTo Export VMs as XVA Files using the xe CLI Release Notes Appendix A. Windows VM Release NotesRed Hat Enterprise Linux 4.5 to Appendix B. Linux VM Release NotesPreparing a Rhel 4.5 to 4.8 guest for cloning Red Hat Enterprise LinuxOracle Enterprise Linux CentOSSuse Enterprise Linux 10 SP1 Suse Enterprise Linux 10 SP3Ubuntu Appendix C. Creating ISO Images Creating an ISO on a Linux computerOn a Windows computer Enabling a Graphical Console on Debian Squeeze VMs Appendix D. Enabling VNC for Linux VMsConfiguring GDM to use VNC Determining the Location of your VNC Configuration FileVNC Screen Resolution Firewall SettingsCreate the xinetd.d file, /etc/xinetd.d/vnc-server-stream Enabling VNC for RHEL, CentOS, or OEL 6.x VMsEnabling Remote Administration Setting up SLES-based VMs for VNCModifying the xinetd Configuration Checking for a VNC ServerTo Open the VNC Port on Sles 10.x VMs Firewall To Open the VNC Port on Sles 11.x VMs Firewall Checking RunlevelsCopying Installation Media Appendix E. Setting Up a Red Hat Installation ServerEnable Remote Access NFSHttp FTPTo enable saving of Linux VM crash dumps Appendix F. Troubleshooting VM ProblemsVM Crashes Controlling Linux VM Crashdump BehaviourTroubleshooting Boot Problems on Linux VMs