Changing VirtualCenter log locations

VMware VirtualCenter stores the logs in C:\Documents and Settings\All users\Application Data\VMware\VMware VirtualCenter\Logs by default. This wil work most of the time, but I personaly like to put logs on a separate disk to prevent logfiles from growing endlessly and filling up diskspace on the system disk. Fortunately there is a way to relocate the log location for VirtualCenter. Just follow the steps below.

To change the VirtualCenter log location:

  1. Log in to the VirtualCenter machine with an Administrator account.
  2. Open the following file with a text editor:
    %ALLUSERSPROFILE%\Application Data\VMware\VMware VirtualCenter\vpxd.cfg>
  3. Add the <directory> and </directory> tags to the file to specify the directory path for the logs, similar to:
  4. Restart the VirtualCenter Server service.

Update 11-03-2010: Remember to delete any HTML comment lines that may be present. On a new installation of vCenter Server 4 update 1 the <log> </log> section was enclosed in a HTML block comment like those: <!-- -->