我在笔记本电脑上安装了 Windows Server 2012。我需要一台服务器,因为我开发了需要在服务器版本上专门测试的软件。Windows Server 2012的文档说
安装 Hyper-V 角色后,不再禁用睡眠和休眠。
这种变化增加了什么价值?
运行 Hyper-V 的计算机可以进入睡眠或休眠模式。这对于在笔记本电脑上运行 Hyper-V 的用户特别有用。
问题
如何在具有 Hyper-V 角色的 Windows Server 2012 上启用休眠?
我尝试过的事情
修改hvboot的注册表。我在注册表中没有hvboot文件夹,所以我手动添加它,重新启动
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\hvboot] "Start"=dword:00000003
没有效果。
在桌面上按Alt+F4,没有可用的睡眠或休眠
停止service.msc中的 Hyper-V 虚拟机管理服务(指向 C:\Windows\system32\vmms.exe),所有其他 Hyper-V 服务默认停止。
以管理员身份执行
powercfg.exe /hibernate on
这是输出
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>
您链接到的文章有误。这是预计将成为 2012R2 的一部分的功能。文章的该部分应标记为需要 R2。