Hyper-V VM random reboot

Vinothraj D 41 Reputation points
2021-03-28T15:06:06.217+00:00

Hi All,

We have server 2016 vm installed on Hyper-V but monthly ones the vm's got rebooted and whenever we searched for Event it shows event-id 41 "The server has rebooted without cleanly shutting down first. This error could be caused if the system stopped responding, crashed or lost power unexpectedly". Please guide from where i should start my troubleshooting either Hyper-V or Rebooted vm's.

Thanks

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,547 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2021-03-28T16:25:34.87+00:00

    It may be the host was shutdown or rebooted for some reason.

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

  2. Xiaowei He 9,871 Reputation points
    2021-03-29T05:47:56.247+00:00

    Hi,

    I'd like to check if all the VMs get restarted or specific VMs get restarted? When the VMs get started, did the Hyper V host restarted unexpectedly?

    To troubleshoot the issue, I'd suggest you monitor on one reboot VM, enable dump for unexpected shutdown, then analyze the dump, check if there's any system hang or crash on the VM system.

    How to configure a memory dump:

    NOTE: If RAM is larger than 32GB, we need to collect Kernel Dump. If the RAM is small than 32GB, we can collect Complete dump. We need to restart the machine to make the setting effect, please arrange downtime first.

    1. Set pagefile. (If RAM is larger than 32GB ,set Pagefile to 30GB. If the RAM is small than 32GB, set Pagefile to (RAM+100MB))

    a. Right - Click My computer, choose Properties

    b. Click the Advanced system Settings.

    c. Click the Advanced tab, and then under Performance, click Settings.

    d. Click the Advanced tab, and then under Virtual memory, click Change.

    e. In the Drive [Volume Label] list, choose one drive with enough disk space, Click Custom size, and then type (RAM+100MB) in both Initial size (MB) and Maximum size (MB) box. Then click Set, click OK.

    1. Configure dump type

    Locate to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\CrashControl

    Set CrashDumpEnabled ; (If RAM is larger than 32GB, set it to 0x2; If the RAM is small than 32GB, set it to 0x1)

    Set “Dumpfile = %SystemRoot%\MEMORY.DMP”; (please make sure C drive has enough space, if not, we can change dump to another drive like d:\memory.dmp)

    If you are unable to analyze the dump file, it's recommended to open a case with MS for dump analysis.

    Below is the link to open a case with MS:

    https://support.microsoft.com/en-us/gp/customer-service-phone-numbers

    Thanks for your time!
    Best Regards,
    Anne

    -----------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments