How to install a new base version of Citrix XenServer over an existing one, whilst maintaining the existing VMs.
Prepare For Upgrade
- Read the release and upgrade notes.
- Check your upgrade path: that you can upgrade directly from the version you're on to the version you're planning.
- Shutdown the VMs: log into each machine and shut id down or use XenCenter
- Create a backup of the VM database. This will come in handy if the upgrade fails:
xe pool-dump-database file-name=pool-dump.xml
Get the ISO
- In an existing linux system, plug in a USB drive and find where it is mapped:
sudo fdisk -l
This will give a load of information but the last 'Device Boot, Start...' and an entry like /dev/sdc1
You can double check with the command: lsblk
Cross check with using the device's size
- Format it
mkdosfs -F 32 -I /dev/sd?
e.g. mkdosfs -F 32 -I /dev/sdc1
If you're missing the command install the required package e.g. apt-get install dosfstools (or yum install)
- Unmap it if it's mapped:
sudo fdisk -l
(add -l if its in use)
- Down load Xenserver:
wget [path to Xenserver iso]
- Burn the iso to the usb:
dd if=/path/to/the.iso of=/dev/sdb bs=1M
- Ensure you can boot from it: sometimes the USB won't be bootable and you need to try a different USB or a different system to make it with.
Run the Upgrade
- Boot from the USB: you may need to use a screen and keyboard to select the USB as the boot.
- Follow the prompts and select 'upgrade'.
Post Upgrade Tasks
- Update Citrix XenCentre on any Windows desktops by browsing to the server's IP to get the installer.
- Update XenServer tools on and client VMs (see Linux instruction here)
- Check the ISO repository or any other attached storage: it likely have become detached.