XenServer 6.2: Installing update using the xe Command Line Interface

Installing the update using the xe Command Line Interface

    1. Download the update file to a known location.
    2. Extract the xsupdate file from the zip.
      In this example I am patching the xenserver with the XS62E002 update
    3. Upload the xsupdate file to the Pool Master by entering the following commands:
      (Where hostname is the Pool Master’s IP address or DNS name.)

      xe patch-upload -s <hostname> -u root -pw <password> file-name=<path_to_update_file>\XS62E002.xsupdate

      XenServer assigns the update file a UUID which this command prints. Note the UUID.

      59128f15-92cd-4dd9-8fbe-a0115d1b07a2

    1. Apply the hotfix to all hosts in the pool, specifying the UUID of the hotfix:
      xe -s <hostname> -u root -pw <password> patch-pool-apply uuid=59128f15-92cd-4dd9-8fbe-a0115d1b07a2

       

    2. Verify that the update was applied by using the patch-list command.
      xe patch-list -s <hostname> -u root -pw <password> name-label=XS62E002

      If the update has been successful, the hosts field will contain the UUIDs of the hosts this patch was successfully applied to. This should be a complete list of all hosts in the pool.

    3. To verify in XenCenter that the update has been applied correctly, select the Pool, and then click the General tab. This displays the Pool properties. In the Updates section, ensure that the update is listed as Fully Applied.
    4. The hotfix is applied to all hosts in the pool, but it will not take effect until each host has been rebooted. For each host, migrate the VMs that you wish to keep running, and shutdown the remaining VMs before rebooting the host.

I am a Senior System Administrator that work daily with Virtualization,Xenserver, Linux, IT automation, Ansible,Windows, Active Directory, Exchange and a lot more. Here you will find tips and trix from early junior, middle junior and senior to unique information of the topics I mentioned earlier. If you need help with something do not hesitate to contact me I will gladly help.

Tagged with: , , , , ,