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
- Open the target VM's Control Panel > System and Security > System
 - Click on Advanced System Settings > Advanced Settings > Boot and Recovery Settings
 - Under Write Debug Information, select "Full Memory Dump"
 - Specify the output location for the dump file
	
-  default = %SystemRoot%\MEMORY.DMP
 
	 - Add the following registry key (DWORD value) and set the value to 1
 
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl
NMICrashDump
- Restart the virtual machine.
 - 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
- 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>
- Once the target VM has generated a BSOD and is able to output a complete memory dump, the VM will be restarted.
 - 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.
                            
                         
                        
                    
                    
                    
                    
                        
                        
                    
                    
                
                    
                        
                            Was this article helpful?
                        
                        
                            
                                thumb_up
                                Yes
                            
                            
                                thumb_down
                                No