Citrix Systems 6.2.0 manual Creating a Linux VM by Installing From an ISO Image

Page 24

xe vm-cd-add vm=<vm_name> cd-name="<host_cd_drive_name_label>" device=3

6.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

7.Make the VBD of the virtual CD bootable:

xe vbd-param-set uuid=<cd_drive_uuid> bootable=true

8.Set the install repository of the VM to be the CD drive:

xe vm-param-set uuid=<vm_uuid> other-config:install-repository=cdrom

9.Insert the Debian Squeeze installation CD into the CD drive on the XenServer host.

10.Open a console to the VM with XenCenter or an SSH terminal and follow the steps to perform the OS installation.

11.Start the VM; it boots straight into the Debian installer:

xe vm-start uuid=<UUID>

12.See the sections that follow for instructions on how to install the guest utilities and how to configure graphical display.

5.3. Creating a Linux VM by Installing From an ISO Image

This section shows the CLI procedure for creating a Linux VM, by installing the OS from network-accessible ISO.

Example: Installing a Linux VM from a Network-Accessible ISO Image

1.Run the command

xe vm-install template=<template> new-name-label=<name_for_vm>\ sr-uuid=<storage_repository_uuid>

This command returns the UUID of the new VM.

2.Find the UUID of the network that you want to connect to. For example, if it is the one attached to xenbr0:

xe network-list bridge=xenbr0 --minimal

3.Create a VIF to connect the new VM to this network:

xe vif-create vm-uuid=<vm_uuid>network-uuid=<network_uuid>mac=random device=0

4.Set the install-repositorykey of the other-configparameter to the path of your network repository. For example, to use http://mirror.centos.org/centos/6/os/x86_64 as the URL of the vendor media:

xe vm-param-set uuid=<vm_uuid> \ other-config:install-repository=http://mirror.centos.org/centos/6/os/x86_64

5.Start the VM

xe vm-start uuid=<vm_uuid>

6.Connect to the VM console using XenCenter or VNC and perform the OS installation.

5.3.1. Network Installation Notes

The XenServer guest installer allows you to install an operating system from a network-accessible ISO image onto a VM. To prepare for installing from an ISO, make an exploded network repository of your vendor media (not ISO images) and export it over NFS, HTTP or FTP so that it is accessible to the XenServer host administration interface. See Appendix E, Setting Up a Red Hat Installation Server for information on how to copy a set of installation CDs to a network drive.

17

Image 24
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 XenServer Tools Importing an Exported VMPage Supported Guests and Allocating Resources Supported Guests, Virtual Memory, and Disk Size LimitsOperating System Minimum Maximum Minimum Disk Space 4GB 8GB Experimental Guests Operating SystemDeprecated Guests XenServer Product Family Virtual Device SupportVirtual device Linux VMs Windows VMs VM Block Devices Basic Procedure for Creating a Windows VM Creating Windows VMsAvailable Windows Templates Template Name DescriptionUsing XenCenter to Create a VM Attaching an ISO Image LibraryTo create a Windows 7 32-bit VM 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 NotesAdvanced Operating System Boot Parameters To install Debian using a preseed fileTo install Rhel Using a Kickstart File Installing the Linux Guest Agent To install the guest agentAdditional Installation Notes for Linux Distributions Linux Distribution Installation NotesPreparing to Clone a Linux VM Additional Debian NotesMachine Name IP addressPage VM Migration with XenMotion and Storage XenMotion XenMotion and Storage XenMotionXenMotion Storage XenMotionMigrating a VM using XenCenter Live VDI MigrationLimitations and Caveats To Move Virtual Disks To uninstall the XenServer Tools Updating VMsUpdating Windows Operating Systems Updating XenServer Tools for Windows VMsPage Creating a vApp using XenCenter VAppsManaging vApps in XenCenter Creating vAppsStart and shutdown vApps using XenCenter Deleting vApps using XenCenterDeleting vApps To start a vAppImporting and Exporting vApps To export a vAppTo import a vApp VM Boot Behavior Persist XenDesktop Private Desktop ModeReset XenDesktop Shared Desktop Mode Advanced Notes for Virtual MachinesInstalldir/xensetup.exe /S /norestart Windows Volume Shadow Copy Service VSS provider Connecting to a Windows VM Using Remote DesktopTo enable the Windows XenServer VSS provider To Enable Remote Desktop on a Windows VMTime Handling in Windows VMs Time Handling in Linux 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 Assigning a GPU to a Windows VM for Use with XenDesktop Cloning Windows VMsTo assign a GPU to a Windows VM using XenCenter To assign a GPU to a Windows VM using xe CLITo 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 Open Virtualization Format OVF and OVA Attribute DescriptionDisk Image Formats VHD and Vmdk XVA FormatOperating System Fixup XVA Version 1 FormatTransfer VM Importing VMsTo use the RawVDI transfer protocol 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 XVATo Import a VM from XVA using the xe CLI Exporting VMsExporting VMs as OVF/OVA 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 cloningCentOS Oracle Enterprise LinuxSuse Enterprise Linux 10 SP1 Suse Enterprise Linux 10 SP3Ubuntu Appendix C. Creating ISO Images Creating an ISO on a Linux computerOn a Windows 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-streamSetting up SLES-based VMs for VNC Enabling Remote AdministrationModifying the xinetd Configuration 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 FirewallAppendix E. Setting Up a Red Hat Installation Server Copying Installation MediaEnable Remote Access NFSFTP HttpAppendix F. Troubleshooting VM Problems To enable saving of Linux VM crash dumpsVM Crashes Controlling Linux VM Crashdump BehaviourTroubleshooting Boot Problems on Linux VMs