ESX host upgrade to 4.1 using esxupdate 19

So vSphere 4.1 is out, here is a quick example how to upgrade ESX 4.0 host to 4.1 using esxupdate on ESX Service Console.

Download pre-upgrade-from-ESX4.0-to-4.1.0-0.0.260247-release.zip and upgrade-from-ESX4.0-to-4.1.0-0.0.260247-release.zip files from vmware.com, you need active support subscription for that.

  1. Copy both files ESX host Service Console
  2. Put host in maintenance mode
  3. Run esxupdate with "update –bundle=/path/to/pre-upgrade-zip-file"
  4. Run esxupdate with "update –bundle=/path/to/upgrade-zip-file"
  5. Reboot
  6. Exit maintenance mode

You can put host in maintenance mode using CLI with following command

# vimsh -n -e /hostsvc/maintenance_mode_enter


Execute pre-upgrade patching

# esxupdate update --bundle=pre-upgrade-from-ESX4.0-to-4.1.0-0.0.260247-release.zip

pre-upgrade-from-ESX4.0-to-4.1.0-0.0.26024.. #################################### [100%]
Unpacking vmware-esx-esxupdate-4.1.0-0.0.2.. #################################### [100%]
Unpacking vmware-esx-uwlibs-4.1.0-0.0.2602.. #################################### [100%]
Unpacking glibc-common-2.5-34.2926.vmw.x86.. #################################### [100%]
Unpacking glibc-2.5-34.2926.vmw.x86_64.vib   #################################### [100%]
Unpacking glibc-2.5-34.2926.vmw.i686.vib     #################################### [100%]
Installing glibc-common                      #################################### [100%]
Installing glibc                             #################################### [100%]
Installing glibc                             #################################### [100%]
Installing vmware-esx-uwlibs                 #################################### [100%]
Installing vmware-esx-esxupdate              #################################### [100%]
Cleaning up vmware-esx-esxupdate             #################################### [100%]
Cleaning up vmware-esx-uwlibs                #################################### [100%]
Cleaning up glibc-common                     #################################### [100%]
Cleaning up glibc                            #################################### [100%]
Cleaning up glibc                            #################################### [100%]


Execute upgrade patching

# esxupdate update --bundle=upgrade-from-ESX4.0-to-4.1.0-0.0.260247-release.zip
Host was not updated, no changes required.
Skipping bulletin ESX410-GA-esxupdate; it is installed or obsoleted.
Unpacking rpm_vmware-esx-likewise-ad.. ########################################## [100%]
... lots of updated RPM packages ...
Cleaning up nss_ldap                   ########################################## [100%]

Running [/usr/sbin/cim-install.sh]...
ok.
Running [/usr/sbin/vmkmod-install.sh]...
ok.
Running [esxcfg-boot -b]...
ok.
The update completed successfully, but the system needs to be rebooted for the
changes to be effective.


And after succesful patching reboot ESX host

# reboot


To exit from maintenance mode using CLI run

# vimsh -n -e /hostsvc/maintenance_mode_exit

And you are done

19 thoughts on “ESX host upgrade to 4.1 using esxupdate

  1. Reply jand Jul 17,2010 21:29

    From where do i find the 2 files pre-upgrade-from-ESX4.0-to-4.1.0-0.0.260247-release.zip and upgrade-from-ESX4.0-to-4.1.0-0.0.260247-release.zip

    I have a valid license

  2. Reply HITCare Jul 18,2010 18:49

    THANKS! Sunday morning and not enough coffee. Command listing was helpful when trying to get the esxupdate to process the zip. Like a dummy I had unzipped it first..

  3. Reply Martin Aug 13,2010 22:18

    This worked fine for me with ESX 4.0.0,
    but not with ESX 4.0 Update 2.
    I got a message ‘Duplicate Entries in the patch database’
    or something similar.
    So i did a new installation of 4.1 and said ‘preserve existing datastore’.
    Is there a way to go from 4.0 Update2 to 4.1?

    • Reply Tomi Hakala Aug 15,2010 10:34

      Sorry, never seen that error so can’t help you with that. If you find an solution, please post it here, I’d be grateful for that.

  4. Reply Jordan Sep 16,2010 16:47

    Worked great for me… Couldn’t use your command to put my host into maintenance mode, kept returning a bunch of jibberish. So I did so from the vsphere client instead! I’m all updated now! Thx!

  5. Reply Uttam Kumar Nov 1,2010 09:47

    Not able to download
    1.pre-upgrade-from-ESX4.0-to-4.1.0-0.0.260247-release.zip

    2.upgrade-from-ESX4.0-to-4.1.0-0.0.260247-release.zip

    Please let me know from where i can download these above zip file.I had ESX 4.1
    iso image but didnt find the ZIP file.
    regds

  6. Reply Francisco Jan 7,2011 04:23

    Hi;
    What about the vmware tools?.
    It is mandatory to update the vmware tools in the VMs?.
    Thanks

    • Reply Tomi Hakala Jan 7,2011 08:04

      Hi Francisco,

      It is not mandatory to upgrade VMware Tools but it is highly recommended.

  7. Reply Daniel Feb 15,2011 17:51

    I can find the
    upgrade-from-ESX4.0-to-4.1.0-0.0.260247-release.zip file but not the
    pre-upgrade-from-ESX4.0-to-4.1.0-0.0.260247-release.zip <<– Where can I get this file?

    • Reply Tomi Hakala Feb 19,2011 11:37

      All these files are available at vmware.com vSphere 4.1 downloads, to access the files you need active support subscription.

  8. Pingback: Updating Esx 4.1 quick notes | Weazle's Blagh

  9. Reply Neil Moore Mar 15,2011 20:19

    The update patch will not show up of you click on the ESXi download.. only the ESX one.

  10. Reply Ray Mar 13,2012 02:07

    Okay so I applied the changes and it look like it installed the update, but I still show the same build number. Are you guys having the same issue, shouldn’t the build number get updated. I am upgrade from esxi 4.1 update1 to 4.1 update 2. Let me know what you think. Thanks.

    Ray

  11. Pingback: alpertunga.info » ESX host upgrade to 4.1 using esxupdate

  12. Reply Nadir Feb 1,2013 15:54

    I updated a vmware esx server 4.1.0 and I got the error.

    esxupdate –bundle /tmp/vmpatch/ESX410-201206001.zip update

    I get the following error.

    Cleaning up vmware-esx-vmx ######################################################################## [100%]

    Running [cim-install.sh]…
    Encountered error PostScriptError:
    The error data is:
    Script – cim-install.sh
    Exitcode – 127
    Errno – 19
    Description – A post-transaction script failed with a nonzero exit code.
    Examine esxupdate logs for more details.

    My system is working good after reboot with newer version no issue. But I am curious about his error. Can someone help please.

Leave a Reply

banner