Virt-manager returns an error
- Inicie sesión o regístrese para enviar comentarios
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?
Is the libvirt-daemon-system package installed?
Yes
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.
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.
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.
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.
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
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.
No problem, just giving what I knew.
There is a qemu user session option, I used that mostly when I used virt-manager.
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)
Have you tried closing the session and login back in?
Now I have: https://trisquel.info/en/forum/virt-manager-returns-error#comment-182402
With success. Thanks.

