Virtualbox shutdown overnight without me asking it to

Discussions related to using VirtualBox on Linux hosts.
Post Reply
gtisi
Posts: 1
Joined: 30. Sep 2022, 09:24

Virtualbox shutdown overnight without me asking it to

Post by gtisi »

Hi All, new to virtualbox so please don't assume any knowledge on my part.
Running Ubuntu 22.04.01LTS host with Virtualbox 6.1.38.

I have one VM I need to run 24x7 but vitrtualbox seems to crash every night. In the morning I see the VM state as ABORTED. The main ubuntu OS doesn't appear to have anything in the logs but happy to check further if you can suggest where.

I can see the following in the Virtualbox logs which seems to be interesting but I cannot understand what is causing this activity. Also this appears to be somewhat of a graceful shutdown so unsure why the machine state is ABORTED so the following logs may be a red herring.

00:48:23.205035 GUI: Machine-window #0 deactivated
00:48:23.205110 GUI: Releasing mouse on focus out
00:48:23.205122 GUI: Releasing keyboard on focus out
00:48:23.205547 GUI: Machine-view #0 unfocused, reason=3
00:48:31.596451 GUI: UIMediumEnumerator: Medium-enumeration finished!
00:48:56.294165 Changing the VM state from 'RUNNING' to 'SUSPENDING'
00:48:56.297668 AIOMgr: Endpoint for file '/home/simon/Downloads/haos_ova-8.5.vdi' (flags 000c0781) created successfully
00:48:56.343613 PDMR3Suspend: 49 336 295 ns run time
00:48:56.343678 Changing the VM state from 'SUSPENDING' to 'SUSPENDED'
00:48:56.343706 Console: Machine state changed to 'Paused'
00:48:56.382729 GUI: Releasing keyboard on pause/stuck
00:48:56.383600 GUI: Releasing mouse on pause/stuck
00:49:00.051093 GUI: Request for close-action to power VM off.
00:49:00.051150 GUI: Passing request to power VM off from machine-logic to UI session.
00:49:00.051162 GUI: Powering VM down on UI session power off request...
00:49:00.052134 Console: Machine state changed to 'Stopping'
00:49:00.054822 Console::powerDown(): A request to power off the VM has been issued (mMachineState=Stopping, InUninit=0)
00:49:00.060003 Changing the VM state from 'SUSPENDED' to 'POWERING_OFF'

Please can anyone suggest next line of investigation?
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Virtualbox shutdown overnight without me asking it to

Post by scottgus1 »

A VM might be killed unceremoniously if the host logs out or goes to power save mode.
gtisi wrote:00:49:00.054822 Console::powerDown(): A request to power off the VM has been issued (mMachineState=Stopping, InUninit=0)
Notice the time stamp on this line. It means that the VM was turned off 49 minutes after it was started. Find out what the host did 49 minutes after the VM was started.

You may be able to extrapolate the VM's start time, if you did not directly write it down at the time you started it, by comparing the time stamp when the shutdown is ordered to the second line in the log, example given:
00:00:07.736515 Log opened 2022-08-28T01:30:24.839060000Z
This is the start time of the VM in UTC time. Add or subtract your time zone and Daylight Savings Time settings to adjust the timestamp to your system time.
Post Reply