The steps in this article will capture a memory dump from a VMware virtual machine without stopping its execution. This is useful in cases where forcing a crash or changing the Windows dump parameters is not permitted.
vmss2core.exe -W8 snapshot.vmsn snapshot.vmem
If using Microsoft Windows and willing perform the default operation of converting the VM snapshot into a core dump, run this command:vmss2core.exe snapshot.vmsn snapshot.vmem
If snapshot is from a VM where guest OS is older Windows: vmss2core.exe -W snapshot.vmsn snapshot.vmem
If snapshot is from a VM where guest OS is Linux:vmss2core.exe -N snapshot.vmsn snapshot.vmem
Note: .vmsn may be .vmss, and the .vmem file may not be present or necessary.
Successful output should be a "memory.dmp" (or "vmss.core" in case of Linux)
Technical References
Identifying critical Guest OS failures within virtual machines
The vmss2core tool can be downloaded from VMware Flings
Note: The vmss2core tool cannot convert .vmss
or .vmsn
files for Windows VMs that have Hyper-V enabled.
To verify if Hyper-V is enabled for a VM, open the .vmx
configuration file and check for the line:
vhv.enable = "TRUE"
If this setting is present and set to "TRUE," Hyper-V is enabled, which blocks vmss2core
from converting the .vmss
file into a memory dump.