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
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s