How to apply XenServer update patch

Citrix distributes patches or hotfixes of XenServer on a regular basis, for fixing bugs or updating security features. A given XenServer patch may have dependency on other fixes, in which case you will fail to install the patch without applying all dependent fixes first. If you would like to apply a patch on your XenServer host, you can use either XenCenter client software or XenServer command line interface (CLI).

In this tutorial, I will explain how to install XenServer patches by using XenServer CLI.

I assume that you have already downloaded a patch from Citrix website (e.g., Upload it on any XenServer host and upzip it.

$ unzip

The extracted zip file will contain XS602E001.xsupdate. Using XenServer CLI, upload this patch to the destination XenServer host where the patch is to be applied as follows.

$ xe patch-upload -s -u root -pw [root-password] file-name=XE602E001.xsupdate

You can omit "-s -u root -pw [root-password]" parameters in the above if the destination XenServer host is the local host.

Once patch is successfully uploaded, the above command will return the UUID (xxxx-xxx-xxx-xxx-xxxxxx) of the uploaded patch. Make a note of the UUID since it is needed to apply the patch.

Confirm that the patch has been uploaded successfully as follows. The output should display the uploaded patch.

$ xe patch-list -s -u root -pw [root-password]

Finally, apply the uploaded path using the UUID obtained above.

$ xe patch-pool-apply -s -u root -pw [root-password] uuid=xxxx-xxx-xxx-xxx-xxxxxx

Once you have installed the patch, you must restart the XenServer host for the patch to take effect. When there are multiple XenServer hosts in a resource pool, you must apply the same patch to all the hosts, one by one in sequence. It is not recommended that you apply a patch to only a subset of all existing XenServer hosts in a pool.

Subscribe to Xmodulo

Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.

Support Xmodulo

Did you find this tutorial helpful? Then please be generous and support Xmodulo!

The following two tabs change content below.
Dan Nanni is the founder and also a regular contributor of He is a Linux/FOSS enthusiast who loves to get his hands dirty with his Linux box. He likes to procrastinate when he is supposed to be busy and productive. When he is otherwise free, he likes to watch movies and shop for the coolest gadgets.

Leave a comment

Your email address will not be published. Required fields are marked *