virt-manager is not recognizing libvirtd service

  • Done
  • quality assurance status badge
Details
4 participants
  • Brett Gilio
  • calcium
  • Efraim Flashner
  • Maxim Cournoyer
Owner
unassigned
Submitted by
Brett Gilio
Severity
normal
B
B
Brett Gilio wrote on 22 Feb 2019 06:06
(name . bug-guix@gnu.org)(address . bug-guix@gnu.org)
87bm34jtsd.fsf@posteo.net
Hi all,

I am having an issue using virt-manager on GuixSD. I have libvirt and
virt-manager installed, and am starting the libvirtd service using my
configuration file. However, regardless of whether or not I start
virt-manager as root or normal privileges, I am getting a "checking for
virtualization packages..." note with an error of "No active connection
to install on." libvirtd and virtlogd are properly started as far as I
can tell by queurying the herd. Here is my relevant configuration.

(users (cons (user-account
(name "brettg")
(comment "Brett Gilio")
(group "users")
(supplementary-groups '("wheel" "netdev"
"audio" "video"
"libvirt"))
(home-directory "/home/brettg"))
%base-user-accounts))


(packages (cons* nss-certs ;for HTTPS access
gvfs ;for user mounts
libvirt
%base-packages))

(services (cons* (service gnome-desktop-service-type
(gnome-desktop-configuration
(inherit config)
(gnome-package gnome-custom)))
(service libvirt-service-type)
(service virtlog-service-type)
(service gdm-service-type)
(filter (lambda (x)
(not (eq? (service-kind x) slim-service-type)))
%desktop-services)))
B
B
brettg@posteo.net wrote on 22 Feb 2019 23:57
(address . 34611@debbugs.gnu.org)
ulhbmr9i4jm3ams9n3c8s1qa.1550876218030@email.lge.com
It also might be useful to make a tutorial on setting up other distros in a virtual machine using guixsdSent from my Sprint Phone.------ Original message------From: Brett GilioDate: Thu, Feb 21, 2019 11:08 PMTo: 34611@debbugs.gnu.org;Cc: Subject:bug#34611: virt-manager is not recognizing libvirtd serviceHi all,

I am having an issue using virt-manager on GuixSD. I have libvirt and
virt-manager installed, and am starting the libvirtd service using my
configuration file. However, regardless of whether or not I start
virt-manager as root or normal privileges, I am getting a "checking for
virtualization packages..." note with an error of "No active connection
to install on." libvirtd and virtlogd are properly started as far as I
can tell by queurying the herd. Here is my relevant configuration.

(users (cons (user-account
(name "brettg")
(comment "Brett Gilio")
(group "users")
(supplementary-groups '("wheel" "netdev"
"audio" "video"
"libvirt"))
(home-directory "/home/brettg"))
%base-user-accounts))


(packages (cons* nss-certs ;for HTTPS access
gvfs ;for user mounts
libvirt
%base-packages))

(services (cons* (service gnome-desktop-service-type
(gnome-desktop-configuration
(inherit config)
(gnome-package gnome-custom)))
(service libvirt-service-type)
(service virtlog-service-type)
(service gdm-service-type)
(filter (lambda (x)
(not (eq? (service-kind x) slim-service-type)))
%desktop-services)))
Attachment: file
E
E
Efraim Flashner wrote on 30 Mar 2019 20:46
(name . Brett Gilio)(address . brettg@posteo.net)(address . 34611@debbugs.gnu.org)
20190330194616.GA21029@macbook41
On Thu, Feb 21, 2019 at 11:06:58PM -0600, Brett Gilio wrote:
Toggle quote (11 lines)
> Hi all,
>
> I am having an issue using virt-manager on GuixSD. I have libvirt and
> virt-manager installed, and am starting the libvirtd service using my
> configuration file. However, regardless of whether or not I start
> virt-manager as root or normal privileges, I am getting a "checking for
> virtualization packages..." note with an error of "No active connection
> to install on." libvirtd and virtlogd are properly started as far as I
> can tell by queurying the herd. Here is my relevant configuration.
>

I've been having this issue as well on my machine. I'm pretty sure it's
more a case of virt-manager not saving the qemu locations; when I add a
new location of "this machine" suddenly all the VMs from my machine
repopulate. Then when I close it an open it again I get the same
behavior.

--
Efraim Flashner <efraim@flashner.co.il> ????? ?????
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlyfx4MACgkQQarn3Mo9
g1GHpBAAhEc3wXfzYJ0vuOW1GS5PxSFFiS7RMW7JiIDCVIU3sEsM66/Xjj/eT0x2
uxrcXXVmHie5syJlvND3Bu6tlctbc4NUfO3qW/UboQEHeoP0bkq8jwmxyx2XSfvW
TPO+gKpFspVhzdvxPLK5tdd8yUDtJHaW5wW1XTCCx2Pp3w3jY4wC08k3cqJgrih4
Biziqz1a6PBdkQpTm4zZ0hA7RTFZhN9ztso+g3tRMEYdNUcLlwNoMPzuRpCAZptU
fMjUVg5GtRwkv/7IGmI2FsAbFE9HfmBm/VC0hA0yUt029S0rhUzob0HekfIdLAtO
752+gzKlWwcXrDFM76Llp+MM7QMFo0D5IOZnymK8iuqDW7NZrqvrNMrHGgBdBtXq
vynFgyyRvkqyLo0JG0d1TKMbObWL29CiN1mp59+OIortzOd8bVx6y55kvm+0gE5C
UTjYQbJXIROkbVQuoR/sC8djiq5v5YvXuRGM1mOjsUl4oVWDG7ebT6RRyEBJ83wq
cjR0Bj+zaDQfqGNz5S1COWWbJRyWdNzEBqgU/0bJl5UxQQmzCp4Vo0cR0tWpRLcN
wHc5jJ2n+kJ+v/vSpqpSztcRdgcwG+rxBV3RF1x473Tiq451sc1Bkt3QE8yHmv9o
jLY1gxaJ6YzcY7x0fMREFswCXP0ntov3DKqeOu07KvAiXx6W1Ng=
=0tcD
-----END PGP SIGNATURE-----


C
C
calcium wrote on 5 Jan 2022 19:42
virt-manager is not recognizing libvirtd service
(address . 34611@debbugs.gnu.org)
541b1f8b-72b1-26ae-ce1d-49ed7b97cb95@disroot.org
Same problem still present as of start of 2022. Virt-manager can't connect to libvirt service


...

(users ...
(supplementary-groups '("kvm" ...)
...)


(services ...
(service libvirt-service-type (libvirt-configuartion (unix-sock-group "kvm")))
...)

...
M
M
Maxim Cournoyer wrote on 30 Dec 2023 05:12
(name . calcium)(address . calcium@disroot.org)
875y0gs4zv.fsf@gmail.com
Hello,

calcium <calcium@disroot.org> writes:

Toggle quote (16 lines)
> Same problem still present as of start of 2022. Virt-manager can't connect to libvirt service
>
>
> ...
>
> (users ...
> (supplementary-groups '("kvm" ...)
> ...)
>
>
> (services ...
> (service libvirt-service-type (libvirt-configuartion (unix-sock-group "kvm")))
> ...)
>
> ...

Does it work when you run virt-manager as root? My configuration looks
like:

Toggle snippet (12 lines)
(users ...
(supplementary-groups '("libvirt" ...))
...)

[...]

(services ...)
(service libvirt-service-type
(libvirt-configuration
(unix-sock-group "libvirt")))

And virt-manager is able to connect as my unprivileged user.

--
Thanks,
Maxim
M
M
Maxim Cournoyer wrote on 30 Dec 2023 06:30
(name . calcium)(address . calcium@disroot.org)(address . 34611-done@debbugs.gnu.org)
87tto0qmtw.fsf@gmail.com
Hi,

See commit 4dc17cd54e86dbd71d26b87138660d42e8f615a9 ("services: libvirt:
Change unix-sock-group default.") which changed the group from "root" to
"libvirt".

It should now work without configuring the unix-sock-group, assuming
you're user is part of the 'libvirt' supplementary group. I've
clarified the doc about this in b69bdcf77f.

Closing.

--
Thanks,
Maxim
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 34611@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 34611
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch