Upgrade to ESXi 6.0 Update 2

While upgrading to ESXi 6.0 Update 2 you receive:

VIB VMware_bootbank_esx-base_6.0.0-2.34.3620759 requires vsan >= 6.0.0-2.34, but the requirement cannot be satisfied within the ImageProfile.

Run:

esxcli software profile update -p ESXi-6.0.0-20160302001-standard -d /vmfs/volumes/datastore1/updates/update-from-esxi6.0-6.0_update02.zip

Determine the build number and the latest update applied by running the command:

vmware -vl

Reference:
https://my.vmware.com/group/vmware/patch#search
https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2144595

Upgrade ESXi 5.x to 6

How to update ESXi 5.x to the latest build of 6

Sign into VMware and start the trial for VMware vSphere:
https://my.vmware.com/group/vmware/evalcenter?p=vsphere6

Use VMware Software Manager to download VMware-ESXi-6.0.0-2494585-depot.zip
http://www.vmware.com/products/software-manager/

Using vSphere Client upload to local datastore, enable SSH, enter maintenance mode and run the following command:

esxcli software profile update -d /vmfs/volumes/datastore1/updates/VMware-ESXi-6.0.0-2494585-depot.zip -p ESXi-6.0.0-2494585-standard

Reboot and verify version 6.0.0, 2494585

vmware -vl

Download and apply latest patches:
https://www.vmware.com/patchmgr/findPatch.portal

esxcli software vib update -d /vmfs/volumes/datastore1/updates/ESXi600-201504001.zip

Reboot and verify version 6.0.0, 2615704

Reference:

http://www.vladan.fr/easily-upgrade-esxi-5-x-to-the-latest-esxi-5-5-update-1-via-cli/
http://www.v-front.de/2015/03/vsphere-6-is-ga-ultimate-guide-to.html