How to update VMware ESX patch using CLI
Posted by Jas - on August 25th, 2008 in Tips, Virtualization | 3 Comments »

Using VMware Update Manager is pretty easy for VMware patch update but I would like to share about how to update VMware ESX patch using command line interface here as an alternative way.
First download VMware patch from VMware download web site said for an example:
VMware ESX 3.5 Update 2
Latest Version: 3.5 Update 2 | 8/13/2008 | Build: 110268
Login with your username & password and click YES for agree with VMware Inc. term and condition.
Option 1:
Once completed the VMware patch download, you can either copy the patch source file to Apache or IIS web server and unzip it said http://webserver.malaysiavm.com/esxupdate/
Before continue with VMware ESX host patch, you can vmotion all VMware guest from ESX host 1 to VMware ESX host 2. Connect to VMware ESX host 1 box using SSH,
Enter server maintenance mode:
Tips: How can I check whether ESX host is in maintenance mode.
Turn Off Firewall:
ESX patch update:
Option 2:
Copy patch source files into ESX host itself said for an example folder /download/esxupdate
Enter maintenance mode:
Turn Off Firewall:
ESX patch update:
Login another SSH session and monitor patch update log:
Let’s wait for a while and VMware host patch should be in progress now. The ESX host should be reboot once the patch completed.
Turn On Firewall:
Exit maintenance mode:
Again, we can check ESX host patch update using command:
cat /proc/vmware/version
OR
vmware -v
OR
esxupdate -l query
Congratulation! You’re done. You should have latest VMware ESX patch now!
Please feel free to comment to make it more useful to everyone.
Related posts:
- Apply VMware vSphere 4 Update 1 Patches
- Upgrade from ESX 4 to ESX 4 update 1 with update manager fail
- ESX 3.5 update 4 released
- vCenter 4.0 patch 1


3 Responses
thanks and this is really useful
Glad to see there are other people out there that prefer the command line to the Update manager. To me update manager seems like overkill when the command line tools will do the job just as well.
We follow pretty much the same procedure you detail, except that we use an NFS mount that is accessible from all of our VMware hosts to apply the patches.
Very nice article.
Agreed, as alternative plan, the command always the best option when the GUI had gone crazy