VMware:如何在 vCenter Server Appliance 上停用 VMware 附掛程式

Summary: 撰寫本文的目的是記錄在 vCenter Server Appliance 中停用附掛程式的程序。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

VMware 已發佈一些公告 (VMSA-2021-0010),需要停用附掛程式或將其設為不相容,以防止其遭到濫用。對於不想將 vCenter Server Appliance 升級至版本 7.0 U2b、6.7 U3n 或 6.5 U3p 的客戶來說,將附掛程式設定為不相容是一種因應措施,以修正 VMSA-2021-0010 中的問題。

在 VMSA-2021-0010 中,受影響的 vSAN 執行狀況檢查附掛程式預設為所有 vCenter Server 部署啟用,無論是否使用 vSAN。

事實:
vCenter Server Appliance 6.5、6.7 和 7.0

解決方案:

  1. 請先檢查是否已部署或啟用 VMware vSAN H5 用戶端附掛程式的附掛程式,再停用或設為「不相容」。
檢查用戶端附掛程式
圖 1:檢查用戶端外掛程式。

 

  1. 開啟連接至 vCenter Server Appliance 的 PuTTY 工作階段。

PuTTY 專場
圖 2:PuTTY 專場

 

  1. 備份compatibility-matrix.xml。這個檔案位於以下位置:
/etc/vmware/vsphere-ui/compatibility-matrix.xml

若要備份檔案,請執行下列步驟:

cp -v /etc/vmware/vsphere-ui/compatibility-matrix.xml /etc/vmware/vsphere-ui/compatibility-matrix.xml.backup
  1. 使用類似 VI 的文字編輯器開啟檔案compatibility-matrix.xml:
vi /etc/vmware/vsphere-ui/compatibility-matrix.xml

未編輯的檔案如以下螢幕截圖所示:

未編輯的相容性矩陣檔案
圖 3:未編輯的相容性矩陣檔。
 
  1. 若要停用附掛程式並將其設為「不相容」,請新增下列行,如下方螢幕擷取畫面中所示: 儲存 檔案,然後 退出

將檔案設為不相容
圖 4:將檔案設為不相容

 

  1. 停止並重新啟動 vsphere-ui 使用下列命令進行維修:
# service-control --stop vsphere-ui

停止和啟動 vSphere 服務
圖 5:停止 vSphere 服務。
 

# service-control --start vsphere-ui

啟動 vSphere 服務
圖 6:啟動 vSphere 服務

 

  1. 再次登入 vSphere 用戶端工作階段,因為該工作階段已不再經過驗證,無法驗證 VMware vSAN H5 用戶端附掛程式是否設為不相容。

確認附掛程式不相容
圖 7:確認附掛程式不相容。

Affected Products

VxBlock and Vblock Systems, VMware ESXi 7.x

Products

C Series, HS Series, Modular Infrastructure, Tower Servers, XR Servers, PowerEdge R240, PowerEdge R250, PowerEdge R260, PowerEdge R340, PowerEdge R350, PowerEdge R360, PowerEdge R440, PowerEdge R450, PowerEdge R540, PowerEdge R550, PowerEdge R640 , PowerEdge R6415, PowerEdge R650, PowerEdge R650xs, PowerEdge R6515, PowerEdge R6525, PowerEdge R660, PowerEdge R660xs, PowerEdge R6615, PowerEdge R6625, PowerEdge R740, PowerEdge R740XD, PowerEdge R740XD2, PowerEdge R7415, PowerEdge R7425, PowerEdge R750, PowerEdge R750XA, PowerEdge R750xs, PowerEdge R7515, PowerEdge R7525, PowerEdge R760, PowerEdge R760XA, PowerEdge R760xd2, PowerEdge R760xs, PowerEdge R7615, PowerEdge R7625, PowerEdge R840, PowerEdge R860, PowerEdge R940, PowerEdge R940xa, PowerEdge R960 ...
Article Properties
Article Number: 000207002
Article Type: How To
Last Modified: 22 May 2025
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.