none
Sleep and hibernation is working on Server 2012 with started hypervisor! I do not know why...

    Question

  • Hi,
    I enabled Hyper-V role in the Microsoft Windows Server 2012 on testing computer (PC with i7 CPU and 16GB RAM). I found very strange behavior. The sleep mode was enabled and after command “powercfg /hibernation on” the hibernation is also working.

    I tested sleep (S3) and hibernation with started hypervisor and with running virtual machine. I tested sleep and hibernation triggered by power button and even with time-out that was set in the Power Options (I set sleep after 1 minute and later hibernate after 1 minute and wait).

    Sleep and hibernation is working! I do not understand why. Sleep and hibernation should be functional only on Client Hyper-V on Windows 8 and not on the Server 2012.

    Some examples:
    --------------------------------
    Testing workstation (i7, 16GB RAM) with Server 2012 and with started hypervisor:
    --------------------------------
    C:\Users\Administrator>powercfg /a
    The following sleep states are available on this system:
        Standby (S3)
        Hibernate
        Fast Startup

    The following sleep states are not available on this system:
        Standby (S1)
            The system firmware does not support this standby state.

        Standby (S2)
            The system firmware does not support this standby state.

        Standby (Connected)
            The hypervisor does not support this standby state.
            The system firmware does not support this standby state.

        Hybrid Sleep
            The hypervisor does not support this standby state.

    --------------------------------
    My laptop (i5, 8GB RAM) with Server 2012 and with started hypervisor:
    --------------------------------
    >powercfg /a
    The following sleep states are not available on this system:
        Standby (S1)
            The system firmware does not support this standby state.
            An internal system component has disabled this standby state.
                    Hypervisor

        Standby (S2)
            The system firmware does not support this standby state.
            An internal system component has disabled this standby state.
                    Hypervisor

        Standby (S3)
            An internal system component has disabled this standby state.
                    Hypervisor

        Hibernate
            An internal system component has disabled hibernation.
                    Hypervisor

        Standby (Connected)
            The hypervisor does not support this standby state.
            The system firmware does not support this standby state.

        Hybrid Sleep
            Standby (S3) is not available.
            Hibernation is not available.
            The hypervisor does not support this standby state.

        Fast Startup
            Hibernation is not available.
    --------------------------------

    R. Revil


    Relef Revil


    • Edited by R.Revil Friday, April 12, 2013 5:09 PM
    Friday, April 12, 2013 5:08 PM

Answers

  • Hyper-V in Windows Server 2012 does support sleep - but Windows Server 2012 itself does not usually enable sleep. Primarily this happens because Windows Server uses a basic video driver, that does not support sleep.

    Most likely you have installed a third party video driver on your system, which removed this block and then allowed you to enable both sleep and hibernation.


    Cheers,
    Benjamin Armstrong
    ============================
    Windows Virtualization
    Senior Lead Program Manager

    This posting is provided AS IS with no warranties, and confers no rights. You assume all risk for your use.

    Friday, April 12, 2013 8:11 PM

All replies

  • Hyper-V in Windows Server 2012 does support sleep - but Windows Server 2012 itself does not usually enable sleep. Primarily this happens because Windows Server uses a basic video driver, that does not support sleep.

    Most likely you have installed a third party video driver on your system, which removed this block and then allowed you to enable both sleep and hibernation.


    Cheers,
    Benjamin Armstrong
    ============================
    Windows Virtualization
    Senior Lead Program Manager

    This posting is provided AS IS with no warranties, and confers no rights. You assume all risk for your use.

    Friday, April 12, 2013 8:11 PM
  • I am very happy that I received a response from such a specialist like you Ben.

    You are correct! The workstation where the hibernation works have two video cards ATI Radeon HD 5450 and 5670 (I needed three monitors and in the past it was much cheaper to have two cards then one high-end).

    I know that it not best practice but please can you tell me is it possible to install third party video driver on my laptop to enable sleep? Or is there another solution to enable sleep with started hypervisor?

    I thought that it is absolutely impossible to have functional sleep on Hyper-V server. In the past I searched on the internet and the only solutions that I found was workarounds that disable hypervisor during startup (using bcdedit) or set HKLM\SYSTEM\CurrentControlSet\Services\hvboot to 3 (demand) and then start hypervisor manually using net start hvboot.

    As I said I know it is not best practice but my laptop is not production server and I really like to have functional sleep when I have started virtual machines.

    I know that I can use Windows 8 (Client Hyper-V) on my laptop but I am glad to have a Server 2012. Sleep and hibernation works great on the laptop without started hypervisor.

    Btw. the laptop is Dell Latitude E6230 (Intel Core i5 3320M, Intel HD Graphics 4000).

    Thank you.


    Relef Revil

    Saturday, April 13, 2013 6:33 AM
  • It is absolutely great that you discover how to enable sleep and hibernation on Hyper-V host!

    Is it possible to do it also on another computer that do not have special video card?

    I also like to have Hyper-V and sleep on the laptop with Intel 4000 video card that is integrated into i3 CPU.

    Thanks.

    Sunday, April 21, 2013 10:10 AM
  • Is there any update on this? 

    I also installed Windows Server 2012 (in this case R2) on a notebook which I purely use for demos and I'd like to enable sleep as I don't want to always shut it down.

    How can I check that video card driver thingy? 

    Thanks for any help.

    David


    David O'Brien | MCITP/MCSE/MCSA, CCEE/CCIA | My blog: www.david-obrien.net | me on Twitter: @david_obrien | sepago GmbH

    Wednesday, July 03, 2013 5:49 PM
  • powercfg /a gives you sleep states available, and what, if anything is preventing it.

    Downloading the manufacturer's drivers for your video card may work.

    Keep in mind it's unsupported and while powercfg may say you can sleep, it could just BSOD your system.  I've seen powercfg say a Hyper-V 2012 server can sleep, and it just BSODs and reboots.

    Wednesday, July 03, 2013 6:07 PM
  • Well,Haha,I have the same issue with you ,It is that Windows server 2012 with Hyper-v on my x200 laptop can hibernate now I'm trying to do this on my new x230t
    Wednesday, July 10, 2013 4:44 AM
  • Hi,
    there are same video cards in my Dell Latitude E6230 and your Lenovo ThinkPad X230t (Intel HD Graphics 4000). As Ben Armstrong said we need third party video driver on our systems. This is the problem because we have generic drivers. Maybe if we force OS to install some other driver but I have no idea what driver can work with Intel HD Graphics 4000 and also remove block and allow you to enable sleep and hibernation.

    I know from my own experience that drivers for ATI Radeon HD 5450 and 5670 can do this so the only solution I know is install new video card but of course you cannot do it on the laptop.

    Please keep me inform abou your progress...

    Thank you.


    Relef Revil

    Wednesday, July 10, 2013 6:51 AM
  • Hi,I think it's a bug. l tried to uninstall video driver on my x230t,and when I typed command "powercfg /a" it says(S3): An internal system component has disabled this standby state. hyper visor graphics when I install the drive ,then it says: An internal system component has disabled this standby state. hyper visor so I think the issue has no relation to video driver..... So I really wanna know how Ben Armstrong explains the issue. btw,I'm sorry for my Pooooooor. English...
    Wednesday, July 10, 2013 7:14 AM
  • Thank you but this is not a solution. Using this tweak you can disable start of hypervisor but when you need to run VM you have to start it and after start you cannot sleep and hibernate. Similar effect can be done using BCDedit and create start profile that disable Hyper-V.

    Relef Revil

    Wednesday, July 10, 2013 12:08 PM
  • No Replies..

    Hi,R.Revil

    Could we think that it is a bug that we met ?

    Friday, July 12, 2013 1:41 AM
  • Hi,
    thank you for your concern. No, it is not a bug. I think that Hyper-V developers deactivated sleep and hibernation because that thought that these functions are not needed on the server. It is maybe correct on most servers but for example I would like to see possibility to hibernate on terminal servers in middle size companies that are running on batteries (on UPS) due power failure. Smaller companies usually do not have diesel generators so their servers needs to go down before they discharge batteries in UPSs.

    And of course I would like to have sleep and hibernation on my laptop because my laptop is also virtualization testing environment.


    Relef Revil

    Friday, July 12, 2013 4:56 AM
  • Hi,
    thank you for your concern. No, it is not a bug. I think that Hyper-V developers deactivated sleep and hibernation because that thought that these functions are not needed on the server. It is maybe correct on most servers but for example I would like to see possibility to hibernate on terminal servers in middle size companies that are running on batteries (on UPS) due power failure. Smaller companies usually do not have diesel generators so their servers needs to go down before they discharge batteries in UPSs.

    And of course I would like to have sleep and hibernation on my laptop because my laptop is also virtualization testing environment.


    Relef Revil

    This is exactly why I need hibernation, I used it on server 2003.  When you get a powercut UPS cuts in if down for a while server hibernates keeping existing work alive when power resumes you can carry on where you left off brilliant!
    Friday, November 22, 2013 11:16 PM
  • Hi Ben,

    I have nearly exactly the same Problem as Relef Revil.

    I have Lenovo T510 Notebook with Core I7 and a Lenovo T420 Notebook with a CoreI5.

    On my T510 S3 Sleep works perfectly with Hyper-V Role. On my T420 Sleep is disabled due to Hypervisor.

    If I uninstall Hyper-V Role then Sleep works again as expected.

    So, from a Little simple perspective, I Looks like this is a Hyper-V Thing or Problem.

    I have als updated to the latest BIOS and latest Intel HD Graphics 3000 Drivers on this Win 2012R2 Maschine.

    Also I have installed all possbile latest Versions of all other devices.

    Could you probably give me an idea where to search for a solution.

    So, what is the logic why Hyper-V disables sleep, when Sleep worked before?

    I assumed that Hyper-V and Sleep ist generally possible on Win2012R2, especially when Sleep works perfectly when Hyper-V Role is not installed.

    Kind Regards

    Marcus

    C:\Users\Marcus.Koenig>powercfg /a
    The following sleep states are not available on this system:
        Standby (S1)
            The system firmware does not support this standby state.
            An internal system component has disabled this standby state.
                    Hypervisor
    
        Standby (S2)
            The system firmware does not support this standby state.
            An internal system component has disabled this standby state.
                    Hypervisor
    
        Standby (S3)
            An internal system component has disabled this standby state.
                    Hypervisor
    
        Hibernate
            An internal system component has disabled hibernation.
                    Hypervisor
    
        Standby (Connected)
            The hypervisor does not support this standby state.
            The system firmware does not support this standby state.
    
        Hybrid Sleep
            Standby (S3) is not available.
            Hibernation is not available.
            The hypervisor does not support this standby state.
    
        Fast Startup
            Hibernation is not available.
    
    
    C:\Users\Marcus.Koenig>
    
    Friday, December 13, 2013 8:18 PM
  • Hi guys,

    is there anything new on this.

    I have the same issue as Marcus described. Why is Hypervisor blocking Hibernate and the Standby modes in some cases? What can we do to change this? I need also a solution for this problem. 

    Regards,

    Daniel

    Friday, January 10, 2014 7:17 AM