Use QEMU_USER and QEMU_GROUP, that are passed to libvirt at configure-time, as values for "hv_user" and "hv_group" in the guest capabilities. Signed-off-by: Giuseppe Scrivano <gscrivan@xxxxxxxxxx> --- src/qemu/qemu_capabilities.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index ffbede7..d536554 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -749,6 +749,9 @@ virQEMUCapsInitGuest(virCapsPtr caps, machines)) == NULL) goto error; + if (virCapabilitiesSetHvUserAndGroup(guest, QEMU_USER, QEMU_GROUP) < 0) + goto error; + machines = NULL; nmachines = 0; -- 1.8.3.1 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list