Normally when you install Hyper-V role in your server, it will disable sleep and hibernate facilities provided by Windows.
But you can avoid this by doing some alterations to Windows.
Hibernate and seep features are disabled when the Hyper-V service is started, so you can regain hibernate and sleep by changing the start parameter of the Hyper-V service (hvboot).
To change,
1. Open the registry editor by typing “regedit” in the run window.
Locate the key,
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\hvboot and then set the start value of it to 3.
Start property can hold the following values.
0 |
Boot (Not supported by hvboot.) |
1 |
System |
2 |
Auto |
3 |
On Demand |
4 |
Disabled |
Now you will have the hibernate and sleep facilities until you start the Hyper-V services in your machine.
2. Type the following command in a command prompt window with administrative rights.
sc config hvboot start= demand
Note that there needs to be a space between the = sign and the word demand.
Great post!
You forgot about one thing though. Once one is able to enable sleep-mode the hypervisor service becomes disables. In order to restart the hypervisor service, one must enter into the command line:
net start hvboot
Once this is done then sleep mode and hyper-v should work without error.
Thanks for the tips, and keep up the good work!