
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) :
empty ( RO): false
device ( RO): xvdd
uuid ( RO) :
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
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
3.Shut down the host by using the xe
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
Once your host restarts, normal service is restored after a few minutes.
5.Restart any shutdown VMs, and/or resume any suspended VMs.
28