前提步骤
在升级ESXi之前,有一些重要的注意事项需要考虑,这些因素是(但不限于):
• 检查您对ESXi目标版本的备份和监视支持
• 确保ESXi主机的硬件在ESXi目标版本的HCL上
• 检查升级路径(您只能直接从6.5或6.7升级到7.0)
• 检查https://my.vmware.com以获取可用的许可证(或升级现有许可证(如果适用))
• 确保所有其他VMware解决方案都支持目标ESXi版本,包括VCSA
• 另外,在进行任何升级之前,请阅读发行说明
通过ESXCLI将ESXi升级到7.0的步骤
• 从my.vmware.com下载脱机捆绑包
• 将捆绑包上传到目标ESXi主机可访问的数据存储
• 在ESXi主机上启用SSH
• 检查脱机捆绑包中可用的配置文件
esxcli software sources profile list -d /vmfs/volumes/5d5551d9-4c4ae4b0-8470-7cd30a655a30/VMware-ESXi-7.0.0-15843807-depot.zip
• 空运行升级以查看将要删除并安装哪些VIB
esxcli software profile update -p ESXi-7.0.0-15843807-standard -d /vmfs/volumes/5d5551d9-4c4ae4b0-8470-7cd30a655a30/VMware-ESXi-7.0.0-15843807-depot.zip --dry-run
• 将主机置于维护模式
esxcli system maintenanceMode set --enable true
• 运行升级
esxcli software profile update -p ESXi-7.0.0-15843807-standard -d /vmfs/volumes/5d5551d9-4c4ae4b0-8470-7cd30a655a30/VMware-ESXi-7.0.0-15843807-depot.zip
• 重新启动主机
reboot
如果遇到报Could not find a trusted signer错误,请添加--no-sig-check参数
[InstallationError]
('VMW_bootbank_nfnic_4.0.0.44-1vmw.700.1.0.15843807', 'Could not find a trusted signer.')
vibs = VMW_bootbank_nfnic_4.0.0.44-1vmw.700.1.0.15843807
esxcli software profile update -p ESXi-7.0.0-15843807-standard -d /vmfs/volumes/5d5551d9-4c4ae4b0-8470-7cd30a655a30/VMware-ESXi-7.0.0-15843807-depot.zip --no-sig-check
• 检查版本信息
[root@localhost:~] esxcli system version get
Product: VMware ESXi
Version: 7.0.0
Build: Releasebuild-15843807
Update: 0
Patch: 0
[root@localhost:~] esxcli software vib list