前文概述:使用 vSphere Lifecycle Manager升级 ESXi 6.5 到 7.0.3
下载好后,使用SFTP 工具将 Offline Bundle的 ZIP压缩包导入ESXi中的/tmp目录下。离线包的名称类似于:VMware-ESXi-7.0U3f-20036589-depot.zip(此处一定要使用正规SFTP工具导入,最好导入到共享存储中,例如VMFS存储。)
SSH到ESXi中,输入命令:
- ls /tmp
-
- vmware -v
- vmware -vl
-
- esxcli software sources profile list -d /vmfs/volumes/datastore1/VMware-ESXi-7.0U3f-20036589-depot.zip
-
如果在执行该命令时出现下面的报错
- [root@esxi6-5-u-2:~] esxcli software sources profile list -d /tmp/VMware-ESXi-7.0U3f-20036589-depot.zip
- [MetadataDownloadError]
- Could not download from depot at zip:/tmp/VMware-ESXi-7.0U3f-20036589-depot.zip?index.xml, skipping (('zip:/tmp/VMware-ESXi-7.0U3f-200pot.zip?index.xml', '', 'Error extracting index.xml from /tmp/VMware-ESXi-7.0U3f-20036589-depot.zip: File is not a zip file'))
- url = zip:/tmp/VMware-ESXi-7.0U3f-20036589-depot.zip?index.xml
- Please refer to the log file for more details.
-
导致报错的原因可能是以下2种:
- esxcli software profile update --depot=/vmfs/volumes/datastore1/VMware-ESXi-7.0U3f-20036589-depot.zip -p ESXi-7.0U3f-20036589-standard
-
其中ESXi-7.0U3f-20036589-standard是上一步骤红框中获取的输出。
- reboot
-
- vmware -v
-
下载好后,使用SFTP 工具将 Offline Bundle的 ZIP压缩包导入ESXi中的/tmp目录下。离线包的名称类似于:VMware-ESXi-8.0-20513097-depot.zip(此处一定要使用正规SFTP工具导入,最好导入到共享存储中,例如VMFS存储。)
SSH到ESXi中,输入命令:
- ls /vmfs/volumes/freenas-iscsi/upgrade/
-
- vmware -vl
-
- esxcli software sources profile list -d /vmfs/volumes/freenas-iscsi/upgrade/VMware-ESXi-8.0-20513097-depot.zip
-
- esxcli software profile update --depot=/vmfs/volumes/freenas-iscsi/upgrade/VMware-ESXi-8.0-20513097-depot.zip -p ESXi-8.0.0-20513097-standard
-
其中ESXi-8.0.0-20513097-standard是上一步骤红框中获取的输出。
- reboot
-
- vmware -vl
-