LLI Wiki — My Digital Knowledge Base

VMware Tools: installation, service and uninstallation

Updating from the ISO, service management, logging, silent installation and a PowerCLI query for VMware Tools.

This note gathers the common operations on VMware Tools: updating from the ISO, managing the service, checking and uninstalling, plus a PowerCLI query.

Updating on Linux from the ISO

Once the VMware Tools ISO is attached to the VM, mount it, copy the archive, extract it and run the installer. Most of the time the default values are fine.

mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
cp /mnt/cdrom/VMwareTools*.tar.gz /tmp/
cd /tmp/
tar xvfz VMwareTools*.tar.gz
cd /tmp/vmware-tools-distrib
./vmware-install.pl

Before running VMware Tools for the first time, configure it:

/usr/bin/vmware-config-tools.pl

Service

open-vm-tools package (systemd):

yum install open-vm-tools
systemctl status vmtoolsd.service

Check package availability and the installed version:

yum info open-vm-tools
yum repolist
/usr/bin/vmware-toolbox-cmd -v

Managing the service with the init script:

service vmware-tools status
sudo /etc/init.d/vmware-tools start
sudo /etc/init.d/vmware-tools stop
sudo /etc/init.d/vmware-tools restart
sudo /etc/init.d/vmware-tools status

Managing the service with the services script:

/etc/vmware-tools/services.sh start
/etc/vmware-tools/services.sh stop
/etc/vmware-tools/services.sh restart
/etc/vmware-tools/services.sh status

Logging

Example configuration in /etc/vmware-tools/tools.conf:

[logging]
log = true
vmtoolsd.level = debug
vmtoolsd.handler = file
vmtoolsd.data = /var/log/vmtoolsd.log

Uninstalling

/usr/bin/vmware-uninstall-tools.pl

Silent installation on Windows

<path>\setup64.exe /s /v "/qn reboot=r"

Checking reserved memory (PowerCLI)

List of powered-on VMs whose memory reservation is locked to the maximum:

Get-VM -Name * |? {($_.PowerState -like "PoweredOn") -and ($_.ExtensionData.Config.MemoryReservationLockedToMax -eq $True) } | Sort Name | ft Name,PowerState,MemoryGB,@{n="ReservationLockedToMax "; e={$_.ExtensionData.Config.MemoryReservationLockedToMax}}

Notes

Mastodon LLIMastodon SocialFosstodon