Bug 2436609

Summary: virt-install: Typelib file for namespace 'libxml2', version '2.0' not found
Product: [Fedora] Fedora Reporter: weak.patch9720
Component: libosinfoAssignee: Daniel Berrangé <berrange>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 43CC: berrange, cfergeau, crobinso, nixuser, pavel, phrdina, suraj.ghimire7, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libosinfo-1.12.0-4.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-02-08 01:11:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description weak.patch9720 2026-02-04 00:42:49 UTC
Description of problem:

I can't get virt-install to run at all, on multiple F43 installations but primarily in an IoT bootc derived image.

Version-Release number of selected component (if applicable):

$ dnf info virt-install
Updating and loading repositories:
Repositories loaded.
Installed packages
Name            : virt-install
Epoch           : 0
Version         : 5.1.0
Release         : 3.fc43
Architecture    : noarch
Installed size  : 34.8 KiB
Source          : virt-manager-5.1.0-3.fc43.src.rpm
From repository : updates
Summary         : Utilities for installing virtual machines
URL             : https://virt-manager.org/
License         : GPL-2.0-or-later
Description     : Package includes several command line utilities, including virt-install
                : (build and install new VMs) and virt-clone (clone an existing virtual
                : machine).
Vendor          : Fedora Project

How reproducible:

Reproducible on all machines I've tried.

Steps to Reproduce:
1. Install virt-install with dnf
2. Run virt-install with any arguments

Actual results:

During initialisation it will throw this:

Traceback (most recent call last):
  File "/usr/lib64/python3.14/site-packages/gi/importer.py", line 137, in create_module
    introspection_module = get_introspection_module(namespace)
  File "/usr/lib64/python3.14/site-packages/gi/module.py", line 244, in get_introspection_module
    module = IntrospectionModule(namespace, version)
  File "/usr/lib64/python3.14/site-packages/gi/module.py", line 104, in __init__
    repository.require(namespace, version)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
gi.RepositoryError: Typelib file for namespace 'libxml2', version '2.0' not found

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/bin/virt-install", line 5, in <module>
    from virtinst import virtinstall
  File "/usr/share/virt-manager/virtinst/__init__.py", line 49, in <module>
    from virtinst.osdict import OSDB
  File "/usr/share/virt-manager/virtinst/osdict.py", line 13, in <module>
    from gi.repository import Libosinfo
  File "/usr/lib64/python3.14/site-packages/gi/importer.py", line 139, in create_module
    raise ImportError(e) from e
ImportError: Typelib file for namespace 'libxml2', version '2.0' not found

Expected results:

I can use virt-install to interact with libvirt

Additional info:

Comment 1 Daniel Berrangé 2026-02-04 08:08:50 UTC
You'll probably be missing the 'gobject-introspection' RPM

Comment 2 weak.patch9720 2026-02-04 10:14:35 UTC
Yep, that sorted it. Shouldn't virt-install or one of its requirements require gobject-introspection then?

Comment 3 Daniel Berrangé 2026-02-04 10:20:19 UTC
Yes, this is a libosinfo bug fixed in https://bugzilla.redhat.com/show_bug.cgi?id=2412451  but only in rawhide. It seems we need the same fix in F43.

Comment 4 Fedora Update System 2026-02-04 11:19:27 UTC
FEDORA-2026-09a5c6ce13 (libosinfo-1.12.0-4.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-09a5c6ce13

Comment 5 Fedora Update System 2026-02-06 00:54:50 UTC
FEDORA-2026-09a5c6ce13 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-09a5c6ce13`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-09a5c6ce13

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2026-02-08 01:11:39 UTC
FEDORA-2026-09a5c6ce13 (libosinfo-1.12.0-4.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.