How to Upgrade ESXi 6.0 to 6.5 via CLI

来自koorka知识分享
跳转至: 导航搜索

Step 1: Enable SSH and connect to your ESXi host via Putty (or alternative)

Step 2: Enable firewall rule (allow) for web traffic
esxcli network firewall ruleset set -e true -r httpClient
Step 3: 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
to list available profiles like this:
[root@bogon:~] esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-inde
x.xml | grep -i ESXi-6.5
ESXi-6.5.0-20170104001-standard   VMware, Inc.  PartnerSupported
ESXi-6.5.0-20170304001-no-tools   VMware, Inc.  PartnerSupported
ESXi-6.5.0-20170404001-no-tools   VMware, Inc.  PartnerSupported
ESXi-6.5.0-20170104001-no-tools   VMware, Inc.  PartnerSupported
ESXi-6.5.0-20170301001s-no-tools  VMware, Inc.  PartnerSupported
ESXi-6.5.0-20170404001-standard   VMware, Inc.  PartnerSupported
ESXi-6.5.0-20170301001s-standard  VMware, Inc.  PartnerSupported
ESXi-6.5.0-20170304101-no-tools   VMware, Inc.  PartnerSupported
ESXi-6.5.0-4564106-standard       VMware, Inc.  PartnerSupported
ESXi-6.5.0-20170304001-standard   VMware, Inc.  PartnerSupported
ESXi-6.5.0-4564106-no-tools       VMware, Inc.  PartnerSupported
ESXi-6.5.0-20170304101-standard   VMware, Inc.  PartnerSupported
We will select the newest package as the update target. Step 4: Run the upgrade with this command:
esxcli software profile update -p ESXi-6.5.0-20170404001-standard -d https://hostupdate.vmware.com/software/VUM/P
RODUCTION/main/vmw-depot-index.xml
When it finished, will output like the following text:
Update Result
   Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
   Reboot Required: true
   VIBs Installed: .......
if any error please check the log file : /var/log/esxupdate.log