Knowledge Base

|
Locating virtual machine log files on an ESXi/ESX host (1007805)
Purpose
This article provides information on locating virtual machine log files on an ESXi/ESX host.
Resolution
ESXi/ESX hosts store virtual machine-specific logging in
the same directory as the virtual machine's configuration files. By
default, the log file is named vmware.log.
For archival purposes, the log is renamed with a sequential number added to the end, and a new vmware.log file is created. Archived log files are named vmware-#.log. The most recent archived version is named vmware-1.log. When the vmware.log file is next archived, the existing vmware-1.log file is renamed vmware-2.log.
Virtual machine logs can be reconfigured to archive at different intervals, with different names, or when the log reaches a specific size. For more information, see Log rotation and logging options for vmware.log (8182749).
To identify the location of vmware.log files:- Establish an SSH session to your host. For ESXi hosts, see Using Tech Support Mode in ESXi 4.1 and ESXi 5.0 (1017910). For ESX hosts, see Opening a command or shell prompt (1003892).
- Log in to the host's terminal.
- To list the locations of the configuration files for the virtual machines registered on the host:
- For ESXi, run the command:
vim-cmd vmsvc/getallvms - For ESX, run the command:
vmware-cmd -l - Search the results for the name of a virtual machine file you want to locate. The file path to vmware.log is also listed.
- Record the location of the .vmx configuration file for the virtual machine you are troubleshooting. For example:
/vmfs/volumes/xxxxxxxx-xxxxxxx-c1d2-111122223333/vm1/vm1.vmx - If the virtual machine is not registered on the host and you want to search for the configuration file, run this command:
find /vmfs -name "*.vmx”
Additional Information
For troubleshooting information, see Troubleshooting a virtual machine that has stopped responding (1007819).
See Also
Request a Product Feature
- Updated:
- Categories:
- Languages:
- Product Family:
- Product(s):
- Product Version(s):

