Upgrading to VMware ESXi 5

The following three supported upgrade methods to VMware ESXi 5 are available:

Upgrade MethodESX or ESXI to ESXi5Upgrade or Patch from ESXi 5 to ESXi 5.x
vSphere Update Manageryesyes
Interactive upgrade from CD, DVD, or
USB driveyesyes
Scripted upgradeyesyes
vSphere Auto Deploynoyes
esxclinoyes

It is not supported to directly upgrade ESX(i) 3.x to ESXi 5. You must first upgrade ESX(i) 3 to ESX(i) 4 before upgrading to ESXi 5. Another option is to do an fresh installation.

When upgrading to vSphere ESXi 5 there are a couple of things to think about before starting:

  • It is now possible to upgrade VMware ESX 4.x and ESXi 4.x to VMware ESXi 5. Prior ESXi 5 the upgrade from ESX to ESXi was not supported (fresh installation needed).
  • Make sure using static IP addresses. DHCP addresses can cause problems when upgrading with VMware Update Manager
  • Backup your ESX or ESXi configuration:

For ESX back up the /etc/passwd, /etc/groups, /etc/shadow, and /etc/gshadow directories, custom scripts, local VMs, templates, iso and *.VMX files For ESXi use vicfg-cfgbackup command in from the VMA or esxcli

  • If upgrading the host(s) managed by vCenter server, you must upgrade vCenter to version 5 before upgrade ESX or ESXi
  • Once you have upgraded or migrated your host to ESXi 5.0, you cannot roll back to your
    version 4.x ESX or ESXi software.
  • Lopsided boot banks can occur in systems that are upgraded from ESXi 3.5 to ESXi 4.x, and then upgraded directly to ESXi 5.0. vSphere Update Manager assumes the boot banks are both at 250MB.  If it detects one boot bank is smaller than the other it will report an invalid boot disk and won’t even try to upgrade. More information can be found here .
  • For most ESXi 4.x hosts, the partition table is not rewritten in the upgrade to ESXi 5.0. The partition table is rewritten for systems that have lopsided bootbanks. Lopsided boot banks can occur in systems that are upgraded from ESXi 3.5 to ESXi 4.x, and then directly to ESXi 5.0.
  • The ESXi 5.0 installer cannot detect ESX 2.x instances or VMFS2 datastores. You cannot migrate ESX 2.x instances to ESXi 5.0 or preserve VMFS2 datastores in an upgrade to ESXi 5.0. Instead, perform a fresh installation of ESXi 5.0.
  • For ESX hosts, the partitioning structure is changed to resemble that of an ESXi 4.x host. The VMFS3 partition is retained and a new MSDOS-based partition table overwrites the existing partition table.
  • Upgraded hosts do not have a scratch partition. Instead, the scratch directory is created and accessed off of the VMFS volume. Each of the other partitions, such as the bootbanks, locker and vmkcore will be identical to thatof any other system.

The three upgrade methods are described with some screenshots.

vSphere Update Manager (VUM) ESX 4 or ESXi 4 to ESXi 5 upgrade

  • In vCenter open the VUM plug in and import Host Upgrade Image

image

  • browse to the VMware vSphere 5i installer ISO

image

  • The ISO is uploaded to VUM.

2011-08-19 10h37_31

  • Create Host Upgrade Baseline

image

  • Attach the baseline

2011-08-19 10h40_12

  • Perform an scan

image

  • If there is a warning. Click on the warning to expand

image

  • The following warning is displayed that some modules are removed by the upgrade

image

  • Click on the Remediate button and follow the steps:

image

2011-08-19 11h00_15

2011-08-19 11h01_40

image

image

image

image

  • When the Remediate finish the upgrade is complete and VMware ESXi 5 is installed.

image

Steps of the interactive upgrade using the CD/DVD from ESX4 or ESXi 4 to ESXi 5

image

image

image

image

  • A existing VMFS volume is found and the following selections can be made:

image

  • In this example we migrate VMware ESX 4 to ESXi 5 and choose Migrate ESX, preserver VMFS datastore.

image

image

Scripted upgrade from ESX4 or ESXi 4  to ESXi 5

Scripted upgrade can be done by using a kickstart text file for example ks.cfg. In this file the following options can be used for the upgrade:

upgradeUpgrade to ESXi 5
installorupgradeTries to upgrade to ESXi5. If it is not possible to upgrade it will perform a fresh installation

William Lam has very good information and examples about ESXi 5 scripted installations. For more information see the posts How to Automate the Upgrade of Classic ESX 4.x to ESXi 5 and Automating ESXi 5.x Kickstart Tips & Tricks

comments powered by Disqus