This is a super tricky situation, and I can understand the level of frustration. I've read all posts, and the information there looks reasonably accurate. From the VirtualBox perspective it is definitely the guest OS which requested the VM to be powered off, that much is clear. The guesses above about the ACPI origin is something I can't confirm. The message in VBox.log would be different, mentioning "S5 power state".
The request originates from the VirtualBox guest additions, there should be no other possibility to get the exact log message you're seeing. The riddle is why the guest makes the guest additions request the poweroff (which is passed through "VMMDev", the device used by the guest additions), and why it doesn't mention any trace of this in the Windows event log - just the aftermath on the next boot, that there was an unclean shutdown. There are two ways to get there, either by IRP_MJ_SHUTDOWN or by IRP_MJ_POWER (the latter with the PowerActionShutdown and PowerActionShutdownOff sub-types of minor function IRP_MN_SET_POWER). None of these should be triggered "by accident", as it's driver level stuff which normal code shouldn't be able to get near.
Have you tried updating guest additions, or if you have some reasonably new version tried running without? No idea how much usability hit you have to take, but without guest additions this exact issue should not be possible any more. If there is still some hiccup then there's a higher chance that Windows provides usable diagnostics, but we can't give guarantees.
Win7 guest powers off randomly
Re: Win7 guest powers off randomly
@klaus: Thank you for your informative response. Your suggestion to run without GA is indeed a great troubleshooting step. However, it's not practical for me to run that VM without GA long-term. I suppose I can clone the VM and run a separate instance with the GA removed for testing.
I'll also investigate further into the specific code paths from IRP_MJ_SHUTDOWN / IRP_MJ_POWER . I know there are extensive debugging tools available for VBox, I'm just unfamiliar with them, and the code. I'll see if I can isolate the event trigger. Wish this was a linux guest so I could easily script something up.
I'll also investigate further into the specific code paths from IRP_MJ_SHUTDOWN / IRP_MJ_POWER . I know there are extensive debugging tools available for VBox, I'm just unfamiliar with them, and the code. I'll see if I can isolate the event trigger. Wish this was a linux guest so I could easily script something up.
-
ColdFusion
- Posts: 1
- Joined: 3. May 2014, 01:34
Re: Win7 guest powers off randomly
I read this thread as I was experiencing some very similar mystery shut down and restarts. For me it turned out to be HP Laserjet drivers I installed for an older model in Win 7 32-bit guest in Windows Vista SP2 compatability mode. After I uninstalled and removed some registry entries from HP - things appear normal again.
Of course an errant software installation may not be the culprit behind this thread, but then again maybe it is - as a developer I know any and all info can potentially be useful.
BTW...it's been several months - any resolution??
Cheers
Of course an errant software installation may not be the culprit behind this thread, but then again maybe it is - as a developer I know any and all info can potentially be useful.
BTW...it's been several months - any resolution??
Cheers