I have built the latest libvirt repo. But I am unable to connect to libvirtd using virsh command in Ubuntu 22.04. I think it is trying to connect to Modular driver daemons instead of monolithic libvirtd. The error is Failed to connect socket to '/var/run/libvirt/virtqemud-sock': No such file or directory How to resolve this?
2 Answers
The issue is resolved by adding mode = "legacy" to the /etc/libvirt/libvirt.conf and restarting libvirtd service.
systemctl status libvirtd(or/etc/init.d/libvirtd statusor evenps -C libvirtdif you're not using systemd). BTW, what do you mean by "trying to connect to modular driver daemons instead of monolithic libvirtd"? That doesn't make any sense. Finally, why build libvirt? It's already packaged for Ubuntu, building it yourself is just pointlessly making things difficult...especially if your lack of knowledge about libvirt leads you to make up weird stuff like "Modular driver daemons" as if that's somehow relevant to libvirt.