Upgrade ESXi 5.1 to 5.5 Part 3 – esxcli

Upgrade ESXi 5.1 to 5.5 Part 3

In the third post of articles about updating ESXi 5.1 to ESXi 5.5, I will cover the esxcli upgrade.

Prerequisites

Before we will start with upgrade ESXi using esxcli I would like to highlight activities we have to do.

First of all, we need to download so-called offline bundle which is archive we will use to upgrade our host. In my case, we will upgrade ESXi host running version 5.1 U1 (build 1483097).

Upgrade using esxcli

Upgrade ESXi 5.1 to 5.5 - Part 3 esxcli 1

After login to ESXi, we need to start SSH service to upload offline bundle file and later on to do the upgrade. In vSphere Client navigate to **Configuration \ Security Profile.

Upgrade ESXi 5.1 to 5.5 - Part 3 esxcli 1

Click Properties select SSH and Start.

Upgrade ESXi 5.1 to 5.5 - Part 3 esxcli 3

After enabling SSH to upload offline bundle - I am using a very good free tool called WinSCP. I placed an offline bundle in local datastore.

Upgrade ESXi 5.1 to 5.5 - Part 3 esxcli 4

Now we need to SSH to ESXi Server. Using any SSH client (I am using classic PuTTY) login to the server. Navigate to place you put the offline bundle.

I suggest putting the host in maintenance mode. We don’t want to have problems with virtual machines availability when we do upgrade. Let them evacuate to other hosts. In order to do it please execute the following command.

esxcli system maintenanceMode set --enable on

After placing the host in maintenance mode we will execute dry run of an upgrade. Dry run means that we will simulate offline bundle installation.

esxcli software vib update --depot=/vmfs/volumes/datastore/update-from-esxi5.5-5.5_update01.zip --dry-run

Upgrade ESXi 5.1 to 5.5 - Part 3 esxcli 5]6

After the dry run, we can execute upgrade by using the same command without -dry-run.

esxcli software vib update --depot=/vmfs/volumes/datastore/update-from-esxi5.5-5.5_update01.zip

As you see installation was successful.

Upgrade ESXi 5.1 to 5.5 - Part 3 esxcli 5

esxcli system shutdown reboot -r "Upgrade to ESXi 5.5"

After reboot, we see our upgraded ESXi 5.1 to 5.5.

Upgrade ESXi 5.1 to 5.5 - Part 3 esxcli 6

Series of articles about upgrading ESXi 5.1 to 5.5

https://www.wojcieh.net/upgrade-esxi-5-1-to-5-5-part-1-vmware-update-manager/

https://www.wojcieh.net/upgrade-esxi-5-1-to-5-5-part-2-interactive-upgrade/

https://www.wojcieh.net/upgrade-esxi-5-1-to-5-5-part-3-esxcli/

https://www.wojcieh.net/upgrade-esxi-5-1-to-5-5-part-4-vsphere-auto-deploy/