Clicky

Citrix XenServer Rolling Upgrade

32 Flares Twitter 13 Facebook 8 Google+ 5 Pin It Share 0 LinkedIn 6 Email -- Buffer 0 32 Flares ×

Citrix XenServer Upgrade 01 Citrix XenServer Rolling Upgrade

The Citrix XenServer Rolling upgrade feature was introduced in Citrix XenServer 5.6 Feature Pack 1. This is a fantastic wizard that will upgrade all your XenServers automatically to the latest version from a central FTP/HTTP or NFS network share. So instead of upgrading hundreds of XenServers manually with DVD/USB you can now use this tool instead.

There’s currently a lot of threads on the Citrix Forum so I thought it would be nice to provide a detailed guide on how to do this with NFS.

First of you’ll need to upgrade Citrix XenCenter to the latest version and setup a NFS share with the extracted content of the latest XenServer-6.0.201-install-cd.iso. To extract ISO files you can use Pismo File Mount or WinRAR.

For this demonstration I’ve used haneWIN NFS Server which allows you to setup a NFS share on a Windows 7 machine. This is a great tool for people that want to setup a NFS share on a laptop as Storage for XenServer/ESX or even a multimedia center.

My share is located on D:\xs602 and the -public switch enables WebNFS access.

Citrix XenServer Upgrade haneWIN NFS Server 300x277 Citrix XenServer Rolling Upgrade

Start Citrix XenServer Rolling Upgrade from the Tools menu of Citrix XenCenter

Citrix XenServer Upgrade 02 300x200 Citrix XenServer Rolling Upgrade

Select your pool

Citrix XenServer Upgrade 03 300x200 Citrix XenServer Rolling Upgrade

and then Automatic Mode – automated upgrade from network install files.

Citrix XenServer Upgrade 04 300x200 Citrix XenServer Rolling Upgrade

The wizard will run pre checks to make sure that e.g. all VM’s are suspended or shut down and that all VM’s have an empty DVD drive.

Citrix XenServer Upgrade 05 300x200 Citrix XenServer Rolling Upgrade

The last step before the upgrade starts is to setup the path. Select NFS from the drop down list and type in the path. So in my example my drive is D and the share name is xs602. So the path would be 192.168.1.148:/d/xs602. Make sure to click the Test button to check that everything is okay before you proceed.

Citrix XenServer Upgrade 06 300x200 Citrix XenServer Rolling Upgrade

The Citrix XenServer Rolling Upgrade feature is a godsend tool to administrators of big XenServer solutions. The only con is that if you’re running Citrix Provisioning Services and using a PVSboot.iso as a backup function for your PXE than you got some work to do. 100 XenServers and 10 VM’s per host would mean 1000 eject/insert of the ISO in the DVD drive of each VM.

Would be great if anyone have made a script to eject and insert ISO images in the DVD tray of all VM’s for a complete Citrix XenServer Pool.

Resource :

Like what you've read?

If so join over 20.000 people and receive FREE Citrix XenApp
and XenDesktop Training, blog updates and information on
upcoming webinars. Click the red button below!
 Citrix XenServer Rolling Upgrade

8 Responses to Citrix XenServer Rolling Upgrade

  1. Dan says:

    This code doesn’t handle the mounting of the ISO, and would only be valid for windows hosts however you can eject the CD/DVD drive on a windows host with the following powershell code:

    $cd_drived = ‘D:’
    $sa = New-Object -comObject Shell.Application
    $sa.Namespace(17).ParseName(“$cd_drived”).InvokeVerb(“Eject”)

    With more recent features in powershell you can run powershell commands remotely on hosts (similar to psexec) so this might get you part way there on your script…

  2. Magnar Johnsen says:

    Thanks for the info. Here’s a script to eject and insert iso on all vm’s on xenserver console:
    http://virtexperience.com/2012/09/04/script-to-assign-pvs-boot-iso-to-xenserver-vms/

  3. OmoIyaEleja says:

    On the contrary, the Rolling Pool Upgrade is not God sent as we’ve tried running it in our environment from XS 6.0.2 to XS 6.1. One thing you as well as Citrix failed to mention was what to do with the attached storage devices before starting the RPU and not to use the FTP option to store your installation files (RPU only supports NFS, FTP and HTTP)….WTF???? Aaaanyhoo, the upgrade took 3.5 hours to install on the pool master but failed to re-attach the FC HBA back to the host. As you cannot run a mixed mode resource pool, we had to retire the pool master and promoted another host in the pool to PM (Obviously, Pool Master running 6.1 would not elect a lower versioned host to become PM) we had to power off the PM and that made all the hosts in the pool go into emergency mode…..i could go on all day if you’ve even been involved in rescuing hosts running PVS and XenDesktop servers before start of business the next day.

  4. Gabriel says:

    It worked like charm : )

  5. jamie says:

    linux:

    # mkdir /mnt/xeniso (or whatever u wanna call it)
    # mount -o loop XenServer-version-cd.iso /mnt/xeniso

    # apt-get install nfs-kernel-server
    # vim /etc/exports

    # —- in your nfs exports file: —
    /mnt/xeniso sub.net.of.pool/cidr(ro,sync,no_subtree_ckeck,fsid=0,no_root_squash)

    # serice nfs-kernel-server reload

    so in xencenter rolling pool upgrade:
    nfs
    address.of.my.linux:/mnt/xeniso/

    good to go.

Leave a reply

Name: Email:
32 Flares Twitter 13 Facebook 8 Google+ 5 Pin It Share 0 LinkedIn 6 Email -- Buffer 0 32 Flares ×