Bug 873799
Summary: | RFE: Have virt-manager register a simple polkit agent if none is detected at runtime | ||
---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Mads Kiilerich <mads> |
Component: | virt-manager | Assignee: | Cole Robinson <crobinso> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | berrange, crobinso, dennisml, djschaap, hbrock, jforbes, rbalakri, virt-maint |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-03-29 17:33:38 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Mads Kiilerich
2012-11-06 18:24:13 UTC
I've sent a patch to libvirt to preface the error with 'polkit:' which hopefully gives a bit more of a hint about what's going on: https://www.redhat.com/archives/libvir-list/2012-December/msg00976.html That error is coming straight from pkcheck though. The error means that polkit needs a password, but there is no polkit agent registered in your session. Polkit agents are the bit of UI that pop up and actually ask for your password. When you log in over ssh -X, nothing is autolaunching an agent like gnome-session does for example. virt-manager could probably check to see if an agent is registered and if not register its own simple one, but this problem affects any polkit using app that is run over ssh -X. However I doubt the polkit devs will be interested in making this work since the main usecase is for people sitting at the physical machine. I know quite a few people try to use virt-manager over ssh, probably more than any other polkit using app. I'll use this bug to track the virt-manager specific fix. *** Bug 1004775 has been marked as a duplicate of this bug. *** Note, here's a libvirt bug tracking roughly the same thing for virsh: https://bugzilla.redhat.com/show_bug.cgi?id=872166 And a closed virt-manager bug that's kinda related: https://bugzilla.redhat.com/show_bug.cgi?id=984092 Libvirt fixed this with patches here: https://www.redhat.com/archives/libvir-list/2016-February/msg00657.html Which could be inspiration for virt-manager support Modern libvirt ships with a simple way to skip polkit password prompts: add your user to the 'libvirt' group. See: http://blog.wikichoon.com/2016/01/polkit-password-less-access-for-libvirt.html So that gives a supported way to avoid polkit handling. I'm fine pointing users to that option if they hit the root issue here, and saves us some virt-manager code that will only be used very rarely |