NOTE: This article is out of date. As of around 6.5sp1 they have lifted the GUI restriction and now allows you to run updates that way. If you haven’t updated your server, now is the time.

 

If you are setting up XenServer for the first time, or you have had an installation for a while but need to update it and aren’t paying for a license, you can’t apply updates via a pretty GUI in XenCenter. You can however do it manually in the command line.

  1. Put the server into Maintenance Mode. This will require Pausing/Shutting down all of the VM’s. This way nothing gets corrupted or messed up by any chance.

  2. Take a look at the system alerts that’s telling you what updates are missing. Thankfully for each patch you click on you can click on the “Go to Web Page” button to go directly to the download. These patches are pretty big so it might take some time to get them all downloaded.

Note: As of this writing I am doing a brand new installation of XenServer, and I ended up needing 16 updates. That sounds like a lot, but one of them is Service Pack 1, which is a roll-up and takes care of a good chunk of those. Look for a service pack update first, something like “XS62ESP1”. Download that one first and apply it before downloading the rest. After that service pack, I only needed to download 7 more (which really ended up only being 5, see note below).

Note 2: In my case, even after XS62ESP1, It said I had 2 pre-SP1 updates to install, 14 and 15. I tried to install these afterwards but they would not work. After applying the rest of the post-SP1 updates however, the need for the pre-SP1 14 and 15 patches went away.

  1. Download the update in question, and unzip it. You will need to upload the file ending in .xsupdate. The other files in the zip can be ignored.

  2. Use a program like Filezilla to create an sftp connection to your server. You will log in as root and your password. Upload the file, it will upload to your home directory.

  3. Switch over to the console tab on the XenServer itself in XenCenter. You should be logged in as root and at your home directory (~).

  4. Run this command to add the update to the pool:

xe patch-upload file-name=nameofupdate.xsupdate

For example: xe patch-upload file-name=XS62ESP1.xsupdate

  1. Hightlight and copy (right-click) the resulting UUID. You will need this next.

Example: 0850b186-4d47-11e3-a720-001b2151a503

  1. (Optional) You can run the following to see if the patch actually uploaded:

xe patch-list

  1. Run the patch to actually apply:

xe patch-pool-apply uuid=(previous ssid)

Example: xe patch-pool-apply uuid=0850b186-4d47-11e3-a720-001b2151a503

  1. After it applies successfully, it just drops back down to a command line. Use XenCenter to reboot the server for the patch to take effect.

Done! Soon you will be an expert and these steps will fly by! You can remove the .xsupdate files afterwards to free up space.