none
Critical Bug: Hyper-V 2019 - Guest VMs do not shutdown gracefully when host shuts down RRS feed

  • Question

  • Greetings,

    Since December 2018, Hyper-v on Windows Server 2019 users have been reporting this issue.  I am posting a new thread because the original thread on the topic had a potentially misleading headline.  And most of the ensuing thread consisted of repeated requests for more information when in fact that information had already been provided.  And yet, even after an MS representative confirmed through his own testing that the (serious) problem exists, no further information has been provided for over five months.

    The problem, in a nut-shell is this:  Guest VMs do not shut down gracefully when the Hyper-v host is shut down or restarted, regardless of guest VM settings.

    Even when a guest VM is set to "shut down the guest operating system" as its default behavior for the "Automatic Stop Action",  the Hyper-v host does not actually shut down the guest VM(s) as it shuts itself down.  Rather, the VMs are just terminated as though power is cut.  Upon rebooting, the guest VMs will report no attempt to be shut down, and instead report that the prior shutdown was unplanned.

    This behavior is easily reproduced.  Merely. . .

    • Build a Hyper-v 2019 host server
    • Install a guest VM.
    • Set the guest VM to "shut down the guest operating system" under "Automatic Stop Action."
    • Reboot the Hyper-v host while the guest VM is running.

    . . .you will find that the guest VM was merely switched off ungracefully.

    Microsoft, please acknowledge this issue and give us an ETR.  I'm sure I'm not the only person putting their server upgrades on hold after running into this issue.  Various work-arounds (using "save state" instead of "shut down") are not a viable option for me.  Please, give us some news and hope (after an inexplicably long period of waiting) that a fix is imminent.

    Best Regards,

    Brian



    • Edited by BriReyEDU Tuesday, May 14, 2019 9:49 PM
    Tuesday, May 14, 2019 9:48 PM

Answers

All replies

  • You can vote this one up.

    https://windowsserver.uservoice.com/forums/295050-virtualization/suggestions/36874645-hyper-v-2019-guest-vms-shutdown-unexpectedly

    or contact microsoft directly here.

    https://support.microsoft.com/en-us/hub/4343728/support-for-business

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Tuesday, May 14, 2019 11:21 PM
  • Hi ,

    Just checking in to see if the information provided was helpful.

    You could mark the useful reply as answer if you want to end this thread up.

    Best Regards,

    Candy


    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com   

    Thursday, May 16, 2019 8:40 AM
  • It's crazy that this issue has not been addressed yet.
    Thursday, June 6, 2019 7:12 PM
  • Candy: tell someone with some authority at Microsoft, that this is a huge issue, and PREVENTS PEOPLE FROM UPGRADING TO 2019, and even raises questions about Azure reliability. Not to mention, THE PEOPLE ALREADY ON 2019 IS AT A VERY SERIOUS RISK OF LOSING DATA. Look at this thread, also: https://social.technet.microsoft.com/Forums/en-US/e8c45a15-0b9a-4b2c-ae2a-c546eadbcf41/hyperv-2019-guest-vm39s-shutdown-unexpectedly?forum=winserverhyperv

    THIS BUG IS HUGE, IT SHOULD BE FIXED ASAP, WITH THE HIGHEST POSSIBLE PRIORITY.

    Friday, June 21, 2019 3:07 PM
  • If you have 2019 Hyper V servers you can install this service on them

    https://github.com/platformcoders/vmmshutfix

    and set machines to "Save"  to not have Hyper V freak out on them.  This will get you rolling until there is a fix. This service sends preshutdown notification from Host OS to VM's, that way critical services will start shutting down before the Hyper V saves or turns them off.  You can compile it with free Visual Studio community downloaded from Microsoft. 

    If you want to test this code but you dont have 2019 HyperV lab  you can use Self-paced lab for 2019 Software Defined Networking Microsoft has over here: https://www.microsoft.com/handsonlabs/SelfPacedLabs


    Thursday, August 8, 2019 3:10 PM
  • This was supposed to be fixed in September's cumulative patch, but it seems that it hasn't. Why? How does people using this in production deal with this?
    Tuesday, September 17, 2019 8:55 PM