+++ 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`.