virt-manager/virtman-check-for-libvirt-modular-daemons.patch
Charles Arnold ca65b631ae - bsc#1212195 - libvirtd crashes when virt-manager connects
virt-manager qemu:///system on a fresh installation tumbleweed
  virtman-check-for-libvirt-modular-daemons.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=600
2023-06-14 15:03:07 +00:00

17 lines
928 B
Diff

References: bsc#1212195
--- virt-manager-4.1.0/virtManager/lib/connectauth.py.orig 2023-06-13 16:34:55.683255450 -0600
+++ virt-manager-4.1.0/virtManager/lib/connectauth.py 2023-06-13 16:35:22.499256089 -0600
@@ -206,6 +206,11 @@ def connect_error(conn, errmsg, tb, warn
def setup_first_uri(config, tryuri):
# Add /usr/sbin to the path in case non-root user launches virt-manager
libvirtd_installed = bool(shutil.which("libvirtd", path=os.environ['PATH'] + os.pathsep + "/usr/sbin"))
+ # Check for new modular libvirt daemons
+ if libvirtd_installed is False:
+ libvirtd_installed = bool(shutil.which("virtqemud", path=os.environ['PATH'] + os.pathsep + "/usr/sbin"))
+ if libvirtd_installed is False:
+ libvirtd_installed = bool(shutil.which("virtxend", path=os.environ['PATH'] + os.pathsep + "/usr/sbin"))
if config.CLITestOptions.fake_no_libvirtd:
libvirtd_installed = False