Does anyone know how I can get the Windows 2012R2 virtual machines to shutdown when sent the signal by the cluster resource manager?
I am running Windows 2012R2 servers as Virtual Machines (VMs) on KVM, using corosync/pacemaker for high availability. To migrate a VM from one node to the other, the VM is sent a shutdown signal. The command issued is:
crm resource migrate p_virtdom_win2012R2
Which I believe this is equivalent to:
virsh shutdown <vmname>
Once the machine powers off, it is started on the other node.
The problem I am having is that the Windows 2012R2 VMs do not seem to respond to the shutdown command - and keep running until the operation times out.
ACPI is enabled in the virtual hardware, and acpid is installed on the ubuntu 14.04 LTS host machines.
I am able to get the migrate command to work if I connect to the console and "slide up" the screen to reveal the login screen, however this is not practical for a high availability system as it should gracefully shutdown without user intervention.
I had the same problem with Windows 2008 servers, and was able to get around it by using the following group policy settings:
Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options\Interactive logon: Do not require CTRL + ALT + DEL Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options\Shutdown: Allow system to be shut down without having to log on
This keeps the machine at the login page, showing the "Shutdown" icon in the corner, and works fine for migration.
Unfortunately, this setting does not keep Windows 2012R2 at the login screen. Instead, it seems to allow you to swipe up instead of hitting CTRL + ALT + DEL to access the login page.
I have also found a suggestion here:
to virtually "move the mouse" to allow the shutdown to occur, however logging in to the console and moving the mouse only reveals the screen with the time and date, and does not seem to solve the problem.
EDIT/NOTE: The registry edit that allows the Windows 2012 R2 VM to shut down without login is not set on the Windows 2008 VM - only the group policy option is required!