Converting a snapshot file to memory dump using the vmss2core tool
book
Article ID: 323788
calendar_today
Updated On:
Products
VMware Desktop HypervisorVMware vSphere ESXi
Issue/Introduction
This article provides steps to convert a snapshot file to a memory dump using vmss2core tool. Developers can use this tool to debug guest operating systems and applications by converting a virtual machine checkpoint into a core dump file. The checkpoint can either be a snapshot or suspend file. You can select a variety of core dump formats that standard debuggers understand.
Symptoms:
Cannot run the vmss2core tool.
Running the vmss2core tool fails.
In the command line, you see the error:
Failed to locate memory. Memory block and no separate .vmem file supplied
To create the memory dump if the virtual machine is installed on Workstation 7.x and above or Fusion 3.x and above.
Change directory to one of these locations depending on your installation type:
Windows (32bit versions) – C:\Program Files\VMware\VMware Workstation\
Windows (64bit versions) - C:\Program Files(x86)\VMware\VMware Workstation\
Linux – /usr/bin/
Mac OS – /Library/Application Support/VMware Fusion/
Note: If vmss2core is not available in these install directories, it can be downloaded from here, however it is not supported and is to be used at your own risk.
Run the vmss2core tool with the correct option (depending on your guest OS) to create a memory dump:
Copy the virtual_machine_name.vmss file to the location where you have the vmss2core tool.
Note: If virtual_machine_name.vmem exist, copy to the same location as above.
Run the vmss2core tool with the option to create a memory dump.
# vmss2core –W virtual_machine_name.vmss
If you are using Microsoft Windows 8/8.1, Windows Server 2012, Windows Server 2016 or Windows Server 2019 run this command: # vmss2core -W8 virtual_machine_name.vmss
If you are using Linux, use the command: # ./vmss2core-Linux64 -N virtual_machine_name.vmss
Note: The flag -W, -W8, or -N is to reference the virtual machine's Guest OS and not the jumpbox machine you are running the command from.