[vfio-users] Preventing host from going into sleep

Will Marler will at wmarler.com
Wed Jun 22 16:04:22 UTC 2016


Colin, mind posting a pastebin/github link to your script? I want your
functionality without doing any work :-D

On Wed, Jun 22, 2016 at 8:01 AM, Colin Godsey <crgodsey at gmail.com> wrote:

> I eventually just set up a script that looks for active qemu/kvm instances
> every 15 minutes. I set up the guests to hibernate, because for some reason
> the… ‘double sleeping’ of the guest and host seem to put the GPUs in a
> weird state when it wakes. After this, I just have a systemd hook for
> suspend/resume that fires the instances back up when the host wakes.
>
> It actually works pretty flawlessly in the end. I probably sleep/unsleep
> the thing a few times a day with no lockups or issues at all, I just have
> to make sure i never manually suspend it.
>
> On Wed, Jun 22, 2016 at 1:01 AM Samuel Holland <samuel at sholland.org>
> 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
>>
>
> _______________________________________________
> 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/20160622/a211ae21/attachment.htm>


More information about the vfio-users mailing list