DCSIMG
Virtual Machine in Hyper-V restarts after shutting down the guest OS - Dario IT Solutions Blog

Dario IT Solutions Blog

Virtual Machine in Hyper-V restarts after shutting down the guest OS

Symptom
Virtual Machine in Hyper-V automatically restarts after shutting down the guest OS.
The Integration components are installed and functioning properly. There are no relevant errors in the event log of the hyper-v.

Cause
The Virtual Machine is defined as a cluster resource.
Control the VM through the Failover Cluster Management console.

Using the Failover Cluster Management console, control the state of the VM resource and define what happens to the VM when taking the resource offline :
Virtual Machine Resource > Properties > Offline Actions :
Turn Off / Save / Shutdown / Shutdown (force)

More Info
At first, I thought it was a bug in hyper-V, and after changing the "Automatic Start Action" in the VM's settings, the machine didn't restart automatically after the shutdown. Several minutes later, the machine was started and the automatic restart after shutdown happened again.
A simple solution came from a simple article :

Troubleshooting Hyper-V
http://technet.microsoft.com/en-us/library/cc742454.aspx

פורסם: Jan 04 2009, 12:14 PM by kobi.a