How to collect complete memory dump of a virtual machine on Nutanix AHV

How to collect complete memory dump of a virtual machine on Nutanix AHV

book

Article ID: CTX580466

calendar_today

Updated On:

Description

To collect a complete memory dump of a virtual machine on Nutanix AHV.


Instructions

  1. Open the target VM's Control Panel > System and Security > System
  2. Click on Advanced System Settings > Advanced Settings > Boot and Recovery Settings
  3. Under Write Debug Information, select "Full Memory Dump"
  4. Specify the output location for the dump file
    •  default = %SystemRoot%\MEMORY.DMP
  5. Add the following registry key (DWORD value) and set the value to 1
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl
NMICrashDump
  1. Restart the virtual machine.
  2. After restart, execute the following command in CVM to confirm the UUID of the VM and the AHV host where the VM is located.
nutanix@cvm$ acli vm.list | grep <VM name
nutanix@cvm$ acli vm.get <VM name> | grep host_name
  1. Connect to the corresponding AHV host via SSH and send an NMI to the target VM using the following command.
[root@AHV ~]# virsh inject-nmi <UUID_obtained_from_the_acli_command_above>
  1. Once the target VM has generated a BSOD and is able to output a complete memory dump, the VM will be restarted.
  2. Verify that the dump file was generated in the specified path.

 

Environment

Caution! Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.

Additional Information

How to generate memory dump for hung Windows VM on AHV
https://portal.nutanix.com/page/documents/kbs/details?targetId=kA03200000099a4CAA