Hyper-V randomly turning off

Ian-12 6 Reputation points

Every maybe 3 days, I will find my vm turned off. Only I have access to the server it sits on so thats not the issue.
I cant find anything in the event logs of the vm to suggest it was an error of some kind. I've even gone onto hyper-v manager to set it to auto start (which it isnt doing).

Its a windows 2016 essentials server vm thats sat on a windows 2016 essentials server.

The only thing running on the vm is IIS. So why would it randomly turn off?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,098 questions
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,530 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Dave Patrick 426K Reputation points MVP

    Might check here in case of licensing issues.
    Microsoft\Windows\Server Infrastructure Licensing\Operational

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

  2. Eleven Yu (Shanghai Wicresoft Co,.Ltd.) 10,671 Reputation points Microsoft Vendor


    We can first check from below three aspects:

    1. Check if the VM has been licensed or not. (Settings > Update & Security > Activation)
      If not, the VM will be automatically turned off
    2. Monitor to see if there is memory issue. We need to always make sure there is enough memory assigned if we use dynamic memory.
    3. Check host event logs Event Viewer>> Applications and Services Logs>> Microsoft>> Windows>> Hyper-V VMMS and Hyper-V Worker
      The "Admin" and "Analytic" event logs on host under "Applications and Services Logs\Microsoft\Windows\Hyper-V-VMMS" should have detailed information on what happened to the VM. You can also check "Hyper-V-Worker" events to see if you can find any anomalies.


    If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.