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,受影响的 vSAN 运行状况检查插件在所有 vCenter Server 部署中默认处于启用状态。

事实:
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 Client 会话,因为它不再经过身份验证,以验证 VMware vSAN H5 Client 插件是否设置为不兼容。

确认插件程序不兼容
图 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.