How to run open-vm-tools on a Local RADIUS virtual machine

In this topic, you will learn how to install and run VMware’s open-vm-tools on a VMware virtual machine (VM) running the Portnox™ Local RADIUS server.

VMware’s open-vm-tools provides services and modules that help VMware manage virtual machines and allow seamless interaction with guest operating systems. It includes kernel modules that improve performance for Linux or other VMware-supported UNIX-like guest OSes. It enables integration with VMware vSphere/ESXi for:

  • Graceful shutdown of the guest OS without console access

  • Guest heartbeat monitoring

  • Displaying the VM’s DNS name and IP address in vSphere

Note:
These features are not mandatory for the Local RADIUS server, but VMware administrators find them useful for managing virtual infrastructure. The steps below only affect the startup of vmtoolsd and do not interfere with Local RADIUS services or Portnox processes.
Note:
Other hypervisors use their own integration packages. For example, Hyper-V uses Hyper-V Integration Services (built into modern Linux kernels), and Oracle VirtualBox uses VirtualBox Guest Additions.
Note:
For better control, we recommend running the Local RADIUS server as a Docker container, which provides full host-level control and integrates more easily with monitoring and operational tools.
  1. Create a script file inside the VM:
    cat >vmtools.sh
  2. Paste the following content:
    #!/bin/sh
                            
    if [ ! -f /mnt/sda1/tce/optional/glib2.tz ] ; then
      tce-load -wi glib2
    fi
    if [ ! -f /mnt/sda1/tce/optional/open-vm-tools.tz ] ; then
      tce-load -wi open-vm-tools
    fi

    Then, press Ctrl+D to send an EOF (end-of-file) signal.

  3. Make the script executable and run it:
    chmod +x vmtools.sh
    ./vmtools.sh
  4. Start vmtoolsd manually (one-time):
    sudo /usr/local/bin/vmtoolsd -b /var/run/vmtoolsd.pid
  5. Verify:
    which vmtoolsd
    vmware-checkvm
    ps aux | grep vmtoolsd | grep -v grep
  6. Persist across reboots:
    echo "/usr/local/bin/vmtoolsd -b /var/run/vmtoolsd.pid &" | sudo tee -a /opt/bootlocal.sh
    filetool.sh -b
    Note:
    This configuration will persist for in-place updates. Changes to /opt/bootlocal.sh are saved with filetool.sh -b. However, if you deploy a new OVA image, you must repeat the above steps.