二种方法

    1.通过windows的xenCenter打补丁。

      进入你的xenCenter安装目录。打开CMD,执行:cd C:\Program Files (x86)\Citrix\XenCenter.

      上传补丁文件。xe patch-upload -s <hostname> -u root -pw <password> file-name=<path_to_update_file>\XS62ESP1.xsupdate

      应用补丁。xe -s <hostname> -u root -pw <password> patch-pool-apply uuid=0850b186-4d47-11e3-a720-001b2151a503

      验证。xe patch-list -s <hostname> -u root -pw <password> name-label=XS62ESP1(通过主机的UUID检查是否应用到整个池内的主机)


官方文档

nstalling the update using the xe Command Line Interface


  1. Download the update file to a known location.

  2. Extract the xsupdate file from the zip.

Note: Ensure that you have at least 450 MB of disk space on the dom0 filesystem of EACH host in the pool before uploading the xsupdate file. To check the available diskspace on a XenServer host, log in as root and run the command df -h /. The Avail column for /dev/sda<n> displays the disk space available on the dom0 filesystem.


Upload the xsupdate file to the Pool Master by entering the following commands: (Where hostname is the Pool Master's IP address or DNS name.) xe patch-upload -s <hostname> -u root -pw <password> file-name=<path_to_update_file>\XS62ESP1.xsupdate XenServer assigns the update file a UUID which this command prints. Note the UUID. 0850b186-4d47-11e3-a720-001b2151a503
Apply the Service Pack to all hosts in the pool, specifying the UUID of the Service Pack: xe -s <hostname> -u root -pw <password> patch-pool-apply uuid=0850b186-4d47-11e3-a720-001b2151a503 Verify that the update was applied by using the patch-list command. xe patch-list -s <hostname> -u root -pw <password> name-label=XS62ESP1 If the update has been successful, the hosts field will contain the UUIDs of the hosts this patch was successfully applied to. This should be a complete list of all hosts in the pool.To verify in XenCenter that the update has been applied correctly, select the Pool, and then click the General tab. This displays the Pool properties. In the Updates section, ensure that the update is listed as Fully Applied.The Service Pack is applied to all hosts in the pool, but it will not take effect until each host has been rebooted. Reboot the hosts sequentially, starting with the Pool Master. For each host, migrate the VMs that you wish to keep running, and shutdown the remaining VMs before rebooting the host.


2.上传完补丁文件后再打补丁(大同小异)

 

  以安装XS62E001为例,描述安装补丁的步骤:

      第一步、上传补丁文件XS62E001.xsupdate到Xenserver服务器
      第二步、SSH登陆Xenserver加载补丁文件,在补丁文件所在目录执行以下命令:
                       [root@XS620 ~]# xe patch-upload file-name=XS62E001.xsupdate
                       dedcc0dd-d8f3-4f76-90ca-92697c7a44f0
      第三步、应用补丁,执行以下命令:
                       [root@XS620 ~]# xe patch-pool-apply uuid=dedcc0dd-d8f3-4f76-90ca-92697c7a44f0

      重复以上三步,安装其它补丁。

      第四步、验证补丁安装成功,执行以下命令:
                       [root@XS620 ~]# xe patch-list
                       …