Public bug reported:

env :
   ubuntu 20.04.4
   libvirt-daemon 6.0.0-0ubuntu8.8
   qemu-kvm     1:4.2-3ubuntu6.15

attache a centos/ubuntu iso to VM,after os installation complete , after
os reboot , I want to detach iso from VM. faild to detach iso from dvd
device


syslog:
 Jun  1 17:03:21 dev2cn02 libvirtd[1767]: internal error: unable to execute 
QEMU command 'blockdev-remove-medium': Tray of device 'ide0-1-0' is not open
Jun  1 17:03:21 dev2cn02 java[2968]: libvirt: QEMU Driver error : internal 
error: unable to execute QEMU command 'blockdev-remove-medium': Tray of device 
'ide0-1-0' is not open
Jun  1 17:03:21 dev2cn02 java[2968]: WARN  [kvm.storage.KVMStorageProcessor] 
(agentRequest-Handler-3:) (logid:c470e790) Failed to attach device to 
i-2-354-VM: internal error: unable to execute QEMU command 
'blockdev-remove-medium': Tray of device 'ide0-1-0' is not open

VM dumpxml:
<domain type='kvm' id='5'>
  <name>i-2-354-VM</name>
  <uuid>1eaae934-82f7-46cf-ac72-c9603d8190c4</uuid>
  <description>CentOS 7</description>
  <memory unit='KiB'>2097152</memory>
  <currentMemory unit='KiB'>2097152</currentMemory>
  <vcpu placement='static'>2</vcpu>
  <cputune>
    <shares>500</shares>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <sysinfo type='smbios'>
    <system>
      <entry name='manufacturer'>Apache Software Foundation</entry>
      <entry name='product'>CloudStack KVM Hypervisor</entry>
      <entry name='uuid'>1eaae934-82f7-46cf-ac72-c9603d8190c4</entry>
    </system>
  </sysinfo>
  <os>
    <type arch='x86_64' machine='pc-i440fx-5.0'>hvm</type>
    <boot dev='cdrom'/>
    <boot dev='hd'/>
    <smbios mode='sysinfo'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <cpu mode='host-passthrough' check='none' migratable='on'>
    <feature policy='require' name='vmx'/>
  </cpu>
  <clock offset='utc'>
    <timer name='kvmclock'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='network' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <auth username='hyperstor'>
        <secret type='ceph' uuid='44069041-572d-32b0-abc4-745b97eae508'/>
      </auth>
      <source protocol='rbd' name='rbd/b660b939-b622-4a97-b21f-f221b1875e1c' 
index='2'>
        <host name='10.100.250.11' port='3300'/>
        <host name='10.100.250.12' port='3300'/>
        <host name='10.100.250.13' port='3300'/>
      </source>
      <target dev='vda' bus='virtio'/>
      <serial>b660b939b6224a97b21f</serial>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' 
function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source 
file='/mnt/5155538a-0a91-3468-9c82-a927ec96c539/206-2-7475aee1-70a6-3fe7-bc3e-95f964428d79.iso'
 index='1'/>
      <backingStore/>
      <target dev='hdc' bus='ide' tray='open'/>
      <readonly/>
      <alias name='ide0-1-0'/>
      <address type='drive' controller='0' bus='1' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0' model='piix3-uhci'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 
function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci.0'/>
    </controller>
    <controller type='ide' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 
function='0x1'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <alias name='virtio-serial0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' 
function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='1e:00:f3:00:00:9d'/>
      <source bridge='brbond1-4'/>
      <bandwidth>
        <inbound average='256000' peak='256000'/>
        <outbound average='256000' peak='256000'/>
      </bandwidth>
      <target dev='vnet8'/>
      <model type='virtio'/>
      <link state='up'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' 
function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/4'/>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/4'>
      <source path='/dev/pts/4'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <channel type='unix'>
      <source mode='bind' 
path='/var/lib/libvirt/qemu/i-2-354-VM.org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'>
      <alias name='input1'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input2'/>
    </input>
    <graphics type='vnc' port='5904' autoport='yes' listen='10.226.15.4'>
      <listen type='address' address='10.226.15.4'/>
    </graphics>
    <video>
      <model type='cirrus' vram='16384' heads='1' primary='yes'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' 
function='0x0'/>
    </video>
    <watchdog model='i6300esb' action='none'>
      <alias name='watchdog0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' 
function='0x0'/>
    </watchdog>
    <memballoon model='none'/>
  </devices>
  <seclabel type='dynamic' model='dac' relabel='yes'>
    <label>+0:+0</label>
    <imagelabel>+0:+0</imagelabel>
  </seclabel>
</domain>

** Affects: ubuntu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1930398

Title:
  libvirtd  unable to execute QEMU command 'blockdev-remove-medium'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1930398/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to