Windows server 2012 Hyper-v virtual machine getting shutdown after a while.
this may be on of the reason code 0x80000000 if you check the event viewer with event id 1074 .
The process C:\Windows\system32\wlms\wlms.exe (<Computer Name>) has initiated the shutdown of computer <Computer Name> on behalf of user NT AUTHORITY\SYSTEM for the following reason: Other (Planned)
Reason Code: 0x80000000
Shutdown Type: shutdown
Comment: The license period for this installation of Windows has expired. The operating system is shutting down.
As the event states: The license period for this installation of Windows has expired.
To reset the evaluation period, Click Start, and then click Command Prompt > type slmgr. vbs –rearm, and then press ENTER.