VxRail:如何更新 ESXi 主机中的 VMware Tools 版本

Summary: 在本文中,我们将介绍如何使用来自 Broadcom 的离线数据包更新 ESXi 主机中的 VMware Tools 版本。

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

  1. 从 Broadcom 支持页面下载“VMware Tools Offline VIB Bundle”。转到“My Downloads”部分,然后按“VMware Tools”进行搜索。选择所需的版本并下载离线 VIB 捆绑包:
    VMware Tools 中的“我的下载”
    选择所需的版本

  2. 在应用更新之前,您可以检查 ESXi 主机中的当前 VMware Tools 版本。通过 SSH 访问 ESXi 主机并运行以下命令:

    esxcli software component get | grep VMware-VM-Tools -B 1 -A 14

     

    示例:

    [root@host01:~] esxcli software component get | grep VMware-VM-Tools -B 1 -A 14
    
    VMware-VM-Tools_12.3.5.22544099-23794019
       Name: VMware-VM-Tools
       Display Name: ESXi VM Tools
       Version: 12.3.5.22544099-23794019
       Display Version: 12.3.5
       VIBs: VMware_locker_tools-light_12.3.5.22544099-23794019
       Vendor: VMware
       Summary: ESXi Tools Component
       Severity: general
       Urgency: critical
       Category: security
       Release Type: patch
       Kburl: https://docs.vmware.com/en/VMware-vSphere/7.0/rn/vsphere-esxi-70u3q-release-notes/index.html#Resolved%20Issues-VMware-VM-Tools_12.3.5.22544099-23794019
       Description: This component contains the tools VIB.
       Contact: VMware
       ReleaseDate: 05-21-2024

    在这种情况下,ESXi 主机中的当前 VMware Tools 版本为“12.3.5.22544099-23794019”。

  3. 在 ESXi 主机中,创建一个临时目录以放置“VMware Tools Offline VIB Bundle”。在这种情况下,“VMware Tools Offline VIB Bundle”版本 12.4.5 的大小约为 370 MB。您必须将此文件放在 ESXi 主机中受支持的目录中。在此示例中,我们在本地数据存储区内创建一个临时目录:

    [root@host01:~] cd /vmfs/volumes/LOCAL-DATASTORE
    
    [root@host01:/vmfs/volumes/LOCAL-DATASTORE] mkdir vmware-tools-temp

    创建临时目录后,将文件“VMware Tools Offline VIB Bundle”复制到其中。您可以使用 WinSCP、Powershell 或您的首选应用程序将文件拷贝到 ESXi 主机。

  4. 要更新 VMware Tools 版本,无需将 ESXi 主机置于维护模式或重新启动它。您可以使用以下命令进行确认:

    esxcli software sources vib get --depot=file:/vmfs/volumes/LOCAL-DATASTORE/vmware-tools-temp/VMware-Tools-12.4.5-core-offline-depot-ESXi-all-23787635.zip

    命令输出示例:

    VMware_locker_tools-light_6.5.0-12.4.5.23787635
       Name: tools-light
       Version: 6.5.0-12.4.5.23787635
       Type: locker
       Vendor: VMware
       Acceptance Level: VMwareCertified
       Summary: VMware Tools VIB for Windows and Linux guests for ESXi 6.5.0
       Description: This package contains cdrom and floppy images used to install the VMware Tools inside virtual machines.
       ReferenceURLs:
       Creation Date: 2024-05-22
       Depends: esx-version = 6.5.0
       Conflicts:
       Replaces:
       Provides:
       Maintenance Mode Required: False
       Hardware Platforms Required:
       Live Install Allowed: True
       Live Remove Allowed: True
       Stateless Ready: True
       Overlay: False
       Tags:
       Payloads: tools
    
    VMware_locker_tools-light_12.4.5.23787635-23919197
       Name: tools-light
       Version: 12.4.5.23787635-23919197
       Type: locker
       Vendor: VMware
       Acceptance Level: VMwareCertified
       Summary: VMware Tools VIB for Windows and Linux guests (generated by vmtoolspkg build 23919197)
       Description: This package contains cdrom and floppy images used to install the VMware Tools inside virtual machines.
       ReferenceURLs:
       Creation Date: 2024-05-22
       Depends: esx-version >= 6.6.0
       Conflicts:
       Replaces:
       Provides:
       Maintenance Mode Required: False
       Hardware Platforms Required:
       Live Install Allowed: True
       Live Remove Allowed: True
       Stateless Ready: True
       Overlay: False
       Tags:
       Payloads: tools
  5. 要应用更新,您可以运行以下命令:

    esxcli software vib install --depot=file:/vmfs/volumes/LOCAL-DATASTORE/vmware-tools-temp/VMware-Tools-12.4.5-core-offline-depot-ESXi-all-23787635.zip

    命令输出示例:

    [root@vxrail01:/vmfs/volumes/LOCAL-DATASTORE/vmware-tools-temp] esxcli software vib install --depot=file:/vmfs/volumes/LOCAL-DATASTORE/vmware-tools-temp/VMware-Tools-12.4.5-core-offline-depot-ESXi-all-23787635.zip
    Installation Result
       Message: Operation finished successfully.
       Reboot Required: false
       VIBs Installed: VMware_locker_tools-light_12.4.5.23787635-23919197
       VIBs Removed: VMware_locker_tools-light_12.3.5.22544099-23794019
       VIBs Skipped:
  6. 之后,您可以检查 VMware Tools 版本:

    [root@vxrail01:/vmfs/volumes/LOCAL-DATASTORE/vmware-tools-temp] esxcli software component get | grep VMware-VM-Tools -B 1 -A 14TOOLS-23919197
       Name: VMware-VM-Tools
       Display Name: VMware Tools Async Release
       Version: 12.4.5.23787635-23919197
       Display Version: 12.4.5
       VIBs: VMware_locker_tools-light_12.4.5.23787635-23919197
       Vendor: VMware
       Summary: VMware Tools 12.4.5 Async Release
       Severity: general
       Urgency: important
       Category: bugfix
       Release Type: patch
       Kburl: https://docs.vmware.com/en/VMware-Tools/12.4/rn/vmware-tools-1245-release-notes/index.html
       Description: VMware Tools 12.4.5 Async Release
       Contact: http://www.vmware.com/support/contacts/
       ReleaseDate: 06-27-2024

    如您所见,新的 VMware Tools 版本为“12.4.5.23787635-23919197”。

  7. 现在,您可以访问 vSphere Client,选择更新了 VMware Tools 的 ESXi 主机,并在其上运行的虚拟机上更新 VMware Tools。

 

提醒:建议在群集中的所有 ESXi 主机上进行更新!

 

Affected Products

VxRail
Article Properties
Article Number: 000227059
Article Type: How To
Last Modified: 23 Jul 2024
Version:  1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.