Thursday, July 15, 2010

Upgrading to ESXi 4.1 with vihostupdate Utility

 vihostupdate Utility
If you have a standalone ESXi host, upgrading to 4.1 is very simple. If your hosts are connected through vCenter, then you need to upgrade vCenter server first.

Note that you cannot upgrade your host through the following methods

  • VMware vCenter Update Manager. vSphere module that supports direct upgrades from ESX 3.5 and ESX 4.0 to ESX 4.1.
  • vihostupdate. Command-line utility that supports direct upgrades from ESX/ESXi 4.0 to ESX/ESXi 4.1. This utility requires the vSphere CLI.
  • esxupdate. Command-line utility for ESX 4.0 to ESX 4.1
  • esxupgrade.sh script. For ESX 3.5 hosts that do not have network access. 
Only the first 2 methods can be used to upgrade the ESXi hosts. Here I used the vihostupdate Utility.

Procedure is as follows, here I installed through vihostupdate.
1) Download the zip file from the vmware site (upgrade-from-ESXi4.0-to-4.1.0-0.0.260247-release.zip)
2) Keep the file in the local PC or laptop where vSphere CLI is installed. ( I placed on F drive)
3) Put the host in maintenance mode.
4) Invoke the vSphere CLI and update the hosts through below command

The upgrade ZIP bundle contains and esxupdate bulletin and an upgrade bulletin.
Install the esxupdate bulletin first by the command

C:\Program Files\VMware\VMware vSphere CLI\bin>vihostupdate.pl --server vm4 --install --bundle F:\upgrade-from-ESXi4.0-to-4.1.0-0.0.260247-release.zip -B ESXi410-GA-esxupdate


Then Install the upgrade bulletin by the command:

C:\Program Files\VMware\VMware vSphere CLI\bin>vihostupdate.pl --server vm4 --install --bundle F:\upgrade-from-ESXi4.0-to-4.1.0-0.0.260247-release.zip -B ESXi410-GA

 
Enter username: root
Enter password:


Please wait patch installation is in progress ...
The update completed successfully, but the system needs to be rebooted for the changes to be effective.
C:\Program Files\VMware\VMware vSphere CLI\bin>

5) Reboot the host and exit maintenance mode.

C:\Program Files\VMware\VMware vSphere CLI\bin>vihostupdate.pl --server vm4 -q
Enter username: root
Enter password:
---------Bulletin ID--------- -----Installed----- ----------------Summary-----------------
ESXi410-GA                           T03:55:16          ESXi upgrade Bulletin
ESXi410-GA-esxupdate          T07:29:43          ESXi pre-upgrade Bulletin


6 comments:

  1. "Note that you cannot upgrade your host through the following methods"
    isn't quite right. I think it should say you *can*

    ReplyDelete
  2. BIG BIG thanks for this article, really helped a lot.

    ReplyDelete
  3. Use Vmware vsphere host update utility.
    Very simple !!

    ReplyDelete