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

libvirt doesn't reject invalid setting of "<blockio logical_block_size='512' physical_block_size='512'/>" for "<disk device='lun'>"

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.1
    • libvirt / Storage
    • None
    • None
    • None
    • rhel-virt-core-libvirt-2
    • 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?

      Setting <blockio logical_block_size='512' physical_block_size='512'/> for <disk device='lun'> a doesn't get rejected at XML validation and thus gets rejected by qemu with a sub-optimal error message:

      $ virsh start cd
      error: Failed to start domain 'cd'
      error: internal error: QEMU unexpectedly closed the monitor (vm='cd'): 2026-02-03T13:45:30.273503Z qemu-system-x86_64: -device {"driver":"scsi-block","bus":"scsi0.0","channel":0,"scsi-id":0,"lun":0,"drive":"libvirt-1-format","id":"scsi0-0-0-0","logical_block_size":512,"physical_block_size":512}: Property 'scsi-block.physical_block_size' not found
      

              virt-maint virt-maint
              pkrempa@redhat.com Peter Krempa
              virt-maint virt-maint
              virt-bugs virt-bugs
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: