Installing XenServer 6.5 Patches with Local Media and Remotely – Part 2

Installing Patches Remotely

In the event that the administrator doesn’t have physical access to the XenServer or has the option to install patches remotely, the following steps will walk through patching the system remotely.

The first steps for installing the patches remotely is downloading the patch files from Citrix. The file can be downloaded via http or via the wget tool.

# wget -c http://downloadns.citrix.com.edgesuite.net/10340/XS65ESP1.zip

Now the update zip file needs to be transferred to the XenServer system. The entire zip file can be transferred or the contents of the zip can be extracted and then only the file ending in ‘.xsupdate‘ can be transferred.

This can easily be accomplished through the use of the secure copy tool, ‘scp‘. This will assume that the XenServer still has SSH enabled and that the user has the ability to SSH into the system.

# scp XS65ESP1.xsupdate root@server_ip:/root/

The above command will transfer the file ‘XS65ESP1.xsupdate‘ to the system indicated by ‘server_ip‘ and place the file in the directory ‘/root‘.

Upload Patch to XenServer
Upload Patch to XenServer

The transfer appears to have been successful and the rest of the process will require a command shell to the XenServer via SSH.

# ssh root@server_ip

This will log into the XenServer and place the user in root’s home directory. From the previous scp command, root’s home directory is the place where the file should have been transferred. Using the ‘ls‘ command, confirm that the patch files are indeed on the system.

# ls -l
Confirm Xen Patches
Confirm Xen Patches

The output above shows that the xsupdate file is indeed in root’s home directory and confirms the the scp command earlier was successful. Now a series of ‘xe‘ commands are needed to prepare this patch for installation.

The first ‘xe‘ command will return the UUID of the patch file to be installed.

# xe patch-upload file-name=XS65ESP1.xsupdate
Confirm Patch UUID
Confirm Patch UUID

The string of numbers in red indicate the UUID of the patch file to be installed and will become important in a few steps.
The next process is to again use the ‘xe‘ utility to determine the UUID of the XenServer on which this patch will be applied.

# xe host-list
Find XenServer UUID
Find XenServer UUID

Again the UUID in red will be needed to specify which XenServer instance to apply this particular patch. Now that all of the UUID’s are available, it is time to apply the patch to the system with the use of the ‘xe‘ utility.

# xe patch-apply uuid=7f2e4a3a-4098-4a71-84ff-b0ba919723c7 host-uuid=84174331-b35b-42c8-9698-eee7167708f2
Apply Patch to XenServer
Apply Patch to XenServer

At this point, the prompt will display nothing but a flashing cursor until the patch installs. Once the prompt returns, confirmation of the patch installation can be determined by another ‘xe‘ command.

# xe patch-list | grep -i sp1
Check Installed Xen Patches
Check Installed Xen Patches

If the above command doesn’t produce any output, there may have been an issuing installing the patch. Otherwise, the output above indicates that the patch was successfully applied to this particular system!

If you have made it to this point of the article, hopefully XenServer 6.5 is running and completely patched with SP1.

In the not too distant future there will be more articles covering setting up XenServer storage repositories, networking, creating virtual machines, managing XenServer with a web interface known as Xen Orchestra, and managing XenServer with the approved Citrix application known as XenCenter.

Rob Turner
Rob Turner is an avid Debian user as well as many of the derivatives of Debian such as Devuan, Mint, Ubuntu, and Kali. Rob holds a Masters in Information and Communication Sciences as well as several industry certifications from Cisco, EC-Council, ISC2, Linux Foundation, and LPI.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

8 thoughts on “Installing XenServer 6.5 Patches with Local Media and Remotely – Part 2”

    • XenCenter isn’t available on Linux operating systems and isn’t scriptable. But yes XenCenter is another option that will be covered later in this guide.

      Reply
  1. @Prasanth kumar

    use alternate method “yum” to install the packages, to work on this you need to create repositories.

    All the best for your career

    Reply
  2. Hi Tecmint ,
    This is Prasanth kumar i am searching in linuxjob . i have some doubts in Linux , main doubt is rpm, suppose rpm is corrupted .
    So, how to build rpm how rebuild that. Please give me any idea is that …

    Reply
    • Prasanth,

      I’m not exactly sure what you are asking? This article is about installing/patching citrix xenserver. It is strongly advised that you do not use yum or rpm on a xenserver but rather only install patches approved/obtained from Citrix.

      Reply

Got something to say? Join the discussion.

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.