LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 06-21-2022, 05:36 PM   #1
joseph.mack
LQ Newbie
 
Registered: Jun 2022
Posts: 3

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware-15.0-x86_64, virt-manager cannot connect to virtqemud-sock joseph.mack Slackware - Installation 0 06-17-2022 07:54 AM
[SOLVED] installing virt-manager and virt-viewer on desktop for managing remote server yvesjv Slackware 4 04-24-2019 03:00 PM
Virsh/Virt-Manager/Virt-Install broken after upgrade to Xubuntu 17.10 Zabzoo Linux - Desktop 2 02-01-2018 08:05 AM
LXer: Hacking libvirt/virsh/virt-manager/virt-install at Xen 4.0 Dom0 on top of Ubunt LXer Syndicated Linux News 0 05-06-2010 02:50 PM
LXer: Virt-install&Virt-manager at Xen 4.0-rc8 (2.6.32.10 pvops) Dom0 on top Ubuntu K LXer Syndicated Linux News 0 03-26-2010 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 09:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration