Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1045069 - RFE: qemu:///session mode for root
RFE: qemu:///session mode for root
Status: NEW
Product: Virtualization Tools
Classification: Community
Component: libvirt (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Libvirt Maintainers
Depends On:
Blocks: 890291 TRACKER-bugs-affecting-libguestfs 1443955 1045033 1045040 1075300 1375157
  Show dependency treegraph
Reported: 2013-12-19 09:44 EST by Richard W.M. Jones
Modified: 2018-07-18 10:22 EDT (History)
11 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1045033
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Richard W.M. Jones 2013-12-19 09:44:20 EST
+++ 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.
Comment 1 Cole Robinson 2016-04-10 13:23:18 EDT
Still seems relevant: connecting to qemu:///session as root just silently connects to the system daemon it seems
Comment 2 Steve Kuznetsov 2016-10-13 14:44:32 EDT
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`.

Note You need to log in before you can comment on or make changes to this bug.