VMware ESXi 5 – Applying Patches and Updates

(ESXi 5 Update 1 and Patches)

KB ID 0000623


When VMware released ESX 4.1, they took away the “Host update utility”, (which was a mistake!). For people without VMware Update Manager, you now have to either put in the CD/DVD and do an ‘in place upgrade’, or grow a ginger pony tail and put some socks/sandals on and do some Linux.

Below I’ve got a build of ESX with no updates on it, I’m going to apply the ‘Update 1″ then the most recent patch to bring the host up to date (at time of writing).


1. Whilst connected to your host with the VI client > Select the host > Configuration > Security Profile > Services Section > Properties > SSH > Options >Start > OK > OK > Exit the VI client.

ESX Enable SSH Access

2. Connect to the host via an SSH command window (PuTTy shown). Log on as the root user, to check your current ‘build’ version issue the following command;

vmware -v

ESX Command to show Build Number

3. You should have a fair idea what piece of storage has the most free space already, this host only has one datastore (datastore1). That’s the one I’m going to download the updates into. To view the Datastores issue the following command;

ls -l /vmfs/volumes/

ESX List Datastores

4. Change directory, so that you are ‘in’ that datastore and create a directory called ‘UPDATE’.

cd /vmfs/volumes/datastore1<br /> mkdir UPDATE

ESX Create Directory

5. Then change into that directory;


ESX Update Directory

6. From a browser visit the VMware patch portal, locate the update you want to download and install, (here it’s VMware 5.0.0 Update1). Right click the download link and copy the URL.

Note: Patches after major updates are cumulative, I also downloaded the ‘latest’ patch.

VMware Patch Portal

7. You need to remove the ‘s’ from the URL, I just paste the link into notepad, edit it then copy it again.

Convert URL from https to http

8. Back at your command window download the update with the following command;

wget http://hostupdate.vmware.com/software/VUM/OFFLINE/release-328-20120312-212851/update-from-esxi5.0-5.0_update01.zip

Download Update 1 to ESX

9. When completed, download any other required patches;

wget http://hostupdate.vmware.com/software/VUM/OFFLINE/release-341-20120605-165537/ESXi500-201206001.zip

Download Update to ESX5

10. Before applying the update/patches, the host needs to be in maintenance mode;

vim-cmd hostsvc/maintenance_mode_enter

Put ESX in Maintenence Mode

11. Then apply the update with the ‘esxcli’ command as follows;

esxcli software vib install -d /vmfs/volumes/datastore1/UPDATE/update-from-esxi5.0-5.0_update01.zip

ESX Update to U1

12. When complete, you will need to ‘scroll up’ and make sure it says, “Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.”

Update 1 was Successful

13. After the update, I am applying the latest patch with the same esxcli syntax, like so;

esxcli software vib install -d /vmfs/volumes/datastore1/UPDATE/ESXi500-201206001.zip

ESX Install Update

14. Once again you will need to ‘scroll up’ and locate, “Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.”

Update was Successful

15. Now reboot the host;


Reboot ESX

16. Once the host is back online, connect and take it out of maintenance mode.

Exit Maintenence Mode

17. Then locate the folder containing the update software and patches.

Delete Update Folder

18. And delete it.

Delete the ESX Updates

19. Finally power your guest machines back on again.

ESX Power on Guests

Related Articles, References, Credits, or External Links

Enable SSH Access to vSphere ESXi

Upgrade vSphere 4 Environment to vSphere 5

Update VMware ESXi from 4.0 to 4.1

Upgrade ESX 3 to version 4.1.0

Author: Migrated

Share This Post On