Citrix Systems 6.2.0 manual Installing the Linux Guest Agent, To install the guest agent

Page 26

3.On the command line, use vm-param-setto set the PV-argsparameter to make use of a Kickstart file

xe vm-param-set uuid=<vm_uuid> PV-args="ks=http://server/path ksdevice=eth0"

4.Set the repository location so XenServer knows where to get the kernel and initrd from for the installer boot:

xe vm-param-set uuid=<vm_uuid> other-config:install-repository=<http://server/path>

Note:

To install using a kickstart file without the New VM wizard, you can add the appropriate command to the Advanced OS boot parameters text box. For example, for RHEL

5.4, this command would be ks=nfs:telos:/linux/distros/auto-install/ rhel54.cfg.

5.5. Installing the Linux Guest Agent

Although all the supported Linux distributions are natively paravirtualized (and therefore do not need special drivers for full performance), XenServer includes a guest agent which provides additional information about the VM to the host. This additional information includes:

Linux distribution name and version (major, minor revision).

Kernel version (uname).

IP address of each Ethernet interface.

Total and free memory within the VM.

It is important to install this agent and keep it up-to-date (see Chapter 7, Updating VMs) as you upgrade your XenServer host.

To install the guest agent:

1.The files required are present on the built-in xs-tools.isoCD image, or alternatively can be installed by using the VM > Install XenServer Tools option in XenCenter.

2.Mount the image onto the guest by running the command:

mount -o ro,exec /dev/disk/by-label/XenServer\\x20Tools /mnt

Note:

If mounting the image fails, you can locate the image by running the following:

blkid -t LABEL="XenServer Tools"

3.Execute the installation script as the root user:

/mnt/Linux/install.sh

4.Unmount the image from the guest by running the command:

umount /mnt

5.If the kernel has been upgraded, or the VM was upgraded from a previous version, reboot the VM now.

Note:

CD-ROM drives and ISOs attached to Linux Virtual Machines appear as devices, such as / dev/xvdd (or /dev/sdd in Ubuntu 10.10 and later) instead of as /dev/cdrom as you might expect. This is because they are not true CD-ROM devices, but normal devices. When the CD is ejected by either XenCenter or the CLI, it hot-unplugs the device from the VM and the device disappears. This is different from Windows Virtual Machines, where the CD remains in the VM in an empty state.

19

Image 26
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 XenServer Tools Importing an Exported VMPage Operating System Minimum Maximum Minimum Disk Space Supported Guests and Allocating ResourcesSupported Guests, Virtual Memory, and Disk Size Limits 4GB 8GB Experimental Guests Operating SystemVirtual device Linux VMs Windows VMs Deprecated GuestsXenServer Product Family Virtual Device Support VM Block Devices Available Windows Templates Basic Procedure for Creating a Windows VMCreating Windows VMs Template Name DescriptionTo create a Windows 7 32-bit VM Using XenCenter to Create a VMAttaching an ISO Image Library Page Using the CLI to Create a Windows VM Installing a Windows VM from an ISO Repository Using the CLICreating Linux VMs Install From Network From CD Repository Distribution VendorCreating a Linux VM by Installing from a Physical CD/DVD Creating a Linux VM by Installing From an ISO Image Network Installation NotesTo install Rhel Using a Kickstart File Advanced Operating System Boot ParametersTo install Debian using a preseed file Installing the Linux Guest Agent To install the guest agentAdditional Installation Notes for Linux Distributions Linux Distribution Installation NotesMachine Name Preparing to Clone a Linux VMAdditional Debian Notes IP addressPage XenMotion VM Migration with XenMotion and Storage XenMotionXenMotion and Storage XenMotion Storage XenMotionLimitations and Caveats Migrating a VM using XenCenterLive VDI Migration To Move Virtual Disks Updating Windows Operating Systems To uninstall the XenServer ToolsUpdating VMs Updating XenServer Tools for Windows VMsPage Managing vApps in XenCenter Creating a vApp using XenCenterVApps Creating vAppsDeleting vApps Start and shutdown vApps using XenCenterDeleting vApps using XenCenter To start a vAppTo import a vApp Importing and Exporting vAppsTo export a vApp Reset XenDesktop Shared Desktop Mode VM Boot BehaviorPersist XenDesktop Private Desktop Mode Advanced Notes for Virtual MachinesInstalldir/xensetup.exe /S /norestart To enable the Windows XenServer VSS provider Windows Volume Shadow Copy Service VSS providerConnecting to a Windows VM Using Remote Desktop To Enable Remote Desktop on a Windows VMTime Handling in Windows VMs Time Handling in Linux 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 Assigning a GPU to a Windows VM for Use with XenDesktop Cloning Windows VMsTo detach a Windows VM from a GPU using XenCenter 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 the xe CLIDetach 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 Open Virtualization Format OVF and OVA Attribute DescriptionDisk Image Formats VHD and Vmdk XVA FormatOperating System Fixup XVA Version 1 FormatTo use the RawVDI transfer protocol Transfer VMImporting VMs To Import VMs from OVF/OVA using XenCenter Importing VMs from OVF/OVAPage To Import VMs from a Disk Image using XenCenter Importing Disk ImagesTo Import VMs from XVA Files VM using XenCenter Importing VMs from XVAExporting VMs as OVF/OVA To Import a VM from XVA using the xe CLIExporting VMs To Export VMs as OVF/OVA using XenCenter To Export VMs as XVA Files using XenCenter Exporting VMs as XVATo Export VMs as XVA Files using the xe CLI Appendix A. Windows VM Release Notes Release NotesAppendix B. Linux VM Release Notes Red Hat Enterprise Linux 4.5 toRed Hat Enterprise Linux Preparing a Rhel 4.5 to 4.8 guest for cloningSuse Enterprise Linux 10 SP1 CentOSOracle Enterprise Linux Suse Enterprise Linux 10 SP3Ubuntu On a Windows computer Appendix C. Creating ISO ImagesCreating an ISO on a Linux computer Appendix D. Enabling VNC for Linux VMs Enabling a Graphical Console on Debian Squeeze VMsDetermining the Location of your VNC Configuration File Configuring GDM to use VNCFirewall Settings VNC Screen ResolutionEnabling VNC for RHEL, CentOS, or OEL 6.x VMs Create the xinetd.d file, /etc/xinetd.d/vnc-server-streamModifying the xinetd Configuration Setting up SLES-based VMs for VNCEnabling Remote Administration Checking for a VNC ServerTo Open the VNC Port on Sles 10.x VMs Firewall Checking Runlevels To Open the VNC Port on Sles 11.x VMs FirewallEnable Remote Access Appendix E. Setting Up a Red Hat Installation ServerCopying Installation Media NFSFTP HttpVM Crashes Appendix F. Troubleshooting VM ProblemsTo enable saving of Linux VM crash dumps Controlling Linux VM Crashdump BehaviourTroubleshooting Boot Problems on Linux VMs