# vCenter Patch

##### 官方連結

- 教學：[VMware vCenter Server 6.7 Update 3n Release Notes](https://docs.vmware.com/en/VMware-vSphere/6.7/rn/vsphere-vcenter-server-67u3n-release-notes.html)
- 下載： [Product Patches - VMware Customer Connect](https://customerconnect.vmware.com/patch)

##### 步驟程序

1. 下載 Patch file: `VMware-vCenter-Server-Appliance-6.7.0.48000-18010531-patch-FP.iso`
2. 上傳 \*.iso 到 vCenter VM 可以存取的任一個 datastore 裡 (*Recommend: 建立一個 Patches 目錄*)
3. 確認 vCenter VM 在哪一個 ESXi Host
4. 登入 ESXi Web Admin (*NOTE: 這裡不是 vCenter Web*)
5. 將 vCenter VM 關閉
6. 對 vCenter VM 進行一次快照備份
7. 重新開啟 vCenter VM
8. 設定 vCenter VM 掛載這次要 patch 的 iso 檔
9. 遠端工作電腦以 SSH 登入 vCenter VM
10. 開始執行系統 Patch 指令
11. 重啟 vCenter VM 後完成

##### Patch Commands

```shell
# To stage the ISO:
software-packages stage --iso

# To see the staged content:
software-packages list --staged

#To install the staged rpms:
software-packages install --staged
```