Bug 28171 - Cannot connect to remote libvirt as a normal user
Summary: Cannot connect to remote libvirt as a normal user
Status: REOPENED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard: MGA8TOO?
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-20 00:00 CET by Muhammad Tailounie
Modified: 2021-11-02 14:18 CET (History)
0 users

See Also:
Source RPM: libvirt-5.5.0-1.3.mga7.src.rpm
CVE:
Status comment:


Attachments

Description Muhammad Tailounie 2021-01-20 00:00:26 CET
Hi;

If I try to connect to a remote libvirt server using virt-manager, I get the following error:

authentication unavailable: no polkit agent available to authenticate action 'org.libvirt.unix.manage'
End of file while reading data: Input/output error

Trying to figure out, what is wrong, I noticed that we do not have libvirt group in Mageia.

If I modify /usr/share/polkit-1/rules.d/50-libvirt.rules replacing libvirt with kvm, and add the user to the kvm group, the problem is solved.

If this is wrong, please correct me.
Comment 1 Lewis Smith 2021-01-20 20:30:50 CET
Thank you for the report, and your diagnosis.
It does look like a packaging issue; and I suspect applies to Mageia 8 too.

The file /usr/share/polkit-1/rules.d/50-libvirt.rules is provided by package libvirt-utils in SRPM libvirt.

This has no regular maintainer, so assigning the bug to all packagers.

Assignee: bugsquad => pkg-bugs
Source RPM: (none) => libvirt-5.5.0-1.3.mga7.src.rpm
Whiteboard: (none) => MGA8TOO?

Comment 2 Muhammad Tailounie 2021-01-20 23:38:11 CET
I would love to be a packager, but I really tried my best to understand how it works. I could not find the right documentation or a learning path, even though I am still trying on my own.

That said, I would love to be able to maintain this package and many others for Mageia, but I am aware of my limits.

Hopefully someone can modify the /usr/share/polkit-1/rules.d/50-libvirt.rules for M8 before it is officially out.

On the other hand, I would suggest a Workarounds Wiki page for problems like this in Mageia. I might start one soon.
Comment 3 Aurelien Oudelet 2021-07-06 13:17:01 CEST
Mageia 7 is EOL since July 1st 2021.
There will not have any further bugfix for this release.

You are encouraged to upgrade to Mageia 8 as soon as possible.

@reporter, if this bug still apply with Mageia 8, please let us know it.

@packager, if you work on the Mageia 7 version of your package, please check the Mageia 8 package if issue is also present. In this case, please fix the Mageia 8 version instead.

This bug report will be closed OLD if there is no further notice within 1st September 2021.
Comment 4 Marja Van Waes 2021-09-07 14:09:52 CEST
Hi bug reporter and hi assignee and others involved,

Please reopen this bug report if it is still valid for Mageia 8 or 9(cauldron), and change "Version:" in the upper left of this report accordingly.

This report is being closed as OLD because it was filed against Mageia 7, for which  support ended on June 30th 2021.

Thanks,
Marja

Resolution: (none) => OLD
Status: NEW => RESOLVED

Comment 5 Muhammad Tailounie 2021-11-02 14:18:33 CET
Unfortunately it is still valid for M8. Haven't tested it on M9 yet

Status: RESOLVED => REOPENED
Resolution: OLD => (none)


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