Bug 1212480 - libvirt : Virtual Manager : Unable to connect to qemu/kvm
Summary: libvirt : Virtual Manager : Unable to connect to qemu/kvm
Status: RESOLVED DUPLICATE of bug 1212396
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Virtualization:Tools (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: virt-bugs list
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-17 20:44 UTC by John Shand
Modified: 2023-06-21 20:40 UTC (History)
5 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
jfehlig: needinfo? (jshand2013)


Attachments
all services on machine (18.25 KB, text/plain)
2023-06-17 20:45 UTC, John Shand
Details
journalctl log 1 (10.00 MB, text/plain)
2023-06-17 20:46 UTC, John Shand
Details
journalctl log 2 (10.00 MB, text/plain)
2023-06-17 20:46 UTC, John Shand
Details
journalctl log 3 (4.83 MB, text/plain)
2023-06-17 20:46 UTC, John Shand
Details
y2logs just in case (8.03 MB, application/x-xz)
2023-06-17 20:47 UTC, John Shand
Details
system unit as at 20-06-23 (68.86 KB, text/plain)
2023-06-20 00:45 UTC, John Shand
Details
virsh connection log (41 bytes, text/plain)
2023-06-20 22:53 UTC, John Shand
Details
OK and not OK cases log (16.01 KB, text/x-log)
2023-06-21 01:39 UTC, Raija Ruuska
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Shand 2023-06-17 20:44:44 UTC
Hi guys,

For the last week or 2 i have been unable to connect libvirt to qemu/kvm.  in my user configuration i am added to the libvirt group (this usually works).

I have included some debug information to help find out where this issue comes from.  hopefully i have provided enough information.
Comment 1 John Shand 2023-06-17 20:45:25 UTC
Created attachment 867654 [details]
all services on machine
Comment 2 John Shand 2023-06-17 20:46:02 UTC
Created attachment 867655 [details]
journalctl log 1
Comment 3 John Shand 2023-06-17 20:46:29 UTC
Created attachment 867656 [details]
journalctl log 2
Comment 4 John Shand 2023-06-17 20:46:58 UTC
Created attachment 867657 [details]
journalctl log 3
Comment 5 John Shand 2023-06-17 20:47:29 UTC
Created attachment 867658 [details]
y2logs just in case
Comment 6 John Shand 2023-06-17 20:54:39 UTC
Operating System: openSUSE Tumbleweed 20230616
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.3.7-1-default (64-bit)
Graphics Platform: X11
Processors: 2 × AMD A9-9420e RADEON R5, 5 COMPUTE CORES 2C+3G
Memory: 7.2 GiB of RAM
Graphics Processor: AMD Radeon R5 Graphics
Manufacturer: Acer
Product Name: Aspire A315-21G
System Version: V1.12
Comment 7 Raija Ruuska 2023-06-18 21:21:08 UTC
I have the same problem.
I noticed that after the shutdown reset, qemu/kvm works once, but after that it doesn't work anymore. Reboot doesn't help with this. Maybe something is left undone?

This problem came after the update below.

Operating System: openSUSE Tumbleweed 20230616
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.3.7-1-default (64-bit)
Graphics Platform: X11
Processors: 16 x AMD Ryzen 9 5900HX with Radeon Graphics
Memory: 30.7 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: MINIPC PN52
Comment 8 John Shand 2023-06-19 20:20:27 UTC
this issue seems fixed in this version of tumbleweed:

Operating System: openSUSE Tumbleweed 20230617
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.3.7-1-default (64-bit)
Graphics Platform: X11
Processors: 2 × AMD A9-9420e RADEON R5, 5 COMPUTE CORES 2C+3G
Memory: 7.2 GiB of RAM
Graphics Processor: AMD Radeon R5 Graphics
Manufacturer: Acer
Product Name: Aspire A315-21G
System Version: V1.12

Should this be closed now?
Comment 9 Raija Ruuska 2023-06-19 22:08:47 UTC
Even the same programs do not work on my computer.
What additional information would you like?
Comment 10 John Shand 2023-06-20 00:40:16 UTC
(In reply to John Shand from comment #8)
> this issue seems fixed in this version of tumbleweed:
> 
> Operating System: openSUSE Tumbleweed 20230617
> KDE Plasma Version: 5.27.5
> KDE Frameworks Version: 5.107.0
> Qt Version: 5.15.10
> Kernel Version: 6.3.7-1-default (64-bit)
> Graphics Platform: X11
> Processors: 2 × AMD A9-9420e RADEON R5, 5 COMPUTE CORES 2C+3G
> Memory: 7.2 GiB of RAM
> Graphics Processor: AMD Radeon R5 Graphics
> Manufacturer: Acer
> Product Name: Aspire A315-21G
> System Version: V1.12
> 
> Should this be closed now?

Forget this message.  i was wrong.  it allowed me to start kvm/qemu once after a reboot.  when i shutdown and started computer gain, it wasn't working
Comment 11 John Shand 2023-06-20 00:45:26 UTC
Created attachment 867682 [details]
system unit as at 20-06-23

For this release:

Operating System: openSUSE Tumbleweed 20230617
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.3.7-1-default (64-bit)
Graphics Platform: X11
Processors: 2 × AMD A9-9420e RADEON R5, 5 COMPUTE CORES 2C+3G
Memory: 7.2 GiB of RAM
Graphics Processor: AMD Radeon R5 Graphics
Manufacturer: Acer
Product Name: Aspire A315-21G
System Version: V1.12
Comment 12 James Fehlig 2023-06-20 22:04:11 UTC
(In reply to John Shand from comment #11)
> Created attachment 867682 [details]
> system unit as at 20-06-23

From this output, at the system level I see you have modular daemons (virtqemud, virtstoraged, virtneworkd, etc) enabled and libvirtd disabled. That's fine and the preferred Tumbleweed setup these days. How are you connecting with virt-manager? Are you running it as your user but connecting to qemu:///system? Or are you connecting to the session daemons? For more info about modular vs monolithic daemons and system vs session operating modes see https://libvirt.org/daemons.html

Using the system mode, are you able to connect with virsh? E.g. 'virsh -c qemu:///system list --all'? If so, does 'virsh -c qemu:///system net-list --all' work?
Comment 13 John Shand 2023-06-20 22:53:03 UTC
Created attachment 867703 [details]
virsh connection log
Comment 14 John Shand 2023-06-20 22:54:19 UTC
with my normal user account i have added the user to the libvirt user/group.  this usually works
Comment 15 Raija Ruuska 2023-06-21 00:18:34 UTC
I usually use qemu/kvm via virt-manager with my own (raija) username, but it doesn't work now.

raija@kone1:~> 
raija@kone1:~> virsh -c qemu:///system list --all
^C
raija@kone1:~> sudo virsh -c qemu:///system list --all
^C
raija@kone1:~> virt-manager
raija@kone1:~> 
(virt-manager:23131): dbind-WARNING **: 03:15:20.314: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
^C
raija@kone1:~> sudo virt-manager
raija@kone1:~> 
(virt-manager:23160): Gtk-WARNING **: 03:15:32.286: cannot open display: 
^C
raija@kone1:~> 
raija@kone1:~> virsh net-list --all
 Nimi   Tila   Automaattikäynnistys   Pysyvä
----------------------------------------------

raija@kone1:~> virsh net-start default
virhe: verkon ”default” hakeminen epäonnistui
virhe: Network not found: no network with matching name 'default'

raija@kone1:~>
Comment 16 Raija Ruuska 2023-06-21 01:39:12 UTC
Created attachment 867704 [details]
OK and not OK cases log

The first start of the virtual manager 21.6.2023 04:11:02, which works OK.

The second start 04:11:52 where the connection does not work to the quest.
Comment 17 Oliver Schwabedissen 2023-06-21 05:47:48 UTC
Hello, 
I have the same problem. 

Installed versions: 
  libvirt-libs-9.4.0-3.1
  virt-manager-4.1.0-9.1

Even after booting the system virt-manager can't connect. I have to restart libvirtd before virt-manager connects to my VMs:

systemctl restart libvirtd
Comment 18 Oliver Schwabedissen 2023-06-21 06:30:35 UTC
I think this is the same problem as in https://bugzilla.suse.com/show_bug.cgi?id=1212480
Comment 19 Oliver Schwabedissen 2023-06-21 06:31:51 UTC
(In reply to Oliver Schwabedissen from comment #18)
> I think this is the same problem as in
> https://bugzilla.suse.com/show_bug.cgi?id=1212480

Oops, copy/paste mistake. Link should read https://bugzilla.suse.com/show_bug.cgi?id=1212195
Comment 20 James Fehlig 2023-06-21 20:40:06 UTC
(In reply to Oliver Schwabedissen from comment #19)
> Oops, copy/paste mistake. Link should read
> https://bugzilla.suse.com/show_bug.cgi?id=1212195

I'd say this is a duplicate of https://bugzilla.suse.com/show_bug.cgi?id=1212396. In bug#1212195 we're working on the correct enabling of systemd socket units between the monolithic and modular libvirt daemons.

Actually, I'm going to close this as a duplicate. Those experiencing the problem in this bug, please try the systemd packages in https://build.opensuse.org/request/show/1094372, or wait for the updated systemd to makes its way to TW.

*** This bug has been marked as a duplicate of bug 1212396 ***