Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] Libvirt not connecting  (Read 18472 times)

Offline eriefisher

  • User
  • Posts: 413
[EN] Libvirt not connecting
« on: 2025/08/29, 13:12:17 »
Seems that recent updates has broken libvirt/virt-manager. I only use this vm occasionally so I don't know when it started exactly.

Code: [Select]
Unable to connect to libvirt qemu:///system.

internal error: client socket is closed

Libvirt URI is: qemu:///system

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/connection.py", line 932, in _do_open
    self._backend.open(cb, data)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/share/virt-manager/virtinst/connection.py", line 184, in open
    self._get_caps()  # cache and log capabilities
    ~~~~~~~~~~~~~~^^
  File "/usr/share/virt-manager/virtinst/connection.py", line 107, in _get_caps
    capsxml = self._libvirtconn.getCapabilities()
  File "/usr/lib/python3/dist-packages/libvirt.py", line 4699, in getCapabilities
    raise libvirtError('virConnectGetCapabilities() failed')
libvirt.libvirtError: internal error: client socket is closed
I AM CANADIAN!

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.489
    • Land of the Buckeye
Re: Libvirt not connecting
« Reply #1 on: 2025/08/29, 16:15:54 »
I use virt-manager on siduction daily and have seen no issues, up to and including this morning (29 AUG).
System76 Oryx Pro, Intel Core i7-11800H, ASRock B860 Pro-A, Intel Core Ultra 7 265KF, Nvidia GTX-1060, SSD 990 EVO Plus.

Offline eriefisher

  • User
  • Posts: 413
Re: Libvirt not connecting
« Reply #2 on: 2025/08/29, 17:00:41 »
Interesting. I assume your current and up to date? Like I said, this was a recent occurrence. I used the VM 4-5 days ago with no issue and just this morning I get the errors. I did notice there were several virt updates the last few days. I'll need to dig in more.
I AM CANADIAN!

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.489
    • Land of the Buckeye
Re: Libvirt not connecting
« Reply #3 on: 2025/08/29, 17:10:51 »
I ran updates at 4:30 a.m. EDT (USA) this morning.  Now I'm afraid to run them again LOL.
System76 Oryx Pro, Intel Core i7-11800H, ASRock B860 Pro-A, Intel Core Ultra 7 265KF, Nvidia GTX-1060, SSD 990 EVO Plus.

Offline hsp

  • User
  • Posts: 656
Re: Libvirt not connecting
« Reply #4 on: 2025/08/29, 17:19:27 »
I have the same problem, but no solution.
...

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.489
    • Land of the Buckeye
Re: Libvirt not connecting
« Reply #5 on: 2025/08/29, 18:46:29 »
For what it's worth:

Code: [Select]
libvirt-common:
  Installed: 11.3.0-3+b1
  Candidate: 11.3.0-3+b1
  Version table:
 *** 11.3.0-3+b1 500
        500 https://deb.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status
virt-manager:
  Installed: 1:5.0.0-5
  Candidate: 1:5.0.0-5
  Version table:
 *** 1:5.0.0-5 500
        500 https://deb.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status

Code: [Select]
System:
  Host: Hibiscus Kernel: 6.16.3-2-siduction-amd64 arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.3.6 Distro: siduction 22.1.2 Masters_of_War -
    kde - (202303151559)
CPU:
  Info: quad core model: Intel Core i7-4770 bits: 64 type: MT MCP cache:
    L2: 1024 KiB
  Speed (MHz): avg: 800 min/max: 800/3900 cores: 1: 800 2: 800 3: 800 4: 800
    5: 800 6: 800 7: 800 8: 800
System76 Oryx Pro, Intel Core i7-11800H, ASRock B860 Pro-A, Intel Core Ultra 7 265KF, Nvidia GTX-1060, SSD 990 EVO Plus.

Offline hsp

  • User
  • Posts: 656

Offline hsp

  • User
  • Posts: 656
Re: Libvirt not connecting
« Reply #7 on: 2025/08/30, 12:31:50 »
I have found a workaround:
If you don't need qemu-system-sparc and qemu-system-alpha, you can use the following workaround for now.

Code: [Select]
apt purge qemu-system-misc qemu-system-sparc
....

Offline eriefisher

  • User
  • Posts: 413
Re: Libvirt not connecting
« Reply #8 on: 2025/08/30, 13:45:32 »
I have found a workaround:
If you don't need qemu-system-sparc and qemu-system-alpha, you can use the following workaround for now.

Code: [Select]
apt purge qemu-system-misc qemu-system-sparc
....

I didn't have qemu-system-sparc installed but qemu-system-misc was removed and seem to have done the trick. I just booted up the vm with no errors.

Thanks
I AM CANADIAN!

Offline dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.489
    • Land of the Buckeye
Re: Libvirt not connecting
« Reply #9 on: 2025/08/30, 14:33:35 »
Yep, I had neither of those files installed -- that is why the evil angel of update destruction passed by my house. LOL
System76 Oryx Pro, Intel Core i7-11800H, ASRock B860 Pro-A, Intel Core Ultra 7 265KF, Nvidia GTX-1060, SSD 990 EVO Plus.

Offline eriefisher

  • User
  • Posts: 413
Re: Libvirt not connecting
« Reply #10 on: 2025/08/30, 14:58:42 »
Yep, I had neither of those files installed -- that is why the evil angel of update destruction passed by my house. LOL

Whew!

Interesting though, if they were not required to run the vm why would they cause trouble? At least it's working again.
I AM CANADIAN!