Page 1 of 1

VBoxHeadless hangs when stopping guest using ACPI.

Posted: 27. Nov 2012, 21:37
by ryan29
I have 3 identical virtual machines. Both the host and the guests are Debian 6. I have the machines grouped and run them in headless mode. When I shut down the whole group using ACPI shutdown, one of them will freeze. It's not always the same machine. When one hangs, the log stops at...

Code: Select all

00:00:52.062236 ************** End of Guest state at power off ***************
00:00:52.144376 PDMR3PowerOff: 82 099 155 ns run time
00:00:52.144412 Changing the VM state from 'POWERING_OFF' to 'OFF'.
On a successful shutdown, the log continues beyond that point with...

Code: Select all

00:00:52.450866 Console::powerDown(): A request to power off the VM has been issued (mMachineState=Stopping, InUninit=0)
00:00:52.453589 Changing the VM state from 'OFF' to 'DESTROYING'.
00:00:52.453589 ************************* Statistics *************************
I'm not really sure where to start since I have no clue what may be causing the problem. Any ideas?

Re: VBoxHeadless hangs when stopping guest using ACPI.

Posted: 14. Nov 2017, 12:42
by mwardm
I see exactly the same issue, non-headless. (Yep, I know this post is five years old but I've probably been having the issue that long, on both my current ThinkPad P50 and my previous ThinkPad W500. I can't swear the logs were exactly the same on the W500, but the symptoms were.)

It's just happened to me on attempting to shutdown from within a Windows 7 Guest running on a Windows 10 host. This is a more unusual scenario for me though - normally I attempt to save-the-machine-state of my VM, and VirtualBox hangs at the same point point. In fact, I experience the hang like 90% of the time or something. (I don't like rebooting. I tend to suspend my host laptop rather than shut it down ever. I only shutdown when Windows updates force me to or when my host machine is experiencing other problems that suggest a reboot is required. On the P50, I leave the VM running when I suspend my host. I'm wondering whether the power management is part of what's causing my issue, but the Guest (I only use this one guest VM) continues to run finely on host-power-resume - it's only hanging at Guest shutdown or resume that's an issue.)

I've tried searching to find out exactly what's supposed to happen after crUtil is unloaded to see if that'd give me any clues. However, with everybody posting logs all the time, searching for virtualbox and crutil yields rather a lot of noise.

In my logs the "OFF to DESTROYING" bit doesn't get its own fresh line (at least in 5.1.30 r118389 win.amd64, though I'm now on VM 5.2.0 r118431 win.amd64 for the failure - but this is a longstanding issue through many versions)

Tail of bad-shutdown log (5.2.0)

Code: Select all

97:05:47.723165 ************** End of Guest state at power off ***************
97:05:48.042216 PDMR3PowerOff: 319 035 216 ns run time
97:05:48.042301 Changing the VM state from 'POWERING_OFF' to 'OFF'
97:05:48.042944 Console: Machine state changed to 'Stopping'
97:05:48.043872 Console::powerDown(): A request to power off the VM has been issued (mMachineState=Stopping, InUninit=0)
97:05:48.043908 Display::handleDisplayResize: uScreenId=0 pvVRAM=0000000015f50000 w=1920 h=975 bpp=32 cbLine=0x1E00 flags=0x1
97:05:48.043970 GUI: UIFrameBufferPrivate::NotifyChange: Screen=0, Origin=0x0, Size=1920x975, Sending to async-handler
97:05:48.045014 GUI: UIMachineView::sltHandleNotifyChange: Screen=0, Size=1920x975
97:05:48.242466 crUtil DLL unloaded.
Same section of good-shutdown log (from 5.1.30)

Code: Select all

154:09:26.485993 ************** End of Guest state at power off ***************
154:09:26.560476 PDMR3PowerOff: 74 466 760 ns run time
154:09:26.560850 Changing the VM state from 'POWERING_OFF' to 'OFF'
154:09:26.563185 Console: Machine state changed to 'Stopping'
154:09:26.563639 Console::powerDown(): A request to power off the VM has been issued (mMachineState=Stopping, InUninit=0)
154:09:26.563654 Display::handleDisplayResize: uScreenId=0 pvVRAM=0000000014620000 w=1920 h=1200 bpp=32 cbLine=0x1E00 flags=0x1
154:09:26.563858 GUI: UIFrameBufferPrivate::NotifyChange: Screen=0, Origin=0x0, Size=1920x1200, Sending to async-handler
154:09:26.564018 GUI: UIMachineView::sltHandleNotifyChange: Screen=0, Size=1920x1200
154:09:26.767049 crUtil DLL unloaded.Changing the VM state from 'OFF' to 'DESTROYING'
154:09:26.769699 ************************* Statistics *************************
...and more.

Any insight appreciated - it's be nice to be able to suspend my machine reliably when I do need to reboot!

Re: VBoxHeadless hangs when stopping guest using ACPI.

Posted: 14. Nov 2017, 12:59
by mpack
"Me too" messages in long dead topics are always ignored, particularly when the first sentence explains that the conditions are different. Locking this topic.

Please start your own topic, describe the problem properly, and provide a complete log as a zipped attachment.