Citrix Systems 5.5.0 Washer User Manual


 
XenServer Virtual Machine Installation Guide Installing Linux VMs 17
Oracle Enterprise Linux 5.0-5.2, 64-bit
Other Linux operating systems need to be installed from a network installation server. See the section called
“Installing Linux from a network installation server to a VM”.
To install a supported Linux VM from vendor media using the CLI
1. Insert the vendor installation CD into the CD drive on the XenServer host.
2. Run the command xe template-list to find the name of the template corresponding to the OS you want
to install.
3. Run the command:
xe vm-install template="<template_name>" new-name-label=<name_for_vm>
This command returns the UUID of the new VM.
4. Get the UUID of the root disk of the new VM:
xe vbd-list vm-uuid=<vm_uuid> userdevice=0 params=uuid --minimal
5. Using the UUID returned, set the root disk to not be bootable:
xe vbd-param-set uuid=<root_disk_uuid> bootable=false
6. Get the name of the physical CD drive on the XenServer host:
xe cd-list
The result of this command should give you something like SCSI 0:0:0:0 for the name-label field.
7. Add a virtual CD-ROM to the new VM using the XenServer host CD drive name-label parameter as
the cd-name parameter:
xe vm-cd-add vm=<vm_name> cd-name="<host_cd_drive_name_label>" device=3
8. Get the UUID of the VBD corresponding to the new virtual CD drive:
xe vbd-list vm-uuid=<vm_uuid> type=CD params=uuid --minimal
9. Make the VBD of the virtual CD bootable:
xe vbd-param-set uuid=<cd_drive_uuid> bootable=true
10. Set the install repository of the VM to be the CD drive:
xe vm-param-set uuid=<vm_uuid> other-config:install-repository=cdrom
11. Start the VM
xe vm-start uuid=<vm_uuid>
12. Open a console to the VM with XenCenter or an SSH terminal and follow the steps to perform the OS
installation.
Note
The console in XenCenter supports VNC graphical installation of the Red Hat, Oracle, and CentOS op-
erating systems. Ensure that the virtual machine has enough memory allocated for this to be enabled. If
you set the memory allocation to 512MB or higher, you will be prompted to start VNC after the initial text