You are not logged in.
In the archwiki I stumbled on https://wiki.archlinux.org/index.php/In … _qemu_hook
the notes tell
If you use libvirt user session, you need to tweak the script to use privilege escalation commands, such as pkexec or a no-password sudo
I want to use a user session, but how am I able to run the hooks exactly? I have no idea about pkexec or no-password sudo. At least I don't wan't to make sudo password-less because of possible security issues.
What if my user is a member of the group libvirt? Would I still need to "tweak the script"?
Last edited by equalizer876 (2021-01-22 20:22:34)
Offline
I would suspect so as "/sys/bus/pci/devices/$GVT_PCI/mdev_supported_types/$MDEV_TYPE/create" and "/sys/bus/pci/devices/$GVT_PCI/$GVT_GUID/remove" are probably only writeable by root.
You might be able to use a udev rule to change the permissions on those files to group libvirt.
Otherwise see the passwordless example from Sudo#Example_entries to make sudo passwordless for only those commands.
Offline