Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-23170

virt-admin does not work out of the box on RHEL 9 modular libvirt

    • libvirt-10.0.0-3.el9
    • None
    • Critical
    • rhel-sst-virtualization
    • ssg_virtualization
    • 26
    • None
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      Fresh install RHEL 9.3, add libvirt/qemu packages to run VMs.

      Try to use virt-admin

      # virt-admin connect
      error: Failed to connect to the admin server
      error: Failed to connect socket to '/run/libvirt/libvirt-admin-sock': No such file or directory
      

      It is trying to connect to the legacy monolithic socket. The new one is listening:

      [root@rhel-9 ~]# systemctl status virtqemud-admin.socket
      ● virtqemud-admin.socket - Libvirt qemu admin socket
           Loaded: loaded (/usr/lib/systemd/system/virtqemud-admin.socket; enabled; preset: disabled)
           Active: active (listening) since Tue 2024-01-30 17:05:22 AEST; 6min ago
            Until: Tue 2024-01-30 17:05:22 AEST; 6min ago
         Triggers: ● virtqemud.service
           Listen: /run/libvirt/virtqemud-admin-sock (Stream)
           CGroup: /system.slice/virtqemud-admin.socket
      
      Jan 30 17:05:22 rhel-9.virt.home.arpa systemd[1]: Listening on Libvirt qemu admin socket.
      

      Please provide the package NVR for which bug is seen:

      # rpm -q libvirt
      libvirt-9.5.0-7.el9_3.x86_64
      

      How reproducible:

      Always

      Steps to reproduce

      As above

      Expected results

      Works out of the box on RHEL9, without needing to pass URI

      Actual results

      Tries to connect to old socket by default and fails

              pkrempa@redhat.com Peter Krempa
              rhn-support-gveitmic Germano Veit Michel
              Jiří Herrmann
              Peter Krempa Peter Krempa
              Lili Zhu Lili Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: