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 <sam...@sholland.org>

_______________________________________________
vfio-users mailing list
vfio-users@redhat.com
https://www.redhat.com/mailman/listinfo/vfio-users

Reply via email to