How to send NMI to Guest OS on ESXi 6.x
search cancel

How to send NMI to Guest OS on ESXi 6.x

book

Article ID: 301246

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

This article provides steps to send NMI to Guest OS on ESXi6.x.
 
Note: Host client does not have HungVM - Send_NMI_To_Guest option. Therefore, ESXi 6.x cannot send NMI using host client.


Environment

VMware vSphere ESXi 6.0
VMware vSphere ESXi 6.5

Resolution

To send NMI to Guest OS on ESXi 6.x, use one of these options:
 
  • Using WebClient:
     
    1. Log in to the vSphere Web Client.
    2. Select vCenter from left panel.
    3. Select VMs and Templates.
    4. Right-click Virtual machine > All vCenter Actions > Export Diagnostic Data.
    5. Select HungVM > Send_NMI_To_Guest.
    6. Click Generate Log Bundle.
       
  • Using vm-support command-line:
 
    1. Log in to ESXi host through SSH or console as root.

      Note: The virtual machine must be registered in the inventory.
       
    2. Run this command to list all registered and running virtual machines:

      vm-support --listvms
      vmdumper -l

       
    3. Run this command to Send NMI:

      vm-support -a HungVM:Send_NMI_To_Guest --vm=/vmfs/volumes/Path/of/VMname.vmx
  • Using vmdumper command-line:
     
    1. Log in to ESX/ESXi host through SSH or console as root.
    2. Run this command to get a list of all running virtual machines, identified by their World ID, path to the .vmx configuration file:

      ESXi: /sbin/vmdumper -l
      ESX : /usr/lib/vmware/bin/vmdumper -l


      Example output:

      wid=WorldID pid=-1 cfgFile="/vmfs/volumes/path/to/filename.vmx" uuid="ab cd ef ..." displayName="Virtual Machine Name"
       
    3. Run this command to Send NMI:

      vmdumper WorldID nmi


Additional Information

简体中文:如何在 ESXi 6.x 上将 NMI 发送到客户机操作系统