Upgrading to VMware ESXi 5

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

Upgrade Method ESX or ESXi to ESXi 5 Upgrade or Patch from ESXi 5.0 to
ESXi 5.n
vSphere Update Manager yes yes
Interactive upgrade from CD, DVD, or
USB drive
yes yes
Scripted upgrade yes yes
vSphere Auto Deploy no yes
esxcli no yes

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

There is a warning. Click on the 1 to expand the warning

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:

upgrade Upgrades to ESXi 5
installorupgrade Tries 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

 

[ad#banner]

9 thoughts on “Upgrading to VMware ESXi 5”

  1. Great article!

    So migrating from ESX 4.0 ‘Classic’ to ESXi 5.0 lets you keep your local VMFS partition including all the machines? Moving from ESX 4.0 to ESXi 4.1 needed a complete re-install.

  2. Hello, I just installed this version ESXi 5.0.0, but my current VMs are on ESX 3. The converted to VMware Workstation, the question is whether the new version of VMware Converter I can move to my new ESXi 5.0.0 server using VMware Workstation as the source and destination VMware ESXi? Is this possible? Thanks, I await your answers.
    Greetings!

  3. I have esxi 4.1 installed on a usb drive, can i upgrade to esxi 5? Can i just put the installer iso on a usb ( like i did with 4.1) and reboot?

  4. Mohamed,
    Does that mean, that if we need to upgrade a ESX3.5 host to ESXi5, we can migrate all the machines to another ESX 3.5 host, wipe and load ESXi5 and then use the converted to migrate VMs from 3.5 to the new ESX 3.5i using the converter? Thanks

Leave a Comment