How to easily install a zip file patch on an ESXi 5.0 host

On Nov 7, 2011, VMware published this kb article about iSCSI delays:
ESXi 5.x boot delays when configured for Software iSCSI
it includes a link to this site:
VMware ESXi 5.0, Patch Release ESXi500-201111001
which tells you about the ESXi500-201111001.zip file you download from here:
www.vmware.com/patch/download
by searching for the filename, or even easier, here's the direct download link for ESXi500-201111001.zip. This zip file contains numerous patches in the form of VIB files, the screenshot below shows the actual work it did in my situation, which is not much. But consider this a rehearsal for ESX 5.1 or whatever the next release is called, which may use a similar procedure. Also, be sure to shut down all VMs first, since this will require your host be rebooted!
Alternatively, if you must be extremely cautious in a production environment here, and don't necessarily have the usual vSphere Client GUI view of your environment, you might also consider these more advanced set of instructions (that take much longer to get through, but have the same end result).
Here's a simple/fast approach I used in a lab box (with no running VMs), it took 10 minutes total, and there was no issue with any of my virtual machines running after the update.
1) Enable SSH on ESXi 5.0
It’s quite easy with the ESXi vSphere client, step-by-step found here. You can do this for each time you boot, not leaving it enabled at start time (security consideration).
2) Move it
I happened to use freeware WinSCP (or Veeam FastSCP) and the simple GUI, but using Linux will do nicely too. Point WinSCP to your ESX host IP, drag and drop the file you downloaded:
ESXi500-201111001.zip
into the ESXi 5.0 hosts datastore, I used /vmfs/volumes/1.5TB

3) Patch it
Then, at PuTTY (SSH for Windows) session on the ESXi 5.0 host
Enter the following 2 commands (substituing your volume name, where I have 1.5TB in example below):
cd /vmfs/volumes/1.5TB
esxcli software vib update --depot=/vmfs/volumes/1.5TB/ESXi500-201111001.zip
It may take several minutes to return the cursor to you, at which point, it should say something like this:

4) Reboot it
That's all! At boot time, you'll see build 504890 shown on the screen.
All Comments on This Article (13)
THANK YOU! Saved me hours, for sure. I just uploaded the zip file to the datastore via the vSphere Client and followed the rest of the instructions. Worked like a charm!
or this one:
http://winscp.net/eng/docs/message_incoming_packet_was_garbled_on_decryption
I didn't have to do anything special.
Do the tips in this (admittedly very old) post help?
http://winscp.net/forum/viewtopic.php?t=5903
Are there some mystical settings to WinSCP with regards to copying files to ESX 5.0.0 ga? All I get is "Incoming Packet Garbled on Decryption" when trying to copy the patch .zip over to /vmfs/volumes/foo...
Direct link for you for downloading ESXi 5.0 Update 1, right over here:
http://tinkertry.com/vsphere-5-0-update-1-released/
let us know how it goes!
Got just the right article for you, if it's ESXi 5.0 Update 1 you're seeking: direct download link posted at the top of this very recent posting, let us know how it goes!
http://tinkertry.com/vsphere-5-0-update-1-released/
Wow, hard to say. Perhaps the one VIB inside the bundle is corrupt (is the log viewable?). Perhaps try to download and move to ESXi again, then run the command again.
Hi,
i am trying this but getting error like :
/vmfs/volumes/4f45862f-a2578872-eccd-bc305bdf6b97 # esxcli software vib update --depot=/vmfs/volumes/4f45862f-a2578872-eccd-bc305bdf6b97/ESXi500-201112001.zip [InstallationError] [Errno 32] Broken pipe vibs = VMware_locker_tools-light_5.0.0-0.7.515841 Please refer to the log file for more details.
what should i do now ?
Anon, thank you!
Turns out, the underlying code that I cut and pasted didn't have a typo, it was Wordpress automatically removing the second dash, fix was pretty easy though:
http://www.lancelhoff.com/wordpress-double-dashes-removed-on-post/#more-2387
I will have to remember that whenever I post code in the future.
Live and learn, and thank you so much for the heads-up!
Shusant
great job, exactly what I needed for esxi 5.0