-
Bug
-
Resolution: Unresolved
-
Undefined
-
rhel-9.5
-
libvirt-10.8.0-1.el9
-
No
-
Moderate
-
rhel-sst-virtualization-storage
-
ssg_virtualization
-
11
-
3
-
Dev ack
-
False
-
-
None
-
None
-
Pass
-
Not Needed
-
RegressionOnly
-
-
10.7.0
-
None
Please provide the package NVR for which bug is seen:
libvirt-10.5.0-5.el9.x86_64
How reproducible:
100%
Steps to reproduce:
1. Prepare a guest
virsh list --all Id Name State -------------------------------------- 2 avocado-vt-vm1 running
# virsh domblklist avocado-vt-vm1 Target Source ------------------------------------------------------------- vda /mnt/nfs/images/RHEL-9.4-x86_64-latest-ovmf.qcow2
2. Prepare a cdrom device xml
# cat usb.xml <disk type='block' device='cdrom'> <driver name='qemu' type='raw'/> <target dev='hdc' bus='usb'/> </disk>
3. Attach the disk to guest
# virsh attach-device avocado-vt-vm1 usb.xml error: Disconnected from qemu:///system due to end of file error: Failed to attach device from usb.xml error: End of file while reading data: Input/output error
4. Check the log
# grep -i device_add /var/log/libvirt/virtqemud.log 2024-08-16 03:19:44.335+0000: 69016: info : qemuMonitorSend:838 : QEMU_MONITOR_SEND_MSG: mon=0x7f08f0003010 msg={"execute":"device_add","arguments":{"driver":"usb-storage","bus":"usb.0","port":"2","id":"usb-disk2","removable":false},"id":"libvirt-14"} 2024-08-16 03:19:44.335+0000: 69037: info : qemuMonitorIOWrite:339 : QEMU_MONITOR_IO_WRITE: mon=0x7f08f0003010 buf={"execute":"device_add","arguments":{"driver":"usb-storage","bus":"usb.0","port":"2","id":"usb-disk2","removable":false},"id":"libvirt-14"} 2024-08-16 03:19:44.392+0000: 69016: debug : qemuMonitorJSONCheckErrorFull:354 : unable to execute QEMU command {"execute":"device_add","arguments":{"driver":"usb-storage","bus":"usb.0","port":"2","id":"usb-disk2","removable":false},"id":"libvirt-14"}: {"id":"libvirt-14","error":{"class":"GenericError","desc":"drive property not set"}} 2024-08-16 03:19:44.392+0000: 69016: error : qemuMonitorJSONCheckErrorFull:366 : internal error: unable to execute QEMU command 'device_add': drive property not set
Actual result:
Virtqemud crashed
Expected result:
Libvirt reports some error, and virtqemud does not crash.
- is blocked by
-
RHEL-50574 Rebase libvirt in RHEL-9.6.0
- Integration
- links to
-
RHBA-2024:140248 libvirt update