Portal Home > Knowledgebase > VMware Knowledge Base > Disabling the Workstation Log File or Storing the Log File in a Different Location

Disabling the Workstation Log File or Storing the Log File in a Different Location

Details

The LOG FILE for my virtual machine or for Workstation overall is getting rather large. I'd like to stop Workstation from logging altogether, or move the log file to a location with more hard drive space. How do I do this?

Solution

Disabling Virtual Machine Logging

To disable logging for a single virtual machine, add the following entry to your virtual machine configuration file (.vmx):
logging = FALSE

The virtual machine will start up from then on without a log file. Keep in mind that if you require support from VMware at some later time, we will often ask for that log file for examination, so this setting may need to be removed.

Changing the Log File Location for Linux Hosts

For Linux host machines, add the following line to your virtual machine configuration file (.vmx):
log.filename = "/tmp/vm1.log"

In the above line, the log file for this virtual machine would be written to /tmp, and would be named vm1.log.

Warning: Do not use "/dev/null" as the log file name. The log.filename option does not interact well with /dev/null and will damage the /dev/null node if you configure your virtual machine this way.

Changing the Log File Location on Windows Hosts

For Windows host machines, add the following line to your virtual machine configuration file (.vmx):
log.filename="c:\tmp\vm1.log"

In the above line, the log file would be written into the C:\tmp directory, and the log file would be named vm1.log.

Based on VMware KB 1028


Also Read

Language: