Virt-manager returns an error

12 respuestas [Último envío]
GNUbahn
Desconectado/a
se unió: 02/19/2016

I have only little experience with VM's. But since installing virt-manager includes the necessary packages for qemu, kvm etc. it has become quite easy. At least the installation part. Now I am struggling to connect to qemu. I know I have succeeded before, but now I am stuck.

I can open virt-manager, but when trying to connect, I get an "Error with connecting to virtual machine manager" (my translation from Danish). This is followed by "Unable to connect to libvirt qemu:///system. Verify that the 'libvirtd' daemon is running." (in English).

I have found various reports of this error message, but the solutions vary and I do not understand them.

What could cause this problem?

Avron

I am a translator!

Desconectado/a
se unió: 08/18/2020

Is the libvirt-daemon-system package installed?

GNUbahn
Desconectado/a
se unió: 02/19/2016

Yes

eric23
Desconectado/a
se unió: 06/30/2017

I had to add libvirt to my user's group list in order to get virtualization to work. I wonder if that was a good idea after all.

eric23
Desconectado/a
se unió: 06/30/2017

The installation process already did some jobs for you, like adding the user to the "libvirt" group and bridging the network interface, so now you are ready to start installing your virtual machine.

Except in my case a while back I think it did not add my user to the group "libvirt".

You can check to see if your user has this added this group by opening a terminal and using the id username command, where you replace username with yours.

Zoma
Desconectado/a
se unió: 11/05/2024

This sounds very familiar to me. Back when I used debian based distros including Trisquel as my main OS, virt-manager didn't work right off the bat.

I remember vaguely doing just that to get it to work.

GNUbahn
Desconectado/a
se unió: 02/19/2016

About half a year ago or so I installed virt-manager on trisquel (T11/Aramo) and crated a perfectly running VM through it.

With your words, it worked right off the bat.

But now it doesn't.

Zoma
Desconectado/a
se unió: 11/05/2024

No I didn't say it worked right off the bat, at least not in that paragraph for sure.

virtualbox was a different story, but that software has since been proven to be proprietary for a long time. IE, it has always required the non-free watcom compiler

As for virt-manager, that requires your user to be added to libvirt.

It has for me always unfortunately

GNUbahn
Desconectado/a
se unió: 02/19/2016

Sorry, I meant that earlier, when I tried, it worked right off the bat.
This time it did not, but my user was - and had to be - added til libvirt, just as you stated.
It turned out, that I just had to reboot (or perhaps logging out and in again would have been enough).
Thanks for participating.

Zoma
Desconectado/a
se unió: 11/05/2024

No problem, just giving what I knew.

There is a qemu user session option, I used that mostly when I used virt-manager.

GNUbahn
Desconectado/a
se unió: 02/19/2016

Looks like it is:

$ id jbw
uid=1001(jbw) gid=1001(jbw) grupper=1001(jbw),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),100(users),111(lpadmin),120(sambashare),125(libvirt)

Ark74

I am a member!

I am a translator!

Desconectado/a
se unió: 07/15/2009

Have you tried closing the session and login back in?

GNUbahn
Desconectado/a
se unió: 02/19/2016