LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 06-17-2022, 07:54 AM   #1
joseph.mack
LQ Newbie
 
Registered: Jun 2022
Posts: 3

Rep: Reputation: 0
slackware-15.0-x86_64, virt-manager cannot connect to virtqemud-sock


I'm trying to get qemu running on slackware-15.0-x86_64.
(I've had qemu running on slackware-14.2-x86_64 for some years now.)

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've started libvirtd with supplied rc.libvirt script.

On starting virt-manager, I get in the virt-manager window

QEMU/KVM - Not Connected

(I get the same result if I use qemu-6.2.0-x86_64-1alien.txz,
rather than the Slackbuild one.
I couldn't find an alienBob libvirt or virt-manager.)

then trying

# 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 the problem 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.

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

/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.

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.

My posting then is:

o How to get qemu to work?

o if I need virtqemud, how do I build it?

Thanks Joe

Last edited by joseph.mack; 06-17-2022 at 04:59 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[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
Problem with MySQL install on virt CentOS,no /var/lib/mysql/mysql.sock , systemctl start mysqld.service dont run the service Positive1 CentOS 1 08-13-2016 03:33 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 - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 12:09 AM.

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