大規模散佈 VMware Tools 組態

您可以從 GuestStore 存放庫跨多個虛擬機器散佈 VMware Tools 組態檔。
GlobalConf
功能會使用 GuestStore 存放庫中可用的組態自動更新 VMware Tools 組態。
GlobalConf
功能依預設為停用。啟用時,可讓 vSphere 管理員在 vSphere 環境中跨多個虛擬機器散佈全域 VMware Tools 組態。
GlobalConf
功能依賴存在於 GuestStore 存放庫中的 VMware Tools 組態。依預設,可以從 GuestStore 存放庫
"/vmware/configurations/vmtools/windows/tools.conf"
(對於 Windows GOS) 和
"/vmware/configurations/vmtools/linux/tools.conf"
(對於 Linux GOS) 中擷取 VMware Tools 組態,除非此行為被客體內的本機 VMware Tools 組態中的設定所覆寫。使用此功能之前,所需的 VMware Tools 組態應如資源
GlobalConf
功能所預期新增至 GuestStore 存放庫。
啟用
GlobalConf
功能時,VMware Tools 系統服務會定期檢查 GuestStore 存放庫中是否具有
tools.conf
檔案。
  • 如果存在
    tools.conf
    檔案,則會在執行階段於本機下載並套用。在此程序期間,只會套用客體內本機
    tools.conf
    檔案中未指定的設定。
  • 如果
    tools.conf
    檔案在 GuestStore 存放庫中無法使用,則先前下載的任何組態檔都將從客體的本機檔案系統中刪除。
VMware Tools 中的
GlobalConf
模組依預設每 60 分鐘會檢查一次 GuestStore 存放庫。在虛擬機器內,客體管理員可以手動編輯
tools.conf
檔案,以設定與
GlobalConf
模組相關的各種設定。
GlobalConf
功能具有下列組態設定:
[globalconf]
  • enabled=true
    :啟用模組。
  • poll-interval=3600
    :間隔值應在數秒內指定。預設值:3600 秒。最小值:1800 秒。
  • resource=/path/to/tools/conf/in/gueststore
    :對於 Windows GOS,預設值為
    "/vmware/configurations/vmtools/windows/tools.conf"
    ,對於 Linux GOS,預設值為
    "/vmware/configurations/vmtools/linux/tools.conf"
  • 如果上述任何設定在本機
    tools.conf
    檔案中進行更新,則 VMware Tools 系統服務 (vmsvc) 必須重新啟動。
  • 從 VMware Tools 11.3.0 版本開始,修改
    tools.conf
    檔案中的
    GlobalConf
    相關設定時,VMware Tools 系統服務 (vmsvc) 不需要重新啟動。
您可以使用 VMware Tools Toolbox 命令列公用程式來執行下列作業:
  • 查詢
    GlobalConf
    模組的狀態。
    • Windows
      VMwareToolboxCmd.exe globalconf status
    • Linux
      vmware-toolbox-cmd globalconf status
  • 啟用
    GlobalConf
    模組。
    • Windows
      VMwareToolboxCmd.exe globalconf enable
    • Linux
      vmware-toolbox-cmd globalconf enable
  • 停用
    GlobalConf
    模組。
    • Windows
      VMwareToolboxCmd.exe globalconf disable
    • Linux
      vmware-toolbox-cmd globalconf disable
  • 從 GuestStore 存放庫觸發 VMware Tools 組態的立即更新,而不等待輪詢間隔。
    • Windows
      VMwareToolboxCmd.exe globalconf refresh
    • Linux
      vmware-toolbox-cmd globalconf refresh
您可以使用
globalconf enable
globalconf disable
命令,而非編輯
tools.conf
來啟用或停用
GlobalConf
功能。