一般我们认为,windows系统下的acpi是默认开启的,但是本次我测试win2003虚拟机,发现默认情况下通过“virsh shutdown 虚拟机名称”无法正常关闭虚拟机
解决方法:
在虚拟机里面修改组策略配置:
<code>“gpedit.msc”--“Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options\"</code>
<code>Shutdown: Allow system to be shut down </code>
<code>without having to log on”</code>
修改注册表信息:
然后运行ShutdownWarningDialogTimeout.reg
内容如下:
<code>Windows Registry Editor Version 5.00</code>
<code>[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows]</code>
<code>"ShutdownWarningDialogTimeout"</code><code>=dword:00000001</code>
再次测试,发现问题得到解决。
本文转自 冰冻vs西瓜 51CTO博客,原文链接:http://blog.51cto.com/molewan/1712735,如需转载请自行联系原作者