Virt manager starts with error

Hello,

Hi Im using the latest Rome slim version just installed and updated. The KDE version.

  • Desktop environment (KDE, LXQT…):
    Rome slim version KDE

  • Description of the issue (screenshots if relevant):

The issue is virt-manager tries to start and then closes. I ran virt-manager --debug and this is the info it gives:

Traceback (most recent call last):
  File "/usr/bin/virt-manager", line 6, in <module>
    from virtManager import virtmanager
  File "/usr/share/virt-manager/virtManager/virtmanager.py", line 14, in <module>
    gi.require_version("Gdk", "3.0")
    ^^^^^^^^^^^^^^^^^^
AttributeError: module 'gi' has no attribute 'require_version'

Any help would be appreciated! BTW, I use Fedora normally but am duel booting Open Mandriva. The key before I move is getting Qemu with virt-manager working as I run one program from Windows 11 that will never be ported or able to run in Linux.

If I did not give the right data please let me know as this is my first try here. LOL

  • Relevant informations (hardware involved, software version, logs or output…):

@jademps64
welcome1

I’m admittedly clueless but let’s start with the obvious. Do you have PyGObject installed? The gi module requires that package. Check with pip list in Konsole. If you don’t have it, install with pip install PyGObject.

I’ve been using virt-manager without issue on Rome. So, I did check on what gdk packages I have installed and came up with the list below. My guess is lig64gdk3_0 or possibly lib64dgkx11-gir3.0 is needed, but it’s hard to say for sure.

  • gdk-pixbuf2.0.x86_64
  • jpeg-xl-gdk-pixbuf.x86_64
  • lib64gdk-gir3.0
  • lib64gdk3_0
  • lib64gdk_pixbuf-gir2.0
  • lib64gdk_pixbuf2.0-devel
  • lib64gdk_pixbuf2.0_0
  • lib64gdkmm3.0_1
  • lib64gdkx11-gir3.0

And, I almost forgot. Welcome!

I can confirm virt-manager works for me too with no issues and with these gdk packages installed.

Hi everyone,

Thank you for the help and I may be a bit closer but virt-manager still is not connecting to the qemu/system. the error it gives is the following:

libvirt deamon will not startup:

openmandriva-x8664 Downloads]$ sudo systemctl status libvirtd
× libvirtd.service - libvirt legacy monolithic daemon
Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; preset: enabled)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: failed (Result: start-limit-hit) since Sun 2025-02-09 00:12:50 EST; 21min ago
Duration: 3ms
Invocation: 6c3340b6387942479493852780ddcf66
TriggeredBy: × libvirtd-admin.socket
× libvirtd.socket
× libvirtd-ro.socket
Docs: man:libvirtd(8)
https://libvirt.org/
Process: 26005 ExecStart=/usr/bin/libvirtd $LIBVIRTD_ARGS (code=exited, status=0/SUCCESS)
Main PID: 26005 (code=exited, status=0/SUCCESS)

Feb 09 00:12:50 openmandriva-x8664 systemd[1]: Started libvirtd.service - libvirt legacy monolithic daemon.
Feb 09 00:12:50 openmandriva-x8664 libvirtd[26005]: libvirt version: 10.10.0
Feb 09 00:12:50 openmandriva-x8664 libvirtd[26005]: hostname: openmandriva-x8664
Feb 09 00:12:50 openmandriva-x8664 libvirtd[26005]: internal error: could not find a usable firewall backend
Feb 09 00:12:50 openmandriva-x8664 libvirtd[26005]: Initialization of bridge state driver failed: internal er>
Feb 09 00:12:50 openmandriva-x8664 libvirtd[26005]: Driver state initialization failed
Feb 09 00:12:50 openmandriva-x8664 systemd[1]: libvirtd.service: Deactivated successfully.
Feb 09 00:12:50 openmandriva-x8664 systemd[1]: libvirtd.service: Start request repeated too quickly.
Feb 09 00:12:50 openmandriva-x8664 systemd[1]: libvirtd.service: Failed with result ‘start-limit-hit’.
Feb 09 00:12:50 openmandriva-x8664 systemd[1]: Failed to start libvirtd.service - libvirt legacy monolithic d>
lines 1-25/25 (END)
Any ideas?

Again thanks for your help!!

Please remember to post your code as code

I believe the following packages should make sure you don’t run into any further issues, but I could be wrong.

sudo dnf isntall firewalld dnsmasq iproute2 iproute2-tc

Hi StudebakerGuy,

Thanks for the help! the only two of these which were not already installed was the firewalld and the dnsmasq and after installing and a libvirtd my virt-manager is now connecting. Why? still no idea but linux is always an education!
Thank you!

1 Like

You are welcome. I’m glad I could help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.