Remotely upgrade host ESXi

Put host into Maintenance Mode and connect to host via SSH:

vim-cmd /hostsvc/maintenance_mode_enter

 

Run the following command to enable the httpClient in the firewall:

esxcli network firewall ruleset set -e true -r httpClient

 

Run to following command to check for available packages:

esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | sort -r

Or add option to filter list:

esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep ESXi-5.5

 

Review list of available packages and note the name of the package to update to.

Run the following command to begin the update:

esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-5.5.0-20140302001-standard

 

Once the update is complete type reboot to restart the host.

Reconnect via SSH once rebooted and exit maintenance mode:

vim-cmd /hostsvc/maintenance_mode_exit

 

Option to disable httpClient in firewall:

esxcli network firewall ruleset set -e falseĀ -r httpClient