How to Upgrade ESXi 6.0 to 6.5 via CLI
跳到导航
跳到搜索
在线升级 6.0 to 6.5
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
离线升级(7.0 to 8.0U2)
1、下载补丁包
https://customerconnect.vmware.com/patch
VMware-ESXi-8.0U2-22380479-depot.zip
2、将下载的补丁包上传到esxi服务器的存储中,例如:
mkdir /vmfs/volumes/yibeiduo/esxiupdate_packages
scp VMware-ESXi-8.0U2-22380479-depot.zip root@192.168.1.123:/vmfs/volumes/yibeiduo/esxiupdate_packages
3、列出可以使用的所有image profile名称
esxcli software sources profile list -d /vmfs/volumes/yibeiduo/esxiupdate_packages/VMware-ESXi-8.0U2-22380479-depot.zip
输出如下:
Name Vendor Acceptance Level Creation Time Modification Time
---------------------------- ------------ ---------------- ------------------- -----------------
ESXi-8.0U2-22380479-no-tools VMware, Inc. PartnerSupported 2023-09-21T00:00:00 2023-09-04T22:07:43
ESXi-8.0U2-22380479-standard VMware, Inc. PartnerSupported 2023-09-21T00:00:00 2023-09-21T00:00:00
使用 ESXi-8.0U2-22380479-standard 进行升级 4、执行下面的名称测试是否可以升级(是否存在兼容性问题),如果没有出现错误,则可以进行正常升级
esxcli software profile update -p ESXi-8.0U2-22380479-standard -d /vmfs/volumes/yibeiduo/esxiupdate_packages/VMware-ESXi-8.0U2-22380479-
depot.zip --dry-run
5、执行下面的命令进行正式升级
esxcli software profile update -p ESXi-8.0U2-22380479-standard -d /vmfs/volumes/yibeiduo/esxiupdate_packages/VMware-ESXi-8.0U2-22380479-
depot.zip