Citrix Systems 6.1.0 manual Upgrading a Single XenServer Host Using the xe CLI

Page 33

An empty VM CD/DVD drive means that the VM is attached to neither an ISO image nor a physical CD/DVD mounted via the XenServer host. Further, it requires that the VM not be attached to any physical CD/DVD drive on the XenServer host at all.

To empty the CD/DVD drive of a VM using the xe CLI:

1.Identify which VMs do not have empty CD/DVD drives by entering the following:

xe vbd-list type=CD empty=false

This returns a list of all the VM CD/DVD drives that are not empty, for example:

uuid ( RO) : abae3997-39af-2764-04a1-ffc501d132d9

vm-uuid ( RO): 340a8b49-866e-b27c-99d1-fb41457344d9

vm-name-label ( RO): VM02_DemoLinux

vdi-uuid ( RO): a14b0345-b20a-4027-a233-7cbd1e005ede

empty ( RO): false

device ( RO): xvdd

uuid ( RO) : ec174a21-452f-7fd8-c02b-86370fa0f654

vm-uuid ( RO): db80f319-016d-0e5f-d8db-3a6565256c71

vm-name-label ( RO): VM01_DemoLinux

vdi-uuid ( RO): a14b0345-b20a-4027-a233-7cbd1e005ede

empty ( RO): false

device ( RO): xvdd

Note the uuid, which is the first item in the list.

2.To empty the CD/DVD drives of the VMs listed, enter the following:

xe vbd-eject uuid=<uuid>

7.2.2. Upgrading a Single XenServer Host Using the xe CLI

To upgrade a single XenServer host using the xe CLI:

1.Disable the XenServer host that you wish to upgrade by entering the following:

xe host-disable<host-selector>=<host_selector_value>

When a XenServer host is disabled, VMs can neither be created nor started on that host. VMs also cannot be migrated to a disabled host.

2.Shut down or suspend any VMs running on the host that you wish to upgrade by using the xe vm-shutdownor xe vm-suspendcommands.

3.Shut down the host by using the xe host-shutdowncommand.

4.Follow the XenServer installation procedure (see Chapter 3, Installing XenServer and XenCenter) until the installer offers you the option to upgrade. Choose to upgrade.

Warning:

Be absolutely sure to select the upgrade option so as to avoid losing any existing data.

You will not be required to re-enter any settings during the setup procedure. The upgrade process follows the first-time installation process but several setup steps are bypassed, and the existing settings for networking configuration, system time, and so on are retained.

Once your host restarts, normal service is restored after a few minutes.

5.Restart any shutdown VMs, and/or resume any suspended VMs.

28

Image 33
Contents Citrix XenServer 6.1.0 Installation Guide Trademarks Contents Using Scvmm and Scom with XenServer Boot From SAN Environments Administering XenServer Benefits of Using XenServerWelcome About This DocumentXenServer Editions New Features in XenServerGuest Enhancements XenServer DocumentationReferences System Requirements System RequirementsXenServer Host System Requirements Supported Guest Operating Systems XenCenter System RequirementsInstallation Media and Methods Installing XenServer and XenCenterTo install or upgrade the XenServer host Installing the XenServer HostPage Installing XenCenter To install XenCenterHost Partition Format To connect XenCenter to the XenServer host Connecting XenCenter to the XenServer HostHigh-level procedure Installation and Deployment ScenariosXenServer Hosts with Local Storage Basic hardware requirementsXenServer Hosts with Shared NFS Storage Pools of XenServer Hosts with Shared StorageXenServer Hosts with Shared iSCSI Storage Configuring your iSCSI storageConfiguring an iSCSI IQN for each XenServer host Xe pool-param-set uuid=pooluuid default-SR=iscsisharedsruuid Enabling on Host Installation XenServer and IntelliCacheIntelliCache Deployment Converting an Existing Host to Use Thin Provisioning To enable local caching, enter the following commandsImplementation Details and Troubleshooting VM Boot BehaviorXe sr-list params=local-cache-sr,uuid,name-label Using Scvmm and Scom with XenServer How to install the Integration Suite Supplemental PackIntegration Requirements for Scvmm Integration Requirements for Scom Upgrading XenServer Rolling Pool UpgradesPage Before You Upgrade Upgrading XenServer Hosts Using the xe CLI Before you begin your rolling pool upgradeTo upgrade a pool of XenServer hosts using the xe CLI Before You Upgrade a Single XenServer Host Upgrading a Single XenServer Host Using the xe CLIUpgrading a Single XenServer Host Using the xe CLI To empty the CD/DVD drive of a VM using the xe CLITo upgrade a single XenServer host using the xe CLI Page Upgrading LVM Storage from XenServer 5.0 or Earlier Upgrading LVM-based SRs using the xe CLIApplying Updates and Hotfixes to XenServer Before You Apply an Update or HotfixBefore you begin updating To update individual hosts using XenCenter To update individual hosts using the xe CLIUpdating Individual XenServer Hosts Updating a Pool of XenServer Hosts To update a pool of hosts using XenCenterTo update a pool of XenServer hosts using the xe CLI Licensing XenServer Activating a Free XenServer ProductTo activate a free XenServer product To license XenServer Advanced editions and higher Licensing XenServer EditionsTo configure licensing for XenServer hosts using XenCenter To configure licensing for XenServer hosts using the xe CLIAdditional Licensing Information Grace Period To capture and save the log file Appendix A. TroubleshootingAppendix B. Boot From SAN Environments Appendix C. PXE Boot Installations Configuring your PXE Environment for XenServer InstallationTo configure your Tftp server Preparing the destination system Creating an answer file for unattended PXE installationElement Description Required? Element Description Required? Element Proto dhcp or static