No sleep options on Hyper-V


  1. Posts : 241
    Windows 10 Pro
       #1

    No sleep options on Hyper-V


    I installed 2 machines on Hyper-V and none of them have the Sleep options under "Power Options". Is there a fix?
    Thanks
      My Computer


  2. Posts : 4,187
    Windows 11 Pro, 22H2
       #2

    Try disabling "dynamic memory" for your VM. I know for a fact that this prevents hibernation from working, but am only guessing that this may affect sleep as well.

    Let me know that helps.
      My Computers


  3. Posts : 31,651
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #3

    Do you have a specific need to have sleep available in a VM, or is your question just out of curiosity? If you just want to suspend its activity, then 'restore down' to have the VM connection in a window on your host machine. Then Pause is available in the Action menu and on the toolbar.


    No sleep options on Hyper-V-hyper-v-pause.png


    If you specifically need sleep/hibernate for test purposes then no, neither sleep or hibernation are available to the guest OS in a Hyper-V VM. It is possible to enable hibernation for a Hyper-V VM though....

    1. Disable dynamic memory on the VM - it's incompatible with hibernation
    2. Run the following PowerShell script on the host....
    How to enable Sleep/Hibernate on a Hyper-V guest VM? - Super User

    Sleep is probably not possible, even on a physical machine it requires a video driver that supports Standby (S3). It's unlikely that the 'Microsoft Hyper-V Video' HyperVideo.sys driver does.
      My Computers


  4. Posts : 241
    Windows 10 Pro
    Thread Starter
       #4

    hsehestedt said:
    Try disabling "dynamic memory" for your VM. I know for a fact that this prevents hibernation from working, but am only guessing that this may affect sleep as well.

    Let me know that helps.
    nope, I tried that earlier actually but that didn't work
    Bree said:
    Do you have a specific need to have sleep available in a VM, or is your question just out of curiosity? If you just want to suspend its activity, then 'restore down' to have the VM connection in a window on your host machine. Then Pause is available in the Action menu and on the toolbar.


    No sleep options on Hyper-V-hyper-v-pause.png


    If you specifically need sleep/hibernate for test purposes then no, neither sleep or hibernation are available to the guest OS in a Hyper-V VM. It is possible to enable hibernation for a Hyper-V VM though....
    How to enable Sleep/Hibernate on a Hyper-V guest VM? - Super User

    Sleep is probably not possible, even on a physical machine it requires a video driver that supports Standby (S3). It's unlikely that the 'Microsoft Hyper-V Video' HyperVideo.sys driver does.
    thank you, I guess that's the reason, the Hyper-V Video driver does not support S3.
    I need to disable sleep, that's why I asked (not just curiosity )

    So I'm not sure now if there's not sleep option, does it never sleep or it will sleep whenever?
      My Computer


  5. Posts : 31,651
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #5

    mibaup said:
    ...thank you, I guess that's the reason, the Hyper-V Video driver does not support S3.
    I need to disable sleep, that's why I asked (not just curiosity )

    So I'm not sure now if there's not sleep option, does it never sleep or it will sleep whenever?

    No, the guest OS has no sleep option available. The host machine does, however. If you want to make sure your VM stays up 24/7 then you need to make sure that the host has sleep disabled too.

    Just compare their respective advanced power plan option in Control Panel. There's no 'Sleep after' available in the guest.

    No sleep options on Hyper-V-image.png

    Or open a command prompt in each and run the command powercfg /a

    No sleep options on Hyper-V-image.png
      My Computers


  6. Posts : 241
    Windows 10 Pro
    Thread Starter
       #6

    Thank you!
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 13:48.
Find Us




Windows 10 Forums