如何在具有 Hyper-V 角色的 Windows Server 2012 上启用休眠?

ole*_*sii 5 electrical-power hibernate windows-server-2012

我在笔记本电脑上安装了 Windows Server 2012。我需要一台服务器,因为我开发的软件需要专门在服务器版本上进行测试。Windows Server 2012 的文档

安装 Hyper-V 角色后,不再禁用睡眠和休眠。

这种变化增加了什么价值?

运行 Hyper-V 的计算机可以进入睡眠或休眠模式。这对于在膝上型计算机上运行 Hyper-V 的用户特别有用。

如何在具有 Hyper-V 角色的 Windows Server 2012 上启用休眠?

我尝试过的事情

关闭选项

  • service.msc(指向 C:\Windows\system32\vmms.exe)中停止 Hyper-V 虚拟机管理服务,所有其他 Hyper-V 服务默认停止。

  • 以管理员身份执行

    powercfg.exe /hibernate on
    
    Run Code Online (Sandbox Code Playgroud)

    这是输出

    Microsoft Windows [Version 6.2.9200]
    (c) 2012 Microsoft Corporation. All rights reserved.
    
    C:\Windows\system32>powercfg.exe /hibernate on
    Hibernation failed with the following error: The request is not supported.
    
    The following items are preventing hibernation on this system.
            An internal system component has disabled hibernation.
                    Hypervisor
    
    C:\Windows\system32>powercfg.exe /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:\Windows\system32>
    
    Run Code Online (Sandbox Code Playgroud)

lon*_*eck 3

您链接到的文章有错误。该功能预计将成为 2012R2 的一部分。文章的该部分应标记为需要 R2。