+++ This bug was initially created as a clone of Bug #1045033 +++
For context, see:
Libvirt doesn't offer session connections for root.
However people using libguestfs expect session-like
behaviour, even when they are doing stuff as root. That
- not polluting the system namespace with transient guests
- running qemu as root, not as qemu.qemu (see bug 1045040)
Therefore it would be good for libvirt to do the right
thing when given a qemu:///session URI when the client is
running as root.
Still seems relevant: connecting to qemu:///session as root just silently connects to the system daemon it seems
Fiddling with permissions to make tools like virt-sysprep happy is frustrating, especially when the actions on the system are done with a framework like Ansible and therefore only ever using one user. It is surprising that the single user that ever interacted with the images, etc, has permissions issues since libvirt chooses to interact with images as user `qemu`.
Thank you for reporting this issue to the libvirt project. Unfortunately we have been unable to resolve this issue due to insufficient maintainer capacity and it will now be closed. This is not a reflection on the possible validity of the issue, merely the lack of resources to investigate and address it, for which we apologise. If you none the less feel the issue is still important, you may choose to report it again at the new project issue tracker https://gitlab.com/libvirt/libvirt/-/issues The project also welcomes contribution from anyone who believes they can provide a solution.