Tra le varie limitazioni che caratterizzano la versione free di XenServer, spicca la mancata disponibilità di aggiornare automaticamente l’hypervisor tramite XenCenter.
In questo articolo spiegherò come scaricare ed installare le patch passo dopo passo.

1) Individuazione e download degli aggiornamenti

1A) Per controllare quali aggiornamenti sono disponibili  per il nostro XenServer, basta cliccare sull’icona “System Alerts” in alto a destra del client XenServer:

Installare Patch su XenServer 01

1B) Si aprirà una finestracon l’elenco degli aggiornamenti, selezionare la patch desiderata e cliccare sul bottone “Go to Web Page“:

Installare Patch su XenServer 02

1C) Nella pagina web appena apparsa, cliccare sul bottone “Download” e salvare la patch sul computer:

Installare Patch su XenServer 03

2) Trasferimento patch sul virtualizzatore

2A) Per trasferire la patch dal pc verso XenServer basta utilizzare un SCP client, ad esempio WinSCP*:

Installare Patch su XenServer

*ho utilizzato come directory di appoggio la cartella remota “/root

3) Installazione aggiornamenti

3A) Collegarsi a XenServer tramite SSH client e scompattare la patch:

[root@xenserver01 ~]# ls
XS62E002.zip
[root@xenserver01 ~]# unzip XS62E002.zip
Archive:  XS62E002.zip
  inflating: XS62E002.xsupdate
  inflating: XS62E002-src-pkgs.tar.bz2
[root@xenserver01 ~]#

3B) Inserire la patch nel pool Database e prendere nota del suo numero UUID:

[root@xenserver01 ~]# xe patch-upload file-name=XS62E002.xsupdate
59128f15-92cd-4dd9-8fbe-a0115d1b07a2
[root@xenserver01 ~]#

3C) Per eseguire l’installazione dell’aggiornamento è richiesto anche l’UUID dell’host xen, per visualizzarlo scrivere:

[root@xenserver01 ~]# xe host-list
uuid ( RO)                : a89b37b2-7777-438a-952a-603d449bb5aa
          name-label ( RW): xenserver01
    name-description ( RW): Default install of XenServer

[root@xenserver01 ~]#

3D) Concludere l’installazione dell’aggiornamento utilizzando i due codici UUID precedentemente visualizzati:

[root@xenserver01 ~]# xe patch-apply uuid=59128f15-92cd-4dd9-8fbe-a0115d1b07a2 host-uuid=a89b37b2-7777-438a-952a-603d449bb5aa
Preparing...                ##################################################
xen-hypervisor              ##################################################
Preparing...                ##################################################
xen-tools                   ##################################################

[root@xenserver01 ~]#

Nota: se dovete installare la patch su più hosts dentro un pool, basta dare il comando:
xe patch-pool-apply uuid=<UUID patch>

3E) Eliminare gli archivi della patch ed riavviare le toolstack:

[root@xenserver01 ~]# ls
XS62E002-src-pkgs.tar.bz2  XS62E002.xsupdate  XS62E002.zip
[root@xenserver01 ~]# rm -rf XS62E002*
[root@xenserver01 ~]#
[root@xenserver01 ~]# xe-toolstack-restart
Executing xe-toolstack-restart
Stopping xapi: ..                                          [  OK  ]
Stopping the v6 licensing daemon:                          [  OK  ]
Stopping the memory ballooning daemon:                     [  OK  ]
Stopping perfmon:                                          [  OK  ]
Stopping the xenopsd daemon:                               [  OK  ]
Stopping XCP RRDD plugin xcp-rrdd-iostat:                  [  OK  ]
Stopping XCP RRDD plugin xcp-rrdd-squeezed:                [  OK  ]
Stopping XCP RRDD plugin xcp-rrdd-xenpm:                   [  OK  ]
Stopping the XCP RRDD daemon:                              [  OK  ]
Stopping the XCP networking daemon:                        [  OK  ]
Stopping the fork/exec daemon:                             [  OK  ]
Stopping the multipath alerting daemon:                    [  OK  ]
Starting the multipath alerting daemon:                    [  OK  ]
Starting the fork/exec daemon: .                           [  OK  ]
Starting the XCP networking daemon: .                      [  OK  ]
Starting the XCP RRDD daemon: .                            [  OK  ]
Starting XCP RRDD plugin xcp-rrdd-iostat: .                [  OK  ]
Starting XCP RRDD plugin xcp-rrdd-squeezed: .              [  OK  ]
Starting XCP RRDD plugin xcp-rrdd-xenpm: .                 [  OK  ]
Starting the xenopsd daemon: .                             [  OK  ]
Starting perfmon:                                          [  OK  ]
Starting the memory ballooning daemon: .                   [  OK  ]
Starting the v6 licensing daemon: .                        [  OK  ]
Starting xapi: OK                                          [  OK  ]
done.
[root@xenserver01 ~]#

Nota: Se l’aggiornamento richiederà un riavvio dell’host sarà possibile constatarlo su XenCenter

4) Controllo esito aggiornamento

4A) Per controllare il buon esito dell’aggiornamento, basta andare su XenServer e leggere la sezione “Updates
nel tab “General“:

Installare Patch su XenServer