#833866 please consider adding an option to suspend/resume all domains

Package:
libvirt-daemon
Source:
libvirt
Description:
Virtualization daemon
Submitter:
Marc Haber
Date:
2024-12-19 17:36:03 UTC
Severity:
wishlist
Tags:
#833866#5
Date:
2016-08-09 15:51:10 UTC
From:
To:
Hi,

the script /usr/lib/libvirt/libvirt-guests.sh is used to shut down or
suspend domains when the host goes down. This works like a charm.

However, currently, KVM has the issue that the host going to _sleep_
sometimes affects the running domains: It sometimes happens that the
domains become unresponsive CPU-hogs. I think that it might help to
suspend the KVM domains before the host sleeps. systemd provides a
mechanism to do that by means of /lib/systemd/system-sleep/.

/usr/lib/libvirt/libvirt-guests.sh contains most of the code needed to
suspend all running domains, but it doesn't expose those mechanisms to
the public.

Please consider adding a "suspend" and a "resume" option to
/usr/lib/libvirt/libvirt-guests.sh that applies the respective
operation to all domains even if the selected shutdown operation is
"shutdown".

I am willing to provide a patch if you indicate that you would accept
it.

Thanks for your consideration.

Greetings
Marc

#833866#10
Date:
2016-08-09 17:08:26 UTC
From:
To:
It would make sense to propose this upstream. If it goes in there I'm
happy to apply it and the libvir-list@redhat.com folks are very friendly
people.

Cheers,
 -- Guido

#833866#15
Date:
2016-08-28 15:55:33 UTC
From:
To:
tags #833866 upstream
forwarded #833866 https://bugzilla.redhat.com/show_bug.cgi?id=1370936
thanks

As requested, I forwarded this upstream.

If upstream accepts it, you don't need to apply it. I think you know
that.

Greetings
Marc