In development environments or when debugging a issue, it is usually a pain to get a crash dump of an existing VM state.
Anton Naumovich from Hyper-V team recently released a tool which can convert a VM saved state to a full memory dump file. This tool enables easier debugging of issues in the VMs and provides the fastest way to generate a memory dump file from a VM. It comes as a single executable and with a single command; any saved VM or online snapshot can be converted into a full memory dump file.
You can get the tool from http://code.msdn.microsoft.com/vm2dmp. This location also contains the usage information for the tool.
vm2dmp.exe –vm VISTASP1-ENT-32 -dmp C:\VM\memory.dmp
vm2dmp.exe –vm VISTASP1-ENT-32 –snap “VISTASP1-ENT-32-snapshot-SP1” -dmp C:\VM\memory.dmp
vm2dmp.exe -bin C:\VM\example.bin -vsv C:\VM\example.vsv -dmp C:\VM\memory.dmp
vm2dmp.exe -bin C:\VM\example.bin -vsv C:\VM\example.vsv -dmp C:\VM\memory.dmp –sym C:\symbols