Vmware

From Secure Computing Wiki
Jump to: navigation, search

Update ESXi Appliance

  1. SSH to VMware host you wish to update
  2. Enable outbound access for the VMware internal firewall
    [root@vmware3:~] esxcli network firewall ruleset set -e true -r httpClient
  3. Run the following command to pull a list of software profiles:
    [root@vmware3:~] esxcli software sources profile list --depot=https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
  4. Run the following command, with the profile you desire from the list above to update the system:
    [root@vmware3:~] esxcli software profile update --depot=https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-6.0.0-20161104001-standard
    • Note: Reboot the system twice for the full update to take place.

    When there are no additional updates installed, the output messages will contain the following along with a list of installed, skipped, and removed packages:

    Update Result
       Message: Host is not changed.
       Reboot Required: false
    
  5. Reset the firewall back to original settings:
    [root@vmware3:~] esxcli network firewall ruleset set -e false -r httpClient