#991564 libvirt-daemon: USB cdrom removable=on: drive property not set

Package:
libvirt-daemon
Source:
libvirt
Description:
Virtualization daemon
Submitter:
chriz
Date:
2021-08-24 21:30:05 UTC
Severity:
normal
#991564#5
Date:
2021-07-27 17:28:11 UTC
From:
To:
Dear Maintainer,

when trying to add a USB CDROM drive which is empty, the VM doesn't
start anymore.
This is regardless if the removable check is set or not.

Error starting domain: internal error: qemu unexpectedly closed the
monitor: 2021-07-27T16:55:41.147567Z qemu-system-aarch64: -device
usb-storage,bus=usb.0,port=1,id=usb-disk1,removable=on: drive property
not set

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in
cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 101, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py",
line 57, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/domain.py", line
1329, in startup
    self._backend.create()
  File "/usr/lib/python3/dist-packages/libvirt.py", line 1353, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: internal error: qemu unexpectedly closed the
monitor: 2021-07-27T16:55:41.147567Z qemu-system-aarch64: -device
usb-storage,bus=usb.0,port=1,id=usb-disk1,removable=on: drive property
not set


When adding an iso to the drive, the VM can normally be started.


I get this error from virt-manager, but when opening the configuration
with virsh, I can see the flag is properly added to the config:
        <disk type='file' device='cdrom'>
                <driver name='qemu' type='raw'/>
                <target dev='sdb' bus='usb' removable='on'/>
                <readonly/>
                <address type='usb' bus='0' port='1'/>
        </disk>
When unchecking the removable check, the config correctly shows
removable='off' accordingly.

I can't tell, when the bug appeared, because I have not been using a USB
cdrom so far.

virt-manager is from testing (version 1:3.2.0-3)

#991564#10
Date:
2021-08-24 21:28:01 UTC
From:
To:
the bug is a duplicate of #991563
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=991563) and can
therefore be closed