]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Enable appinfo plugin for hosted products.
authorOliver Kurth <okurth@vmware.com>
Fri, 22 Nov 2019 22:52:34 +0000 (14:52 -0800)
committerOliver Kurth <okurth@vmware.com>
Fri, 22 Nov 2019 22:52:34 +0000 (14:52 -0800)
Currently, with TOT code, appInfo plugin is loaded only when
the VM is managed by VMware ESX server.  In this changeset, that
limitation is removed and the plugin will be loaded for hosted
products also.

open-vm-tools/services/plugins/appInfo/appInfo.c

index d3209847514fa69ea7c0414b1e1cfc5c6bd33a2e..a7e17a86b5f8841da070dd0d0c5fe6084a1f641f 100644 (file)
@@ -499,9 +499,6 @@ ToolsOnLoad(ToolsAppCtx *ctx)
       NULL
    };
 
-   uint32 vmxVersion = 0;
-   uint32 vmxType = VMX_TYPE_UNSET;
-
    /*
     * Return NULL to disable the plugin if not running in a VMware VM.
     */
@@ -510,15 +507,6 @@ ToolsOnLoad(ToolsAppCtx *ctx)
       return NULL;
    }
 
-   /*
-    * Return NULL to disable the plugin if VM is not running on ESX host.
-    */
-   if (!VmCheck_GetVersion(&vmxVersion, &vmxType) ||
-       vmxType != VMX_TYPE_SCALABLE_SERVER) {
-      g_info("VM is not running on ESX host.\n");
-      return NULL;
-   }
-
    /*
     * Return NULL to disable the plugin if not running in vmsvc daemon.
     */