Citrix Systems 6.2.0 manual Enabling VNC for RHEL, CentOS, or OEL 6.x VMs

Page 71

D.2.5. Enabling VNC for RHEL, CentOS, or OEL 6.x VMs

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

Before making configuration changes, verify that you have a VNC server installed. Login as root on the text CLI in the VM, and run the command rpm -qtigervnc-server gdm. The package names tigervnc-serverand gdm should appear, with their version numbers specified.

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.

Follow the instructions below to enable graphical console on your RHEL 6.x VMs:

1.Enter the following command to install the inetd service:

# yum install -y xinetd

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

[security]

DisallowTCP=false

[xdmcp]

Enable=true

3.Create the xinetd.d file, /etc/xinetd.d/vnc-server-stream:

service vnc-server

{

id

=

vnc-server

disable

 

= no

type

 

= UNLISTED

port = 5900

 

socket_type

= stream

wait

 

= no

user

 

= nobody

group

 

= tty

server

 

=

/usr/bin/Xvnc

server_args

= -inetd -once -query localhost -SecurityTypes None \

-geometry 800x600 -depth 16

}

4.Enter the following command to start the inetd service:

#service xinetd start

5.Open the file, /etc/sysconfig/iptables and add the following line. Note that the line should be added above the line reading, -A INPUT -j REJECT --reject-withicmp-host-prohibited:

-A INPUT -m state --state NEW -m tcp -p tcp --dport 5900 -j ACCEPT

6.Enter the following command to restart iptables:

#service iptables restart

7.Enter the following command to restart gdm:

#telinit 3

#telinit 5

64

Image 71
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 XenServer Documentation About this DocumentOverview Other Methods of VM Creation Virtual MachinesCreating VMs Importing an Exported VM XenServer ToolsPage Operating System Minimum Maximum Minimum Disk Space Supported Guests and Allocating ResourcesSupported Guests, Virtual Memory, and Disk Size Limits 4GB 8GB Operating System Experimental GuestsVirtual device Linux VMs Windows VMs Deprecated GuestsXenServer Product Family Virtual Device Support VM Block Devices Template Name Description Basic Procedure for Creating a Windows VMCreating Windows VMs Available Windows TemplatesTo create a Windows 7 32-bit VM Using XenCenter to Create a VMAttaching an ISO Image Library 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 ImageTo install Rhel Using a Kickstart File Advanced Operating System Boot ParametersTo install Debian using a preseed file To install the guest agent Installing the Linux Guest AgentLinux Distribution Installation Notes Additional Installation Notes for Linux DistributionsIP address Preparing to Clone a Linux VMAdditional Debian Notes Machine NamePage Storage XenMotion VM Migration with XenMotion and Storage XenMotionXenMotion and Storage XenMotion XenMotionLimitations and Caveats Migrating a VM using XenCenterLive VDI Migration To Move Virtual Disks Updating XenServer Tools for Windows VMs To uninstall the XenServer ToolsUpdating VMs Updating Windows Operating SystemsPage Creating vApps Creating a vApp using XenCenterVApps Managing vApps in XenCenterTo start a vApp Start and shutdown vApps using XenCenterDeleting vApps using XenCenter Deleting vAppsTo import a vApp Importing and Exporting vAppsTo export a vApp Advanced Notes for Virtual Machines VM Boot BehaviorPersist XenDesktop Private Desktop Mode Reset XenDesktop Shared Desktop ModeInstalldir/xensetup.exe /S /norestart To Enable Remote Desktop on a Windows VM Windows Volume Shadow Copy Service VSS providerConnecting to a Windows VM Using Remote Desktop To enable the Windows XenServer VSS providerTime Handling in Linux VMs Time Handling in Windows VMsGuest OS Dependent wallclock Independent wallclock Installing a VM from Reseller Option Kit BIOS-locked MediaTo set individual Linux VMs to maintain independent times Using the CLI Preparing for Cloning a Windows VM Using VSSUsing XenCenter Cloning Windows VMs Assigning a GPU to a Windows VM for Use with XenDesktopTo detach a Windows VM from a GPU using the xe CLI To assign a GPU to a Windows VM using XenCenterTo assign a GPU to a Windows VM using xe CLI To detach a Windows VM from a GPU using XenCenterDetach the GPU from the VM by entering the following Useful Tests To Import the Demo Linux Virtual Appliance Using XenCenterImporting the Demo Linux Virtual Appliance Page Format Description Importing and Exporting VMsSupported Formats Attribute Description Open Virtualization Format OVF and OVAXVA Format Disk Image Formats VHD and VmdkXVA Version 1 Format Operating System FixupTo use the RawVDI transfer protocol Transfer VMImporting VMs 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 XenCenterExporting VMs as OVF/OVA To Import a VM from XVA using the xe CLIExporting VMs 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 LinuxSuse Enterprise Linux 10 SP3 CentOSOracle Enterprise Linux Suse Enterprise Linux 10 SP1Ubuntu On a Windows computer Appendix C. Creating ISO ImagesCreating an ISO on a Linux 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 VMsChecking for a VNC Server Setting up SLES-based VMs for VNCEnabling Remote Administration Modifying the xinetd ConfigurationTo Open the VNC Port on Sles 10.x VMs Firewall To Open the VNC Port on Sles 11.x VMs Firewall Checking RunlevelsNFS Appendix E. Setting Up a Red Hat Installation ServerCopying Installation Media Enable Remote AccessHttp FTPControlling Linux VM Crashdump Behaviour Appendix F. Troubleshooting VM ProblemsTo enable saving of Linux VM crash dumps VM CrashesTroubleshooting Boot Problems on Linux VMs