Uploaded image for project: 'Solution Center'
  1. Solution Center
  2. SOL-424

Install VMware Tools via XML-RPC

    XMLWordPrintable

    Details

    • Type: How To
    • Status: Published
    • Affects Version/s: EXASOL 6.0.0, Exasol 6.1.0, Exasol 6.2.0
    • Fix Version/s: None
    • Component/s: EXAoperation
    • Labels:
      None
    • Solution:
      Hide

      For old Centos version (e.g. for Centos 6) use Plugin.Administration.vmware-tools and for Centos 7 use open-vm-tools.x86_64.

      • NOTE: If using Exasol 6.1 or higher, you can skip step 1, as the package is already installed by default.

      1. Upload "Plugin.Administration.vmware-tools.pkg" to EXAoperation

       

      • Login to EXAoperation (User privilege Administrator)
      • Upload pkg Configuration>Software>Versions>Browse>Submit

      2. Connect to EXAoperation via XML-RPC (this example uses Python)

      >>> import xmlrpclib, pprint
      >>> s = xmlrpclib.ServerProxy("http://user:password@license-server/cluster1")
      

      3. Show plugin functions

      Centos 6

      >>> pprint.pprint(s.showPluginFunctions('Administration.vmware-tools'))
      {'GET_PROXY': 'Get proxy used for package repository.',
       'INSTALL': 'Install and start VMWare tools. Requires repository name, e.g. http://packages.vmware.com/tools/esx/latest/repos/vmware-tools-repo-RHEL6-9.0.5-1.el6.x86_64.rpm',
       'SET_PROXY': 'Set proxy to use for package repository.',
       'START': 'Start VMWare tools.',
       'STOP': 'Stop VMWare tools.',
       'UNINSTALL': 'Uninstall VMWare tools.',
       'UPDATE': 'Update VMWare tools.'}
      

      Centos 7 (open-vm-tools.x86_64)

      >>> pprint.pprint(s.showPluginFunctions('Administration.Open-vm-tools-10.2.5-1.0.1'))
      
      {'INSTALL': 'Install plugin open-vm-tools.',
       'ON_BOOT': 'Enable open-vm-tools on bootup.',
       'RESTART': 'Restart services that open-vm-tools needs.',
       'START': 'Start services that open-vm-tools needs.',
       'STATUS': 'Show status of plugin open-vm-tools.',
       'STOP': 'Stop services that open-vm-tools needs.',
       'UNINSTALL': 'Uninstall plugin open-vm-tools.'}
      

      4. Set proxy (if any)

      >>> s.callPlugin("Administration.vmware-tools", "n10", "SET_PROXY", "http://...")
      [0, '']
      

      5. Install VMware tools (check for the latest version ) and check for return code

      Centos 6

      >>> ret, sts = s.callPlugin("Administration.vmware-tools", "n10", "INSTALL", "http://packages.vmware.com/tools/esx/latest/repos/vmware-tools-repo-RHEL6-9.4.10-1.el6.x86_64.rpm")
      >>> ret
      0
      

      Centos 7

      >>> ret, sts = s.callPlugin("Administration.Open-vm-tools-10.2.5-1.0.1", "n10", "INSTALL")
      >>> ret
      0
      

      6. Start VMware tools and check status.

      Centos 6

      >>> s.callPlugin("Administration.vmware-tools", "n10", "START")
      [0, "'   Starting VMware Tools guest operating system daemon:\\x1b[71G done\\n'"]
      >>> s.callPlugin("Administration.vmware-tools", "n10", "STATUS")
      [0, "'vmtoolsd is running\\n'"]
      

      Centos 7 ( open-vm-tools.x86_64)

      >>> s.callPlugin("Administration.Open-vm-tools-10.2.5-1.0.1", "n10", "START")
      [0, 'Done.']
      >>> s.callPlugin("Administration.Open-vm-tools-10.2.5-1.0.1", "n10", "STATUS")
      

      7. Repeat steps 4-6 have for each node.

      Show
      For old Centos version (e.g. for Centos 6) use Plugin.Administration.vmware-tools and for Centos 7 use open-vm-tools.x86_64. NOTE: If using Exasol 6.1 or higher, you can skip step 1, as the package is already installed by default. 1. Upload "Plugin.Administration.vmware-tools.pkg" to EXAoperation   Login to EXAoperation (User privilege Administrator) Upload pkg Configuration>Software>Versions>Browse>Submit 2. Connect to EXAoperation via XML-RPC (this example uses Python) >>> import xmlrpclib, pprint >>> s = xmlrpclib.ServerProxy("http://user:password@license-server/cluster1") 3. Show plugin functions Centos 6 >>> pprint.pprint(s.showPluginFunctions('Administration.vmware-tools')) {'GET_PROXY': 'Get proxy used for package repository.', 'INSTALL': 'Install and start VMWare tools. Requires repository name, e.g. http://packages.vmware.com/tools/esx/latest/repos/vmware-tools-repo-RHEL6-9.0.5-1.el6.x86_64.rpm', 'SET_PROXY': 'Set proxy to use for package repository.', 'START': 'Start VMWare tools.', 'STOP': 'Stop VMWare tools.', 'UNINSTALL': 'Uninstall VMWare tools.', 'UPDATE': 'Update VMWare tools.'} Centos 7 (open-vm-tools.x86_64) >>> pprint.pprint(s.showPluginFunctions('Administration.Open-vm-tools-10.2.5-1.0.1')) {'INSTALL': 'Install plugin open-vm-tools.', 'ON_BOOT': 'Enable open-vm-tools on bootup.', 'RESTART': 'Restart services that open-vm-tools needs.', 'START': 'Start services that open-vm-tools needs.', 'STATUS': 'Show status of plugin open-vm-tools.', 'STOP': 'Stop services that open-vm-tools needs.', 'UNINSTALL': 'Uninstall plugin open-vm-tools.'} 4. Set proxy (if any) >>> s.callPlugin("Administration.vmware-tools", "n10", "SET_PROXY", "http://...") [0, ''] 5. Install VMware tools (check for the latest version ) and check for return code Centos 6 >>> ret, sts = s.callPlugin("Administration.vmware-tools", "n10", "INSTALL", "http://packages.vmware.com/tools/esx/latest/repos/vmware-tools-repo-RHEL6-9.4.10-1.el6.x86_64.rpm") >>> ret 0 Centos 7 >>> ret, sts = s.callPlugin("Administration.Open-vm-tools-10.2.5-1.0.1", "n10", "INSTALL") >>> ret 0 6. Start VMware tools and check status. Centos 6 >>> s.callPlugin("Administration.vmware-tools", "n10", "START") [0, "' Starting VMware Tools guest operating system daemon:\\x1b[71G done\\n'"] >>> s.callPlugin("Administration.vmware-tools", "n10", "STATUS") [0, "'vmtoolsd is running\\n'"] Centos 7 ( open-vm-tools.x86_64) >>> s.callPlugin("Administration.Open-vm-tools-10.2.5-1.0.1", "n10", "START") [0, 'Done.'] >>> s.callPlugin("Administration.Open-vm-tools-10.2.5-1.0.1", "n10", "STATUS") 7. Repeat steps 4-6 have for each node.
    • Category 1:
      Cluster Administration - Monitoring & Logging
    • Category 2:
      Cluster Administration - Cluster Management

      Attachments

        Issue Links

          Activity

            People

            • Assignee:
              CaptainEXA Captain EXASOL
              Reporter:
              CaptainEXA Captain EXASOL
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: