[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [vfio-users] Preventing host from going into sleep

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 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.

Samuel Holland <samuel sholland org>

vfio-users mailing list
vfio-users redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]