none
Want to generate crash dump for the hung VM on my Hyper-V RRS feed

  • Question

  • Not sure if this is the right forum. 

    My VM(2k12R2 server) is hung. I am using windows server 2012 Hyper-V as a host. Now I need to generate the crash dump at this moment for analysis. 

    This Link is explaining the way to crash the VM using livekd. But I am getting following errror

    C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x64>livekd.exe -hv MyVMName

    LiveKd v5.62 - Execute kd/windbg on a live system
    Sysinternals - www.sysinternals.com
    Copyright (C) 2000-2016 Mark Russinovich and Ken Johnson

    Error resolving symbol KdVersionBlock: 126
    Failed to resolve KdVersionBlock - 126
    Failed to load guest symbols - 126
    Failed to prepare hypervisor session for debugger - error 126.

    Exiting LiveKd.

    Could somebody help me with this?

    Sunday, July 23, 2017 12:45 PM

All replies

  • The easiest way to force crash on a VM is through powershell on the Host:

    Debug-VM -Name "VM Name" -InjectNonMaskableInterrupt -ComputerName Hostname

    However ensure that you have following registry keys set on the guest before you run that command:

    https://support.microsoft.com/en-us/help/927069/how-to-generate-a-complete-crash-dump-file-or-a-kernel-crash-dump-file


    Please mark as answers and vote as helpful on any posts that help you.

    Tuesday, July 25, 2017 2:27 PM