How to install XenServer 6.5 Patches with Local Media - Part 1

To install XenServer 6.5 Patches with Local Media - Part 1

Installation and upgradation of XenServer 6.5 patches with local media is explained in this article.

To check media connection

[root@linuxhelp ~]# fdisk -l

Disk /dev/sda: 21.5 GB, 21474836480 bytes, 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000a73ca

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    30722047    15360000   83  Linux
/dev/sda2        30722048    36866047     3072000   82  Linux swap / Solaris

Disk /dev/sdb: 7903 MB, 7903117312 bytes, 15435776 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x09a3d0fc

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048    15435775     7716864   83  Linux

Mount that local media to /mnt/ directory.

[root@linuxhelp ~]# mount /dev/sdb1 /mnt/
[root@linuxhelp ~]# cd /mnt/
[root@linuxhelp mnt]#

Download latest version for xenserver.

[root@linuxhelp mnt]# wget http://downloadns.citrix.com.edgesuite.net/10340/XS65ESP1.zip
--2016-06-21 14:28:08--  http://downloadns.citrix.com.edgesuite.net/10340/XS65ESP1.zip
Resolving downloadns.citrix.com.edgesuite.net (downloadns.citrix.com.edgesuite.net)... 125.252.226.106, 125.252.226.104
Connecting to downloadns.citrix.com.edgesuite.net (downloadns.citrix.com.edgesuite.net)|125.252.226.106|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 397007773 (379M) [application/x-zip-compressed]
Saving to: ‘ XS65ESP1.zip’ 

100%[============================> ] 39,70,07,773 89.3KB/s   in 23m 26s

2016-06-21 14:51:40 (276 KB/s) - ‘ XS65ESP1.zip’  saved [397007773/397007773]

Unzip that downloaded zip file by using “ unzip” command as follows.

[root@linuxhelp mnt]# unzip XS65ESP1.zip 
Archive:  XS65ESP1.zip
  inflating: XS65ESP1.xsupdate       
  inflating: XS65ESP1-src-pkgs.tar.bz2

Remove the local media and insert into xenserver. Select " Local Command Shell" and press Enter.

Log in with the root user.

Use " fdisk" utility to determine the name of the block device.

[root@ xenserver-linuxhelp ~]# fdisk -l

Here, the USB device is determined as " /dev/sdb1" and access to update the file using " mount" utility.

[root@ xenserver-linuxhelp ~] # mount /dev/sdb1 /mnt 

To Change the directory

Check whether the updated file is available in the /mnt directory.

[root@ xenserver-linuxhelp ~]# cd /mnt
[root@ xenserver-linuxhelp ~]# ls

Set execute permission to the “ XS65ESP1.xsupdate” file. Prepare the patch file and get the UUID of patch file using " xe patch-upload" .

[root@ xenserver-linuxhelp ~]# chmod &ndash R 777 XS65ESP1.xsupdate
[root@ xenserver-linuxhelp ~]# xe patch-upload file-name=XS65ESP1.xsupdate

Run the following command to fetch the UUID of the XenServer.

[root@ xenserver-linuxhelp ~]# xe host-list

Install the supplemental pack to this local machine using the " xe" command.

[root@ xenserver-linuxhelp ~]# xe patch-apply uuid=7f2e4a3a-4098-4a71-84ff-b0ba919723c7 host-uuid=9c11ecbc-f921-4680-96f7-a04faa4e7dcd

Run the following command to list all patches that we have applied.

The above output represents that the patch applied successfully to this particular machine.

Tag : XenServer
FAQ
Q
What OS is Citrix XenServer based on?
A
XenServer is a Linux distribution that is based on the Xen hypervisor, the Linux kernel, and the CentOS Linux distribution and user tools. In 2009, Citrix released XAPI, the XenServer management toolstack, under the Lesser GNU Public License v2.
Q
how to attach the ISO library with this command?
A
attach the ISO library with this command
xe-mount-iso-sr /var/opt/xen/iso_import
Q
How do XenServer service packs and hotfixes impact certification?
A
Unless specifically mentioned, if a piece of hardware is supported for a base product release (e.g. XenServer 6.5) it will be fully supported by Citrix with any applied service packs or hotfixes
Q
Which License Servers can I use with XenServer?
A
You can either use the Citrix License Server software version 11.14 or later (on a server running Microsoft Windows) or the Linux-based Citrix License Server virtual appliance
.
Q
Will I lose my Virtual Machine (VM) if my license expires?
A
No, you will not lose any VMs or their data