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