2

I've had my VMs on Hyper-V 2012 (standalone) shutdown/stop randomly. My VMs are all snapshotted images with the modern.ie windows 7 image (barebone windows 7 with IE9) as the base image. I basicly have installed no software, but have a cd/iso that is mounted with the necessary software and a run script that executes on startup

I have 11 VMs w/ 1gb ram each configured identically on a Dell R610 with 1xIntel Xeon E5xx cpu, and 24gb of Ram. The VMs all seem to shutdown around the same time, It seems to happen after they have been running idle for a few hours, so I can't confirm if it's a hypervisor issue or a guest OS issue, but being that they all become 'stopped' around the same time leads me to believe that it's the hypervisor, but again they are identical images and I can't confirm that the Guest OSes aren't doing something that causes them to shutdown.

Basically, where do I start looking to figure out whats causing it? I've had mixed success with connecting to the Hyper-V box with various MMC snap-ins, but I have the HyperV manager and the services manager working (the device manager does not work).

Andrew
  • 101
  • 1
  • 4
  • 1
    Check the event viewer in a few guest VMs to see why they shut down and what/who initiated it. – xeon Aug 09 '13 at 04:32
  • Check the event logs of the Hyper-V host around the time of the shutdowns as well. – joeqwerty Aug 09 '13 at 04:41
  • Did the host reset at that time? Like from patching? ;) – TomTom Aug 09 '13 at 05:18
  • @tomtom, not sure, but I have HyperV configured to auto-start these VMs on boot – Andrew Aug 09 '13 at 05:46
  • This might be a stupid question but from your description it seems that you're doing Virtual Desktops -are you sure it's not your users shutting down the VMs ? – hyp Aug 09 '13 at 07:38
  • @hyp very sure since they are being used as selenium nodes rather then interactively – Andrew Aug 09 '13 at 12:05
  • @xeon, the guest VMs appear to have gotten a shutdown ACPI notification, so they aren't just crashing. It looks like HyperV is shutting them down. – Andrew Aug 09 '13 at 13:57

2 Answers2

8

Turned out that the VMs were coming up as expired, causing windows to shutdown after an hour. I executed slmgr -rearm, and they are good for another 30 days.

Andrew
  • 101
  • 1
  • 4
0

If your device manager console does not work, I'm getting the feeling you're running on a Hyper-V host with some major problems.

Trondh
  • 4,191
  • 23
  • 27
  • That may be the case, but googling around I think that Hyper-V 2012 specifically has device manager removed, and Microsoft expects WMI to be used instead, although I did find a lot of conflicting information. – Andrew Aug 09 '13 at 13:56