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

Guest startup failed when using a block LUN disk backed by an LVM volume with rawio disabled

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • No
    • Moderate
    • rhel-virt-core-libvirt-1
    • ssg_virtualization
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

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

      Guest startup failed when using a block LUN disk backed by an LVM volume with rawio disabled

      Please provide the package NVR for which bug is seen:

      libvirt-11.2.0-1.el10.x86_64
      qemu-kvm-9.1.0-17.el10.x86_64

      How reproducible:

      100%

      Steps to reproduce

      1. Prepare a lvm disk.

      # modprobe scsi_debug dev_size_mb=200

      # vgcreate vg0 /dev/sdb

      # lvcreate -L 100M -n lv0 vg0

      2. Prepare a disk xml with rawio='no'.

      # virsh dumpxml avocado-vt-vm1 --xpath //disk
      ......
      <disk type="block" device="lun" rawio="no">
        <driver name="qemu" type="raw"/>
        <source dev="/dev/vg0/lv0"/>
        <target dev="sdb" bus="scsi"/>
        <address type="drive" controller="0" bus="0" target="0" unit="1"/>
      </disk>

      3. Start the guest.

      # virsh start avocado-vt-vm1
      error: Failed to start domain 'avocado-vt-vm1'
      error: internal error: QEMU unexpectedly closed the monitor (vm='avocado-vt-vm1'): 2025-04-08T01:48:14.877520Z qemu-kvm: -device {"driver":"scsi-block","bus":"scsi0.0","channel":0,"scsi-id":0,"lun":1,"drive":"libvirt-1-storage","id":"scsi0-0-0-1"}: cannot get SG_IO version number: Inappropriate ioctl for device
      Is this a SCSI device?

      Expected results

      Can start the guest.

      Actual results

      Failed to start the guest.
       
      Additional info
      1. Can start the guest with rawio="yes".
      2. Can start the guest with <source dev="/dev/sdb"/> and rawio="no".

              virt-maint virt-maint
              rhn-support-meili Meina Li
              virt-maint virt-maint
              Meina Li Meina Li
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: