Enabling Hibernation and Hyper-V simultaneously

Forums Operating Systems Windows Server 2012 R2 Miscellaneous Enabling Hibernation and Hyper-V simultaneously

Viewing 1 reply thread
  • Author
    Posts
    • #44700

      Hibernation is important for systems where data is important, because hibernation is the only way to automatically save data when the power goes off. If the power shuts down and your UPS dies 20 minutes later when you’re not around, you’ll be disappointed to learn Windows shut down and the state of everything in memory was lost.

      Unfortunately, Windows Server Hyper-V does not support hibernation. They make Server Hyper-V disable hibernation, even though Windows 8 Hyper-V supports hibernation.

      But until there is a hack to enable both at the same time, there are two methods I found which allow operating hiberation and hyper-v MUTUALLY EXCLUSIVELY, but still, at least on the same system.

      One way, using a separate bcdedit boot entry to boot up with the hypervisor off, thus hibernation on: http://blogs.msdn.com/b/virtual_pc_guy/archive/2008/04/14/creating-a-no-hypervisor-boot-entry.aspx

      1.bcdedit /copy {current} /d “Microsoft Windows Server 2008 – no hypervisor”
      2.bcdedit /set {identifier for the new boot entry (copy from the output of a plain ‘bcdedit’ command)} hypervisorlaunchtype off

      The other way, setting the hypervisor service to NOT turn on at startup: http://chetanpawar.com/enable-hibernation-with-hyper-v-is-it-possible-yes-it-is/

      1. HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServiceshvboot and then set the start valueof it to 3
      2. Type the following command in a command prompt window with administrative rights. sc config hvboot start= demand
      3. Reboot
      4. After Reboot, Open an administrative command prompt, type “powercfg.exe /hibernate on” to enable hibernation.

      The “catch” with both of these methods is that enabling one feature always disables the other, automatically. The second method mentions that you can enable hyper-v service any time you want to run a VM, but that hibernation will automatically be turned off for that session.

      We need someone to hack the system to allow for both simultaneously 🙂 This may make a good guide at some point.

    • #60891
      Anonymous
    Viewing 1 reply thread
    • You must be logged in to reply to this topic.