Skip to content

[ULTMOS] libvirt check assumes systemd #216

@attila-lendvai

Description

@attila-lendvai

Describe the Issue

the Compatibility checks script calls systemctl status libvirtd, i.e. it assumes systemd.

i'm running this on Guix, which has shepherd as the init process.

possible fix: maybe use a functional test instead of calling systemctl?

LLM slop follows:

import libvirt

def test_libvirtd():
    """
    Simple functional test to detect a running libvirtd service.
    Returns True if libvirtd is running and accessible, False otherwise.
    """
    try:
        conn = libvirt.open(None)  # Connect to the default hypervisor
        if conn is None:
            return False
        conn.close()
        return True
    except libvirt.libvirtError:
        return False

if __name__ == "__main__":
    if test_libvirtd():
        print("libvirtd is running and accessible.")
    else:
        print("libvirtd is NOT running or not accessible.")

Reproduce the Issue

No response

Expectation

No response

Screenshots

No response

Operating System

Guix

Kernel

6.17.12

Processor

Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz

RAM (in GB)

16G

GPU(s)

No response

Version

v0.13.4

Branch

main

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Help WantedExtra attention is neededInvestigatingThe reported issue is under investigationKnown IssueThis issue has been identified and is being investigated.Not a Bug

    Projects

    Status

    Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions