Bug 2180047 - Virtual machines automatically suspend, but can't be resumed
Summary: Virtual machines automatically suspend, but can't be resumed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-settings-daemon
Version: 38
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Felipe Borges
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: AcceptedBlocker
Depends On:
Blocks: F38FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2023-03-20 15:46 UTC by Kamil Páral
Modified: 2023-04-19 15:49 UTC (History)
13 users (show)

Fixed In Version: gnome-settings-daemon-44.0-2.fc38
Clone Of:
Environment:
Last Closed: 2023-03-24 02:03:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Gitlab GNOME gnome-settings-daemon issues 736 0 None opened Automatic suspend also suspends virtual machines, can't be resumed 2023-03-20 15:46:09 UTC

Description Kamil Páral 2023-03-20 15:46:09 UTC
Please see:
https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/issues/736

I imagine this could either be solved in GNOME or in libvirt.

Proposing for a blocker discussion. When you leave your VM unattended for a while and then can't work with it anymore, and all your unsaved work is gone, it's not a great experience.

Comment 1 Kamil Páral 2023-03-20 15:47:51 UTC
More people complained about this here:
https://discussion.fedoraproject.org/t/power-saving-options-automatic-supsend-is-on-please-change-to-off/79670

Comment 2 Adam Williamson 2023-03-20 23:47:40 UTC
Discussed at 2023-03-20 blocker review meeting: https://meetbot-raw.fedoraproject.org/fedora-blocker-review/2023-03-20/f38-blocker-review.2023-03-20-16.00.html . We agreed to accept this as a blocker as a violation of Beta criterion "The release must be able host virtual guest instances of the same release", on the basis that VMs which auto-suspend after 20 minutes and cannot be resumed are not really working.

Comment 3 Felipe Borges 2023-03-21 10:59:00 UTC
While https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/merge_requests/325 fixes the issue with auto-suspending by preventing auto-suspension in VM environments, there's still the issue with manual suspension.

If you manually click Suspend on your VM, you won't be able to resume from suspend.

That's something that gnome-boxes and virt-manager should fix by monitoring the suspend state in libvirt and calling resume (either automatically, clicking a button, or by detecting input events on the display widget). See virDomainSuspend() and virDomainResume().

Comment 4 Kamil Páral 2023-03-21 11:51:46 UTC
(In reply to Felipe Borges from comment #3)
> While
> https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/merge_requests/325
> fixes the issue with auto-suspending by preventing auto-suspension in VM
> environments, 

This is sufficient for resolving the blocker status.

> If you manually click Suspend on your VM, you won't be able to resume from
> suspend.
> 
> That's something that gnome-boxes and virt-manager should fix by monitoring

Do you want me to file a bug against those two projects?

Comment 5 Fedora Update System 2023-03-22 23:25:40 UTC
FEDORA-2023-26137c2392 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-26137c2392

Comment 6 Fedora Update System 2023-03-23 02:56:38 UTC
FEDORA-2023-26137c2392 has been pushed to the Fedora 38 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-26137c2392

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Kamil Páral 2023-03-23 10:14:30 UTC
(In reply to Fedora Update System from comment #5)
> FEDORA-2023-26137c2392 has been submitted as an update to Fedora 38.
> https://bodhi.fedoraproject.org/updates/FEDORA-2023-26137c2392

Fixed.

Comment 8 Fedora Update System 2023-03-24 02:03:43 UTC
FEDORA-2023-26137c2392 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.