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

  • 0 Utenti hanno trovato utile questa risposta
Hai trovato utile questa risposta?

Articoli Correlati

Hardware and firmware requirements for 64-bit guest operating systems

PurposeThis article explains the host machine hardware and firmware requirements for installing...

Logging in to the vCenter Server 5.0 Web Client fails with the error: unable to connect to vCenter Inventory Service

DetailsAfter upgrading from vCenter Server 4.1 to 5.0, you experience these symptoms:Cannot log...

Multiple network entries in vCenter Server 5.0.x after migrating virtual machines from a virtual switch to a virtual distributed switch

SymptomsAfter migrating virtual machines from a virtual switch to a virtual Distributed...

Minimum requirements for the VMware vCenter Server 5.x Appliance

PurposeIf you are using the VMware vCenter Server Appliance, beginning with vSphere 5.0 you can...