[vfio-users] Preventing host from going into sleep

Colin Godsey crgodsey at gmail.com
Sun Jul 3 20:04:39 UTC 2016


Ah, damn me for not checking my email! Will post scripts tomorrow for the
auto-suspend functionality.

On Sun, Jul 3, 2016, 2:07 AM Nicolas Roy-Renaud <
nicolas.roy-renaud.1 at ens.etsmtl.ca> wrote:

> As it turns out, it's not just about permissions; doing anything too
> complex in the wrapper script can interfere with the way libvirt manages
> qemu VMs and make it unable to shut them down properly (whether that's
> due to signal propagation in bash scripts or arguments being altered in
> some way). Since there doesn't seem to be any kind of mechanism to
> inhibit sleep on the host side when theVM is running, though, I might
> check on libvirt's mailing lists to see if such a thing could be
> implemented.
>
> -Nicolas
>
>
> On 2016-06-22 02:00, Samuel Holland wrote:
> > On 06/22/2016 12:01 AM, Nicolas Roy-Renaud wrote:
> >> By the looks of it, I can't write a wrapper script for qemu-system
> >> either since libvirt doesn't launch it with the same capabilities as
> >> a regular user, and the dbus calls coming from sysd-inhibit fail.
> >
> > You should be able to change the permissions to the dbus interface so
> > that you can call it from a wrapper.
> >
> > --
> > Regards,
> > Samuel Holland <samuel at sholland.org>
>
> _______________________________________________
> vfio-users mailing list
> vfio-users at redhat.com
> https://www.redhat.com/mailman/listinfo/vfio-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20160703/bcff444f/attachment.htm>


More information about the vfio-users mailing list