Install a Patch on a Citrix XenServer 6.2 Host Using the xe Command Line

Edited by Inukshuk, Dougie, Eng, Anonymous

Yassora meme-090516082347.jpg

One of the limitations of using the free version of Citrix XenServer 6.2 is that you cannot use the XenCenter interface to install patches on your hosts. The idea is that you'll pay Citrix for a support contract to get the full version of XenCenter that lets you do a lot of the advanced work without having to learn the command-line steps. Fortunately, installing update patches on a host is relatively simple and straight-forward using the xe command.

Was this helpful? Yes | No | I need help

Even though you can't install them, XenCenter does tell you that updates are available when you connect to a server (see top right corner for "System Alerts"). When you click on the System Alerts link, it will give you a popup with more details, in this image, update XS62ESP1014 is available for server "b2".

Was this helpful? Yes | No | I need help

Important: If your XenServer hosts are part of a pool, you need to install the patch on the pool master first.

Ad

Install the XenServer 6.2 Update Using the xe Command

Get the link to the zip file that you will download to the server

  1. 1
    Click "Go to Web Page..." at the bottom of the System Alert popup.
    This will open a page on the citrix.com website with more details about the update.
    Yassora meme (1)-090516082607.jpg
    Advertisement
    Was this step helpful? Yes | No | I need help

  2. 2
    Click the blue "Download" button.
    This will take you to the Citrix Download Manager page.
    Yassora meme (2)-090516082637.jpg
    Advertisement
    Was this step helpful? Yes | No | I need help

  3. 3
    Right-click on the "Download your file manually >" link at the bottom of the page, and then select "Copy Link Location" (Firefox) or "Copy Address" (Chrome) or "Copy Shortcut" (IE).
    Yassora meme (3)-090516082701.jpg
    Was this step helpful? Yes | No | I need help

Download and Install the Update on the XenServer Host

Remember: If your host is part of a pool, these steps need to be run on the pool master only. The master will push the updates to all the other servers that are part of the pool automatically, they will only need to be rebooted afterwards to take effect (still reboot the master first).

Was this helpful? Yes | No | I need help

  1. 1
    SSH to your XenServer host using root or a root-capable account.
    Was this step helpful? Yes | No | I need help

  2. 2
    Download the update zip file using wget and pasting the link you copied from the Citrix webpage.
    XenServer wget patch zipfile.png
    Was this step helpful? Yes | No | I need help

  3. 3
    Unzip the file with the unzip command.
    XenServer patch unzip.png
    Was this step helpful? Yes | No | I need help

  4. 4
    Tell the server about the patch using the "xe patch-upload" command.
    You need to add the file-name parameter which will be the .xsupdate file that was extracted in the previous step. The patch-upload command will output a uuid for the patch that you will need in the next step.
    XenServer xe patch-upload command.png
    Was this step helpful? Yes | No | I need help

  5. 5
    If host is not part of a pool:
    Apply the patch using the "xe patch-apply" command with the uuid and host-uuid parameters. The uuid will be the output from the xe patch-upload command. The easiest way to get the host-uuid is to simply press the Tab key after typing "host-uuid=" - this will automatically populate the field with the local host's uuid - otherwise, you'll need to get the output of the xe host-list command as well. Note: The patch-apply may take several seconds to run.
    XenServer xe patch-apply command.png

    If host is the pool master:
    Apply the patch using the "xe patch-pool-apply" command with the uuid parameter output from the xe patch-upload command. Note: The patch-pool-apply may take up to a couple of minutes to run, as it has to apply the patch to all hosts in the pool.
    XenServer xe patch-pool-apply command.png
    Was this step helpful? Yes | No | I need help

  6. 6
    Because the default partitioning of XenServer does not leave a lot of space for extra files to accumulate, it's a good idea to clean up the XS62* files that you no longer need.
    XenServer remove patch files.png
    Was this step helpful? Yes | No | I need help

  7. 7
    The host likely needs to be rebooted for the patch to be fully applied.
    This, you can do using XenCenter.
    XenServer Reboot Host After Patch Apply.png
    Was this step helpful? Yes | No | I need help

    Advertisement

Questions and Answers

Is there any difference in the procedure if using XenServer 6.5?

Want to know if installing patch on version 6.5 is the same as 6.2. I'm now using XenServer 6.5 instead of 6.2 when the article was written. I have tried: I haven't tried anything yet. Thought I'd ask before going through the steps. I think it was caused by: Don't know if there is a problem. Just asking because of the version change.

Was this helpful? Yes | No | I need help

VisiHow QnA. This section is not written yet. Want to join in? Click EDIT to write this answer.

Comments

VisiHow welcomes all comments. If you do not want to be anonymous, register or log in. It is free.




Inukshuk
Featured Author
6 Articles Started
2,090 Article Edits
59,890 Points
Inukshuk is a featured author with VisiHow. Inukshuk has achieved the level of "Major" with 59,890 points. Inukshuk has started 6 articles (including this one) and has also made 2,090 article edits. 27,900 people have read Inukshuk's article contributions.
Inukshuk's Message Board
Inukshuk: Hi, my name is Inukshuk.
Inukshuk: Can I help you with your problem about "Install a Patch on a Citrix XenServer 6.2 Host Using the xe Command Line"?
 

Article Info

Categories : Software

Recent edits by: Eng, Dougie, Inukshuk

Share this Article:

Thanks to all authors for creating a page that has been read 4,327 times.

Do you have a question not answered in this article?
Click here to ask one of the writers of this article
x

Thank Our Volunteer Authors.

Would you like to give back to the community by fixing a spelling mistake? Yes | No