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

Run qemu via libvirt embedded qemu driver

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-9.5
    • libguestfs
    • None
    • rhel-sst-virtualization
    • ssg_virtualization
    • 7
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • None

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

      It fails to run the following nbdkit command as root on the RHEL9.5 host.

      # nbdkit -U - memory 1G --run 'guestfish --ro --format=raw -a "$uri" run : list-devices'
      libguestfs: error: could not create appliance through libvirt.
      Try running qemu directly without libvirt using this environment variable:
      export LIBGUESTFS_BACKEND=direct
      Original error from libvirt: internal error: process exited while connecting to monitor: 2024-05-21T08:11:57.904622Z qemu-kvm: -blockdev {"driver":"nbd","server":{"type":"unix","path":"/tmp/nbdkitm5gpmj/socket"},"node-name":"libvirt-4-storage","read-only":true,"cache":{"direct":false,"no-flush":true}}: Failed to connect to '/tmp/nbdkitm5gpmj/socket': Permission denied [code=1 int1=-1]
      

      Please provide the package NVR for which bug is seen:

      libguestfs-1.50.1-9.el9.x86_64
      nbdkit-1.38.0-1.el9.x86_64
      libvirt-10.3.0-1.el9.x86_64

      How reproducible:

      100%

      Steps to reproduce

      1.  
      2.  
      3.  

      Expected results

      # nbdkit -U - memory 1G --run 'guestfish --ro --format=raw -a "$uri" run : list-devices'
      /dev/sda

      Actual results

      The above

              kkiwi@redhat.com Klaus Kiwi
              yoguo@redhat.com Yongkui Guo
              virt-maint virt-maint
              virt-bugs virt-bugs
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated: