Citrix Systems 6.2.0 manual Creating a Linux VM by Installing from a Physical CD/DVD

Page 23

5.1. Creating a Linux VM by Installing from an Internet Repository

This section shows the xe CLI procedure for creating a Linux VM, using a Debian Squeeze example, by installing the OS from an internet repository.

Example: Installing a Debian Squeeze VM from a network repository

1.Create a VM from the Debian Squeeze template. The UUID of the VM is returned:

xe vm-install template=<template-name>new-name-label=<squeeze-vm>

2.Specify the installation repository — this should be a Debian mirror with at least the packages required to install the base system and the additional packages you plan to select during the Debian installer:

xe vm-param-set uuid=<UUID> other-config:install-repository=<path_to_repository>

An example of a valid repository path is http://ftp.<xx>.debian.org/debian where <xx> is your country code (see the Debian mirror list for a list of these). For multiple installations Citrix recommends using a local mirror or apt proxy to avoid generating excessive network traffic or load on the central repositories.

Note:

The Debian installer supports only HTTP and FTP apt repos, NFS is NOT supported.

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

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

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

xe vm-start uuid=<UUID>

6.Follow the Debian Installer procedure to install the VM in the configuration you require.

7.See below for instructions on how to install the guest utilities and how to configure graphical display.

5.2. Creating a Linux VM by Installing from a Physical CD/DVD

This section shows the CLI procedure for creating a Linux VM, using a Debian Squeeze example, by installing the OS from a physical CD/DVD.

Example: Installing a Debian Squeeze VM from CD/DVD (using the CLI)

1.Create a VM from the Debian Squeeze template. The UUID of the VM is returned:

xe vm-install template=<template-name>new-name-label=<vm-name>

2.Get the UUID of the root disk of the new VM:

xe vbd-list vm-uuid=<vm_uuid>userdevice=0 params=uuid --minimal

3.Using the UUID returned, set the root disk to not be bootable:

xe vbd-param-set uuid=<root_disk_uuid> bootable=false

4.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-labelfield.

5.Add a virtual CD-ROM to the new VM using the XenServer host CD drive name-labelparameter as the cd-nameparameter:

16

Image 23
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