Upgrade ESXi4.0 to ESXi4.1 – The Unofficial Method


Now that vSphere ESXi 4.1 is out and available for download here, I wanted to upgrade my home lab with the latest release. Whilst ISO’s got downloaded, I searched VMware KB for any tips on how to perform the upgrade and I found KB1022140: Upgrading ESX 4.0 to ESX 4.1

The KB article comes with a table which outlines what version of ESX/ESXi you can upgrade from, what upgrade package is necessary, and which utility can be used to perform the upgrade. Apparently from the table you cannot use the ESXUPDATE tool to upgrade from 4.0 to 4.1 doh!

I wasn’t convinced and wanted to try that out myself and surprisingly it works like a charm. So VMware please update your table as follow:)

Here is a video I created showing you all the steps to perform such upgrade.

There are three requirements prior the upgrade:

  1. First you have to download the ESXi 4.1 (upgrade ZIP from ESXi4.0) package from VMware, 
  2. Secondly, you need to copy that zip package either to a shared storage accessible by your target ESX host, for example an NFS share, or either to the local /tmp folder of the target ESX host but I haven’t tested that option.
  3. N.B. Personally I would recommend a shared datastore.

  4. And finally, you need to be allowed SSH in your target ESX host.

Now a summary of the steps:

  1. If you have a cluster and DRS is turned on, you just put your target ESX host in maintenance Mode: vim-cmd hostsvc/maintenance_mode_enter to evacuate (vMotion) the VMs on other cluster members.
  2. If you don’t run a cluster, you need to:
    1. Get a list of all registered VMs on that target ESX host: vim-cmd vmsvc/getallvms
    2. Then for each VM, get the power status: vim-cmd vmsvc/power.getstate
    3. Then for each powered-on VM, shut it down: vim-cmd vmsvc/power.shutdown
    4. And finally, issue the vim-cmd hostsvc/maintenance_mode_enter
  3. Once the target ESX host is in Maintenance Mode, you can deploy the upgrade:
    1. First check the packages: esxupdate –bundle=/vmfs/volumes/ < your datastoire here > /upgrade-from-ESXi4.0-to-4.1.0-0.0.260247-release.zip check
    2. Then run the update: esxupdate –bundle=/vmfs/volumes/ < your datastore here > /upgrade-from-ESXi4.0-to-4.1.0-0.0.260247-release.zip update
  4. Once the update is completed and before rebooting the host, you can exit the Maintenance Mode: vim-cmd hostsvc/maintenance_mode_exit

N.B. I would not recommend you exit the MM untill you validate the upgrade in vCenter for instance.

Most of the steps here are inspired from vm-help.com. You can accomplish many of the steps here by using the vCenter Client connected directly to the target ESX host but still the ESXUPDATE utility is CLI only!

To learn more about ESXUPDATE utility I would recommend you to read the ESX 4 Patch Management Guide.

About PiroNet

Didier Pironet is an independent blogger and freelancer with +15 years of IT industry experience. Didier is also a former VMware inc. employee where he specialised in Datacenter and Cloud Infrastructure products as well as Infrastructure, Operations and IT Business Management products. Didier is passionate about technologies and he is found to be a creative and a visionary thinker, expressing with passion and excitement, hopefully inspiring and enrolling people to innovation and change.
This entry was posted in Uncategorized. Bookmark the permalink.

13 Responses to Upgrade ESXi4.0 to ESXi4.1 – The Unofficial Method

  1. Pingback: Welcome to vSphere-land! » vSphere 4.1 - The Links

  2. Harnash says:

    Hi,
    You have a little error in command, work command below:

    esxupdate –bundle=/vmfs/volumes/ /upgrade-from-ESXi4.0-to-4.1.0-0.0.260247-release.zip update (or check or info etc.)

  3. Harnash says:

    hmmm – the automation system on this site change double dash ( – -) on one half pause (–)

    • deinoscloud says:

      Hi Harnash and thx for your comment.

      Yes WordPress can be tricky with – or / and also operator signs such the greater/less-than sign

      Sorry about that!

  4. Pingback: No-x Linux » Sunday Morning - ESX Upgrade

  5. Amando van Luin says:

    worked like a charm

  6. Mike says:

    I can’t seem to locate the upgrade package on the VMware vSphere download page

    http://downloads.vmware.com/d/info/datacenter_downloads/vmware_vsphere_4/4

    Which is the page that this VMware KB says should have the upgrade zip:
    http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1022140

    Anyone have a link to the correct VMware page?

    • deinoscloud says:

      Hi Mike,

      The links are correct.

      On the download page click download button of the version you need to upgrade to, let say 4.1 installable.

      Then logon with a proper account, accept the EULA and then click on the upgrade package you want (from 4.0 or from 3.5).

      Rgds,
      Didier

      N.B. You can’t access the download pages without a proper account…

  7. Pingback: Rubén Ortiz » ESXi – actualizar de 4.0 a 4.1

  8. Michael says:

    They changed the name so use this when searching for it:
    hypervisor+4.1+upgrade+zip

    It’s now labeled (for me anyway):
    VMware vSphere Hypervisor (ESXi) > VMware ESXi 4.1
    VMware ESXi 4.1

  9. Pingback: A Year Blogging In Summary And Season’s Greetings « DeinosCloud

  10. Pingback: A Year Of Blogging In Summary And Season’s Greetings | DeinosCloud

Leave a comment