Internet connection on the ESXi host.
If your host managed by vCenter, you need to upgrade the vCenter to version 6.5 before upgrade the ESXi host or you will not be able to connect to the host.
Enable SSH and connect to your ESXi host via Putty (or any SSH client).
Enable firewall rule (allow) for web traffic using the below command:
esxcli network firewall ruleset set-etrue -r httpClient
Run this command to see the VMware online depot and the different profiles you can upgrade from.
esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep -i ESXi-6.5
Run the upgrade with this command:
esxcli software profile update -p ESXi-6.5.0-4564106-standard -d http://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
Reboot the ESXi host to complete the upgrade; with this command: