Saturday, June 05, 2010

Enable Hibernation and Sleep in Windows Server 2008 R2

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.

7 comments:

Anonymous said...

Interesting workaround, but hibernation is also affected by the amount of physical memory. If you're going to run multiple VM's you probably want more than 4GB of physical memory and that again prevents the hibernation option.

Anonymous said...

You're AMAZING! THANK YOU! I have a 4U rack server with 32GB of RAM with a crap load of virtualization running on it, and the stupid hypervisor OS places a 32gb hiberfil.sys file on HDD (which, is an SSD), it's a complete joke that Microsoft would design something in that fashion!

Anonymous said...

A couple additional steps
-Reboot
-Open a command prompt, type "powercfg.exe /hibernate on" to enable hibernation.

You probably won't see hibernate or sleep appear on your Start menu. You will have options in your Power settings to configure Hibernate/Sleep settings and assign actions/buttons/Lid Close/etc.

Sleep may or may not be available depending on your display driver. Try updating your display driver if it's not available.

Anonymous said...

totally agree with you.

My blog:
rachat credit surendettement aussi banque rachat de credit

Anonymous said...

В жестокой гонке машины мнутся как консервы:

Кто будет лучшим, кто будет первым?

Мы так торопимся, что шестьдесят уже не скорость,

И значит
смерть теперь всего лишь новость.

Maneesh Kalra said...
This comment has been removed by the author.
Anonymous said...

This is very interesting, You're a very skilled blogger. I have joined your rss feed and look forward to seeking more of your fantastic post. Also, I've shared
your web site in my social networks!

Also visit my web blog :: teamwork quotes