XenServer updates from cli

From HoerupWiki
Jump to: navigation, search

Sakset fra : http://support.citrix.com/article/CTX138349


Installing the update using the xe Command Line Interface

Download the update file to a known location. Extract the xsupdate file from the zip. 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 


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 

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