Note: Starting with VMware Tools 10.0.0, log messages at the level message and above are logged by default in "%windir%\temp\vmware-<service>.log" (Windows) and "/var/log/vmware-<service>.log" (Linux) where <service> is one of vmsvc, vmusr or toolboxcmd.
For ESXi 5.x hosts and VMware Workstation 10.x and later, VMware Player 5.x and later, and VMware Fusion 5.x and later
To enable debug logging for guests on ESXi 5.x hosts and VMware Workstation 10.x and later, VMware Player 5.x and later, and VMware Fusion 5.x and later:
tools.conf
file, or create the file if it does not exist. To locate the tools.conf
file for the guest, see the Configuration file location section.Windows/
Temp/vmtoolsd.${USER}.logWindows/
Temp/vmsvc.logWindows/
Temp/vmusr.${USER}.log
Windows/
Temp/vmtoolboxcmd.log
For Linux Guests:
[logging]
log = true
vmtoolsd.level = debug
vmtoolsd.handler = file
vmtoolsd.data = /tmp/vmtoolsd.${USER}.log
vmsvc.level = debug
vmsvc.handler = file
vmsvc.data = /tmp/vmsvc.log
vmusr.level = debug
vmusr.handler = file
vmusr.data = /tmp/vmusr.${USER}.log
toolboxcmd.level = debug
toolboxcmd.handler = file
toolboxcmd.data = /tmp/vmtoolboxcmd.log
In these examples, debug level logging is enabled on the respective guest operating system for the vmtoolsd and toolboxcmd processes, and log messages are output to respective files specified in the data key. For Windows, replace c:/tmp in the paths with a directory of your choice.
Notes:
/
) on Linux guests.
To disable debug logging for guests on ESXi 5.x hosts:
tools.conf
file. To locate the tools.conf
file for the guest, see the Configuration file location section.log = true
vmtoolsd.data = c:/tmp/vmtoolsd.log
log = true
to log = false
.
VMware Tools upgrader and installer logs:
For diagnosing an issue with VMware Tools install or upgrade, the installer and/or upgrader logs are required. VMware Tools installer and upgrader logs are enabled by default and do not require any user configuration.
In a Windows guest, VMware Tools installer and upgrader logs are stored in these files:
* C:\Windows
\Temp\vminst.log
* C:\Windows\Temp
\vmmsi.log
* C:\windows\Temp\vminst.log
NOTE: The filenames above may include GUIDs.
In a Linux guest, starting with VMware Tools 10.0.0, installer logs are stored in /var/log/vmware-install.log and upgrader logs are stored in /var/log/vmware-tools-upgrader.log.
VGAuth Service logs:
Debugging issues related to SAML token based authentication requires VGAuthService logs. Logging for the VGAuthService is controlled by its preference file that lives under "%ProgramData%\VMware\VMware VGAuth\vgauth.conf" (Windows) and "/etc/vmware-tools/vgauth.conf" (Linux).
The logging level is in the [service] section. The default value is "normal". Changing it to "verbose" will provide the most detailed debugging information.
[service]
loglevel = verbose
The default log location is "%ProgramData%\VMWare\VMWare VGAuth\logfile*" (Windows) and "/var/log/vmware-vgauthsvc*" (Linux).
Warning: Make sure to restore the VGAuthService log level to normal after collecting debugging logs because verbose logs may contain SAML tokens for the user accounts being used to perform guest operations.
log = "TRUE"
to log = "FALSE"
.The VMware Tools configuration file is named tools.conf
, and the default location is based on the guest operating system type and version:
Guest operating system | Path to configuration file |
Windows XP and Windows Server 2000/2003 | C:\Documents and Settings\All Users\Application Data\VMware\VMware Tools\tools.conf |
Windows Vista, Windows 7, Windows 8, Windows Server 2008 and Windows Server 2012 | C:\ProgramData\VMware\VMware Tools\tools.conf |
Linux, Solaris, and FreeBSD | /etc/vmware-tools/tools.conf |
Mac OS X | /Library/Application Support/VMware Tools/tools.conf |
Notes:
Windows: The VMware Tools process is a Service which appears as vmtoolsd.exe
in Windows guests, and can be managed from the Services application in Windows.
Linux: The VMware Tools process name is vmtoolsd
, and it is run from /usr/sbin/vmtoolsd
in Linux guests.
VMware Tools creates a number of processes, and starting with VMware Tools for ESXi/ESX 4.1, each process can have logging enabled or disabled individually. On older versions of VMware Tools, the processes always log to the same file.
VMware Tools process | Description | Available in VMware Tools version |
vmsvc |
Primary VMware Tools service | All |
vmvss |
Volume Shadow Copy service | All |
vmresset |
Resolution Set Tool | All |
vmtray |
The Tray icon in Windows | All |
vmusr |
The VMware Tools user service | ESXi 5.0, Workstation 8, Fusion 4 and newer |
toolbox |
Toolbox UI | ESXi 5.0, Workstation 8, Fusion 4 and newer |
toolboxcmd |
Toolbox command line | ESXi 5.0, Workstation 8, Fusion 4 and newer |
Notes:
vmsvc
(as well as vmusr
in ESXi 5.x) captures most problems.The format of the configuration file has changed over time with different versions of VMware Tools. Please read the appropriate section for the version of VMware Tools you are working with.
There are several parameters which must be configured for each service to enable logging.
Parameter | Description | Valid values | Notes |
level |
Minimum log level to log. Also used to declare specific log domain configurations. | In order of increasing verbosity:
|
Required when configuring a logging domain. |
handler |
Type of handler to use when logging. |
|
Defaults to std on Linux, and outputdebugstring on Windows. |
data |
Path to the log file, required when using a handler of type file or file+ . |
See the Note on path names below. | Only valid for file handlers. |
maxOldLogFiles |
Maximum number of rotated log files to retain. | Value must be greater than 0. Default value is 10. | Only valid for file handlers. |
maxLogSize |
Maximum size of each log file. | A value of 0 disables log rotation. Default value is 5 MB. | Only valid for file handlers. |
facility |
Controls where to connect when using the syslog handler under Linux. |
|
Only valid for syslog handlers. |
Note on path names: For path names in the configuration file, follow these guidelines for file handlers:
/
) in the path name on Linux guests.Important notes:
data
parameter in each section, which is the path to the log file. This is required when using a handler of type file
or file+
.vmx
handler allows VMware Tools to log to the vmware.log
for the virtual machine, which can be convenient when the virtual machine is slow or having login difficulties. Be cautious however, as this can have an impact on the performance of the host, and should not be used except for troubleshooting. If you enable this type of logging for a large number of virtual machines, be sure to disable it after troubleshooting is completed.data
field. The options are:${USER}
${PID}
${IDX}
Example: If you want debug
level logging to files on the virtual machine, refer to this example tools.conf
file from ESXi 5.1, which captures standard diagnostic output on a Windows guest:
[logging]
log = true
# Enable VMware Tools service logging to a file.
vmtoolsd.level = debug
vmtoolsd.handler = file
vmtoolsd.data = c:/tmp/vmtoold.log
# Enable "vmsvc" service logging to a file.
vmsvc.level = debug
vmsvc.handler = file
vmsvc.data = c:/tmp/vmsvc.log
# Enable new "vmusr" service logging to a file.
vmusr.level = debug
vmusr.handler = file
vmusr.data = c:/tmp/vmusr.${USER}.log
# Enable the "vmvss" snapshot service logging to a file.
vmvss.level = debug
vmvss.handler = file
vmvss.data = c:/tmp/vmvss.log
When troubleshooting backup issues within the guest, you must be certain not to set the debug logging to a file
or file+
handler. Part of the backup process will disable writes to the guest disk during the operation, which prevents logging from operating during this time.
When troubleshooting this type of issue, always use a handler which will support writing to memory instead.
In ESXi 5.x, the simplest solution for this is to use the vmx
handler.
In older versions of ESXi/ESX (4.0 and 4.1), you may omit the handler option to force logging to the internal debug system. In this situation, you must install the Windows Sysinternals DebugView tool to analyze these logs:
Other useful information can be found by running these commands and capturing the output to a file:
vssadmin list writers
vssadmin list providers
vssadmin list volumes
tasklist /v
Sample backup/VSS troubleshooting tools.conf configurations
These sample tools.conf
configurations can be used to troubleshoot most VSS/backup issues. Note that these configurations are geared specifically for that purpose, and are not suitable for general troubleshooting of other VMware Tools related issues.
[logging]
log = true
vmbackup.level = debug
vmbackup.handler = vmx
vmvss.level = debug
vmvss.handler = vmx
[logging]
log = true
vmsvc.level = warning
vmbackup.level = debug
[vmbackup]
vss.log = true
log = "TRUE"
When the VMware Tools service crashes for any reason, it generates a core dump which can be found in these locations:
%TEMP%\vmware-UserName
/core.[pid]
[pid]
is the process ID of the vmtoolsd
process which generated the core dump.
Network script logging tools.conf configuration examples (Only for Linux, Mac OS X, Solaris, and FreeBSD):
# Modifying Network script logging to a file (network.log).
network.handler = file
network.data = /tmp/network.log
# Modifying Network script logging to a file without rotation.
# If data is not specified, it will lo to default log file vmware-network.log
network.handler = file+
# Modifying maximum number of rotated Network script log files to retain.
network.maxOldLogFiles = 9
# Redirect network script logs to vmx.
network.handler = vmx
# Redirect network script logs to syslog.
network.handler = syslog
For information on VMware Tools, see Overview of VMware Tools (340).