Docs/VMware/ESXi修复漏洞.md
2022-10-18 16:59:37 +08:00

42 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

需要开启ssh远程
## 1、下载对应补丁
```
# ihi@ihi.im
https://customerconnect.vmware.com/patch
```
## 2、上传补丁到ESXi
## 3、迁移或关闭虚拟机
## 4、使ESXi处于维护状态
```
# Client界面处理
# 命令行处理
vim-cmd /hostsvc/maintenance_mode_enter
# 查看状态
vim-cmd /hostsvc/hostsummary | grep inMaintenanceMode
```
## 5、更新或安装补丁
```
# 推荐更新补丁
# 安装补丁会使用正在安装的修补程序的内容覆盖系统中现有的软件包,可能会降级系统的软件包
# 更新补丁会应用修补程序中所有更新的内容
## 更新补丁(本地)
esxcli software vib update -d "/vmfs/volumes/xxxx/xxxx/xxxx.zip"
## 更新补丁http
esxcli software vib update -v viburl
## 安装补丁(本地)
esxcli software vib install -d "/vmfs/volumes/xxxx/xxxx/xxxx.zip"
## 安装补丁http
esxcli software vib install -v viburl
```
## 6、重新引导
```
reboot
```
## 7、退出维护模式
```
# Client界面处理
# 命令行处理
vim-cmd hostsvc/maintenance_mode_exit
```
## 8、打开虚拟机电源