找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 6593|回复: 2

如何使用命令行打XenServer的补丁

[复制链接]

238

主题

329

帖子

2119

积分

超级版主

Rank: 8Rank: 8

积分
2119
QQ
发表于 2015-2-9 23:26:55 | 显示全部楼层 |阅读模式
http://xmodulo.blogspot.com.au/2012/10/how-to-apply-xenserver-patch.html
Installing the hotfix using the CLI on another host

    • Download the hotfix to the computer running the CLI or XenCenter, and extract the .xsupdate file from the ZIP file.
    • Open a Command Prompt window. On Windows computers, navigate to the XenCenter installation directory, typically located at C:\Program Files (x86)\Citrix\XenCenter
    • Upload the hotfix to the pool master by entering the following command.
      xe patch-upload -s <hostname> -u root -pw <password> file-name=<updatefilepath>XS55EU2012.xsupdate
      Where <hostname> is the IP address or DNS name of the pool master, <password> is the root account password, and <updatefilepath> is the path to the .xsupdate file.
      The UUID of the hotfix is displayed. XenServer assigns the UUID to the .xsupdate file.
    • Type the following command to apply the hotfix to all hosts in the pool.
      xe patch-pool-apply uuid=d632016d-352d-4fd9-8829-5a74ef0625db
    • Verify that the update was applied using the following command.
      xe patch-list -s <hostname> -u root -pw <password> name-label=XS55EU2012
      Where <hostname> is the IP address or DNS name of the pool master and <password> is the root account password.
      The hosts field contains the UUIDs of the hosts to which the hotfix was successfully applied. If the update is successful, all the hosts in the pool are listed.
    • For each host, migrate any VMs that you want to keep running and shut down the remaining VMs before restarting the host.The hotfix is applied to all hosts in the pool, but does not take effect until each host is restarted.
To verify in XenCenter that the update was applied correctly, select the pool in the resources pane and then click theGeneral tab in the properties pane. Expand the Updates section of the pool properties and ensure that the update is listed as Fully applied.
我的测试过程如下:
建立了一个NFS共享,上传了所有下载并且压缩所有补丁文件,积累了一堆的.xsupdate文件;在master上mount这个nfs文件共享。进去之后我所使用的命令如下:
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[root@xs-04 602patch]# xe patch-upload file-name =XS602E003.xsupdate
26b72ceb-759c-4de3-b007-e2a5fc30a93a
[root@xs-04 602patch]# xe patch-upload file-name =XS602E004.xsupdate
7f363047-46f2-41b7-8ff2-141d88e7b4ec
[root@xs-04 602patch]# xe patch-upload file-name =XS602E005.xsupdate
9b84b5c0-a027-11e1-a8b1-0800200c9a66
[root@xs-04 602patch]# xe patch-upload  file-name =XS602E006.xsupdate
b6f7bfe0-b969-11e1-afa6-0800200c9a66
[root@xs-04 602patch]# xe patch-upload  file-name =XS602E008.xsupdate
7c04fd30-9a0a-4894-9662-05ca9f866162
[root@xs-04 602patch]# xe patch-upload  file-name =XS602E009.xsupdate
6c9f9c22-d4b9-4c39-9343-7f0e6d0104b5
[root@xs-04 602patch]# xe patch-list
uuid ( RO) : 7f363047-46f2-41b7-8ff2-141d88e7b4ec
name-label ( RO): XS602E004
name-description ( RO): Public Availability: CVE-2012-0217 security fix
size ( RO): 776629
hosts (SRO):
after-apply-guidance (SRO): restartHost
uuid ( RO) : 945655fe-2dcd-46eb-b224-e556aa2f22b8
name-label ( RO): XS602E002
name-description ( RO): Public Availability: Fix for VMs hanging when pa rsing fragmented IPv6 packet
size ( RO): 0
hosts (SRO): 016c2e53-3e1d-4273-a350-f89447614903
after-apply-guidance (SRO): restartXAPI
uuid ( RO) : 68276dea-a818-4970-af93-3e43cb37b426
name-label ( RO): XS602E001
name-description ( RO): Public Availability: Mark VMs with old PV driver s as out-of-date
size ( RO): 0
hosts (SRO): 016c2e53-3e1d-4273-a350-f89447614903
after-apply-guidance (SRO): restartXAPI
uuid ( RO) : 7c04fd30-9a0a-4894-9662-05ca9f866162
name-label ( RO): XS602E008
name-description ( RO): Public Availability: security fixes to Xen and d evice model
size ( RO): 2784821
hosts (SRO):
after-apply-guidance (SRO): restartHost
uuid ( RO) : b6f7bfe0-b969-11e1-afa6-0800200c9a66
name-label ( RO): XS602E006
name-description ( RO): Public availability: Fixes to Integrated Storage Link.
size ( RO): 14530669
hosts (SRO):
after-apply-guidance (SRO): restartXAPI
uuid ( RO) : 9b84b5c0-a027-11e1-a8b1-0800200c9a66
name-label ( RO): XS602E005
name-description ( RO): Public Availability: Kernel and Storage fixes
size ( RO): 38529042
hosts (SRO):
after-apply-guidance (SRO): restartHost
uuid ( RO) : 6c9f9c22-d4b9-4c39-9343-7f0e6d0104b5
name-label ( RO): XS602E009
name-description ( RO): Public Availability: XenTools fixes
size ( RO): 117525717
hosts (SRO):
after-apply-guidance (SRO):
uuid ( RO) : 26b72ceb-759c-4de3-b007-e2a5fc30a93a
name-label ( RO): XS602E003
name-description ( RO): Public Availability: Xapi hotfix for incorrect V NC port advertisement.
size ( RO): 7454760
hosts (SRO):
after-apply-guidance (SRO): restartXAPI
[root@xs-04 ~]# xe patch-pool-apply  uuid=6c9f9c22-d4b9-4c39-9343-7f 0e6d0104b5
[root@xs-04 ~]# xe patch-pool-apply  uuid=9b84b5c0-a027-11e1-a8b1-08 00200c9a66
[root@xs-04 ~]# xe patch-pool-apply  uuid=b6f7bfe0-b969-11e1-afa6-08 00200c9a66
[root@xs-04 ~]# xe patch-pool-apply  uuid=7f363047-46f2-41b7-8ff2-14 1d88e7b4ec
[root@xs-04 ~]# xe patch-pool-apply  uuid=7c04fd30-9a0a-4894-9662-05
[root@xs-04 ~]#reboot


918794F3FADE47E29AE88521A341B380.jpg





file:///C:/Users/admin/AppData/Local/YNote/data/qq5B28CE13A4A74ECDEFD25EA0EDC49AB9/86c455690d06475b86f1ac7ca14aece0/918794f3fade47e29ae88521a341b380.jpg 9E6DFCB52E4142A4BA938586934B04EC.jpg
file:///C:/Users/admin/AppData/Local/YNote/data/qq5B28CE13A4A74ECDEFD25EA0EDC49AB9/75a883782ff7482ca7e02b1678431821/9e6dfcb52e4142a4ba938586934b04ec.jpg



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表