【VMware ESXi】ESXi6.5补丁报错
这篇文章记录 ESXi 6.5 打补丁时常见的两类报错,以及对应的处理方法。
使用建议
补丁报错时,先不要急着重复执行安装命令,最好先判断到底是空间不足、签名校验还是其他依赖问题。把报错原因分清楚,处理起来会快很多。
问题一:空间不足
安装补丁时提示如下错误:
[InstallationError]
[Errno 28] No space left on device
vibs = VMware_locker_tools-light_11.0.1.14773994-15160134
Please refer to the log file for more details.处理方法
进入 ESXi 管理界面,依次打开:
- 主机
- 管理
- 系统
- 交换
调整 ESXi SWAP 配置后重启主机,再重新执行补丁安装即可。
问题二:签名校验失败
安装补丁时如果出现如下错误:
[InstallationError]
('VMW_bootbank_net-e1000_8.0.3.1-5vmw.650.3.153.17459147', 'Could not find a trusted signer.')
vibs = VMW_bootbank_net-e1000_8.0.3.1-5vmw.650.3.153.17459147
Please refer to the log file for more details.说明当前安装包中的某个 VIB 无法通过签名校验。
处理方法
可以在更新命令后追加 --no-sig-check 参数,跳过签名验证。例如:
esxcli software profile update -d /vmfs/volumes/datastore1/ESXi650-202202001.zip -p ESXi-6.5.0-20220204001-standard --no-sig-check操作步骤
先查看安装包内可用的 profile:
esxcli software sources profile list -d /vmfs/volumes/datastore1/ESXi650-202202001.zip输出示例如下:
Name Vendor Acceptance Level
------------------------------- ------------ ----------------
ESXi-6.5.0-20220204001-no-tools VMware, Inc. PartnerSupported
ESXi-6.5.0-20220204001-standard VMware, Inc. PartnerSupported确认需要使用的 profile 后,再执行更新命令:
esxcli software profile update -d /vmfs/volumes/datastore1/ESXi650-202202001.zip -p ESXi-6.5.0-20220204001-standard --no-sig-check执行结果
如果更新成功,通常会看到类似提示:
Update Result
Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
Reboot Required: true此时按提示重启主机即可。
补充说明
--no-sig-check只适合在明确知道来源可信的情况下使用。- 如果是生产环境,尽量优先使用官方可信签名的补丁包。