virt-manager cannot connect to virtqemud-sock, Slackware-15.0-x86_64 (the current version)
This is a reposting from Slackware-install, where I posted a week ago, but haven't got any replies.
I'm trying to get qemu,libvirtd,virt-manager working on the current version of Slackware (15.0). I've had the virtualisation with equivalent setup working on the previous version of Slackware (14.2) for several years now. I built my setup from the source files and build scripts supplied with Slackware. All completed without errors.
On starting virt-manager, I get in the virt-manager window
QEMU/KVM - Not Connected
(I get the same result if I use the prebuilt qemu-6.2.0-x86_64-1alien.txz,
rather than the Slackbuild one. I couldn't find an alienBob prebuilt libvirt or virt-manager.)
To identify the problem I did
# virsh -c qemu:///system
error: failed to connect to the hypervisor
error: Failed to connect socket to '/var/run/libvirt/virtqemud-sock': No such file or directory
There are only a few mentions of missing virtqemud-sock found with search engines. The ones that were solved were solved by installing a package (forget what,but it's not in Slackware) and (re)starting libvirtd-srv with systemd (Slackware doesn't have systemd).
either there's no virtqemud-sock in Slackware-15.0 or virt-manager shouldn't be asking for it.
I find there's no virtqemud-sock open on my machine (there was none in 14.2 either)
# ls -alF /var/run/libvirt
total 12
drwxr-xr-x 14 root root 480 Jun 14 13:22 ./
drwxr-xr-x 13 root root 720 Jun 14 13:01 ../
drwx------ 2 root root 60 Jun 14 11:45 common/
drwxr-xr-x 2 root root 40 Jun 14 11:45 hostdevmgr/
drwx------ 2 root root 60 Jun 14 13:22 interface/
srwx------ 1 root users 0 Jun 14 13:22 libvirt-admin-sock=
srwxrwx--- 1 root users 0 Jun 14 13:22 libvirt-sock=
srwxrwxrwx 1 root users 0 Jun 14 13:22 libvirt-sock-ro=
-rw-r--r-- 1 root root 4 Jun 14 13:22 libvirtd.pid
drwxr-xr-x 2 root root 40 Jun 14 11:45 lockd/
drwxr-xr-x 2 root root 80 Jun 14 13:22 lxc/
drwxr-xr-x 2 root root 120 Jun 14 13:22 network/
drwx------ 2 root root 60 Jun 14 13:22 nodedev/
drwx------ 2 root root 60 Jun 14 13:22 nwfilter/
drwx------ 2 root root 40 Jun 14 11:45 nwfilter-binding/
drwxr-xr-x 3 root root 60 Jun 14 11:45 qemu/
drwx------ 2 root root 60 Jun 14 13:22 secrets/
drwxr-xr-x 2 root root 80 Jun 14 13:22 storage/
srwx------ 1 root root 0 Jun 14 13:22 virtlockd-admin-sock=
srwx------ 1 root root 0 Jun 14 13:22 virtlockd-sock=
-rw-r--r-- 1 root root 4 Jun 14 13:22 virtlockd.pid
srwx------ 1 root root 0 Jun 14 13:22 virtlogd-admin-sock=
srwx------ 1 root root 0 Jun 14 13:22 virtlogd-sock=
-rw-r--r-- 1 root root 4 Jun 14 13:22 virtlogd.pid
looking in libvirt-8.1.0 source tree for clues about virtqemud
/src/distros/slackware/slackware-15.0/SBo/libvirt-8.1.0# find ./ | grep qemud | grep -v domain
./docs/manpages/virtqemud.rst
./build/docs/manpages/virtqemud.html.in
./build/docs/manpages/virtqemud.html
./build/docs/manpages/virtqemud.rst
./src/security/apparmor/usr.sbin.virtqemud.in
./src/qemu/virtqemud.service.in
./src/qemu/virtqemud.init.in
it seems that there's a possibility of building virtqemud, (and running it with systemd) but I don't know how to turn on building it.
Wondering if I can turn off calls to virtqemud-sock, I grep in all the virt-manager and qemu source files for "virtqemud" but don't find anything. So I don't know what's asking for virtqemud-sock
looking in
/usr/doc/libvirt-8.1.0/html/manpages/virtqemud.html
I see a reference to
/etc/libvirt/virtqemud.conf
which libvirtqemud uses
also that libvirtqemud was a part of libvirtd but has been split out now (and apparently is not being built by the Slackbuilds script)
Some distributions are splitting libvirtd and some aren't. Maybe Slackware is a hybrid in which libvirtd is monolithic and something else (what I don't know) expects libvirtd to be split
My posting then is:
o How to get qemu to work? I'm happy to build from source files as long as I have build scripts and I can start the programs without systemd
o if I need virtqemud in Slackware, how do I build it?
Here's the packages that I've installed so far
setup - slackware-15.0-x86_64
for qemu I've installed the following packages
drwxr-xr-x 3 root root 4096 Jun 13 19:44 gtk-vnc/
drwxr-xr-x 3 root root 4096 Jun 13 19:21 libbsd/
drwxr-xr-x 3 root root 4096 Jun 13 19:54 libosinfo/
drwxr-xr-x 3 root root 4096 Jun 13 21:51 libqcow/
drwxr-xr-x 3 root root 4096 Jun 13 18:27 libvirt/
drwxr-xr-x 3 root root 4096 Jun 13 18:31 libvirt-glib/
drwxr-xr-x 3 root root 4096 Jun 13 19:05 libvirt-python/
drwxr-xr-x 3 root root 4096 Jun 13 19:14 netcat-openbsd/
drwxr-xr-x 3 root root 4096 Jun 13 21:48 openvswitch/
drwxr-xr-x 3 root root 4096 Jun 13 20:04 osinfo-db/
drwxr-xr-x 3 root root 4096 Jun 13 19:59 osinfo-db-tools/
drwxr-xr-x 3 root root 4096 Jun 13 21:27 qemu/
drwxr-xr-x 3 root root 4096 Jun 13 19:27 qemu-guest-agent/
drwxr-xr-x 3 root root 4096 Jun 13 21:36 spice/
drwxr-xr-x 3 root root 4096 Jun 13 21:30 spice-protocol/
drwxr-xr-x 3 root root 4096 Jun 13 19:36 usbredir/
drwxr-xr-x 3 root root 4096 Jun 13 22:00 vde2/
drwxr-xr-x 2 root root 4096 Jun 14 11:12 virglrenderer/
drwxr-xr-x 3 root root 4096 Jun 13 19:39 virt-manager/
drwxr-xr-x 3 root root 4096 Jun 13 19:48 virt-viewer/
drwxr-xr-x 3 root root 4096 Jun 13 22:05 vms/
drwxr-xr-x 3 root root 4096 Jun 13 21:39 xf86-video-qxl/
I started libvirtd with supplied rc.libvirt script.
Thanks Joe
Last edited by joseph.mack; 06-21-2022 at 05:56 PM.
|