一般我們認為,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,如需轉載請自行聯系原作者