On host sleep, Ubuntu VM restarts

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Oz91
Posts: 1
Joined: 5. Sep 2020, 02:04

On host sleep, Ubuntu VM restarts

Post by Oz91 »

Hi I am running Ubuntu 18.04 on a Windows host with the latest build of VirtualBox.

Almost every time my laptop goes to sleep, my VM will restart back to the Ubuntu login screen (i.e. the machine seems to restart, all open applications are shut down and quite a few times now I have lost my work). I have no idea how to fix this, any suggestions appreciated.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: On host sleep, Ubuntu VM restarts

Post by scottgus1 »

Just to let you know, we aren't ignoring this. The forum is supported by volunteer free Virtualbox users, and folks have to hope a user who knows how to solve the problem comes along.

Unfortunately I don't know how to solve this one.
fth0
Volunteer
Posts: 5690
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: On host sleep, Ubuntu VM restarts

Post by fth0 »

Oz91 wrote:I have no idea how to fix this, any suggestions appreciated.
Well, a simple workaround would be to prevent the laptop from going to sleep while the VM is running. For example, if you configure the laptop to go to sleep after <n> minutes, and shut down the guest OS before taking a break of more than <n> minutes, then the problem shouldn't occur.

If you want somebody to take a look, reproduce the problem, and provide a ZIP file containing VBox.log and VBox.log.1.
patbob314
Posts: 1
Joined: 6. May 2022, 22:25

Re: On host sleep, Ubuntu VM restarts

Post by patbob314 »

I'm not the OP, but am having the same problem. Here's a zip of the logs from when it fails on my machine.
Attachments
VboxLogs_UbuntuRestartOnHostSleep.zip
(76.25 KiB) Downloaded 4 times
Post Reply