You are not logged in.

#1 2021-01-22 20:18:38

equalizer876
Member
Registered: 2018-09-11
Posts: 79

Intel GVT-g (more 3D performance on libvirt)

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

#2 2021-01-22 20:55:52

loqs
Member
Registered: 2014-03-06
Posts: 18,919

Re: Intel GVT-g (more 3D performance on libvirt)

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

Board footer

Powered by FluxBB