- Make sure SSH is enabled on the host.
- Put the host in maintenance mode.
- Enable firewall rule for web traffic.
esxcli network firewall ruleset set -e true -r httpClient
- Check the current ESXi build and version.
esxcli system version get
- Check your internet connection.
vmkping 8.8.8.8
- List all available profiles in the VMware online repo.
esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
Filter the list with grep:
esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep -i ESXi-6.7.*standard
Or, if you upload the offline installer zip to a VMware datastore, change the -d argument:
esxcli software sources profile list --depot /vmfs/volumes/<disk_id>/folder/VMware_Installer.zip
- Apply the selected profile from the VMware online repo:
esxcli software profile update -p <profile-name> -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
Or, from the local offline installer:
esxcli software profile update -p <profile name> --depot /vmfs/volumes/<disk_id>/folder/VMware_Installer.zip
- Reboot the host.
For quick upgrade from 6.x to 6.7
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-6.7.0-20191204001-standard
Troubleshooting
- To resolve package dependency errors, remove VIBs:
esxcli software vib remove -n <VIB name>
- To resolve package signing errors, add –no-sig-check to the end of your command in step #7.