Update: Patching VMWare ESXi 5.1

So I finally got around to patching my ESXi server which was several months behind. I thought I would just be able to use the same command I used previously wrote about to update it. That proved to be unsuccessful and all I got for my efforts were errors about the profile name. After some searching I discovered a new command to accomplish what I wanted.

esxcli software vib install -d /vmfs/volumes/Datastore/update.zip

Datastore is the name of the datastore the update is on and update.zip will be the patch file name. The complete command would look like this:

esxcli software vib install -d /vmfs/volumes/Storage/Updates/ESXi510-201307001.zip

Installation Result
Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
Reboot Required: true

   VIBs Installed: etc....
   VIBs Removed: etc....
   VIBs Skipped: etc....

After running the command you should get a message saying something similar to result above. It will usually be followed by a long list of all the individual packages. Reboot your host either through the vSphere client or by typing

reboot

and your host should be updated once it finishes rebooting.

 

Manually upgrading ESXi 5.0 to ESXi 5.1

I finally got around to updating my ESXi server today. Since I don’t have the hardware to run vCenter and thus do not use it I had to do it the manual way. This method involves connecting via SSH but is relatively straightforward.

  1. Download the update from VMware. The following link should take you directly to your My VMware page: VMware
    1. The file should be named VMware-ESXi-<version>-depot.zip
  2. Suspend or shutdown any running VM’s and put the system into Maintainence mode.
  3. The next step is to enable SSH on your ESXi Server by going to Configuration > Security Profile > Properties. Start the SSH service and close the popup.
  4. From there you’ll want to upload the VMware-ESXi-<version>-depot.zip we downloading earlier to the server
  5. Once the zip has been uploaded, open Putty or your preferred SSH client and connect to the ESXi server.
  6. Log into the server from SSH and run the following command where <datastore> is the location of the zip we uploaded earlier and <version> is the version number of the file (in this case, ESXi-5.1.0-799733).
    1. esxcli software profile update -d /vmfs/volumes/<datastore>/VMware-ESXi-<version>-depot.zip -p ESXi-<version>-standard
  7. Once the process is finished reboot the sever. If the update was successful take the server our of Maintainence mode, and resume your VM’s.

You’ll probably have to update VMware Tools for your VM’s but your server should now be running properly on 5.1 ( or whatever version you upgraded to, assuming the command isn’t changed/removed).

Verified by MonsterInsights