[Bug 1390520] Re: virtual machine fails to start with connected audio cd

wolfgang 1390520 at bugs.launchpad.net
Sun Apr 5 19:54:01 UTC 2015


the problem still exists in Ubuntu 14.10 (utopic) and Fedora 21

please inform me if you need further information.


error message in vmware detail page when connecting an audio cd to "IDE CDROM 1"
-------------------------------------------------------------------------------------------------------------------
cannot read header '/dev/sr0': Input/output error

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/details.py", line 2326, in _change_config_helper
    self.vm.hotplug(**hotplug_args)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1001, in hotplug
    self.attach_device(device)
  File "/usr/share/virt-manager/virtManager/domain.py", line 929, in attach_device
    self._backend.attachDevice(devxml)
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 500, in attachDevice
    if ret == -1: raise libvirtError ('virDomainAttachDevice() failed', dom=self)
libvirtError: cannot read header '/dev/sr0': Input/output error


/var/log/messages:
-------------------------
Apr  5 21:36:27 majestix kernel: [ 6779.871482] sr 2:0:0:0: [sr0]  
Apr  5 21:36:27 majestix kernel: [ 6779.871484] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Apr  5 21:36:27 majestix kernel: [ 6779.871485] sr 2:0:0:0: [sr0]  
Apr  5 21:36:27 majestix kernel: [ 6779.871486] Sense Key : Illegal Request [current] 
Apr  5 21:36:27 majestix kernel: [ 6779.871488] sr 2:0:0:0: [sr0]  
Apr  5 21:36:27 majestix kernel: [ 6779.871490] Add. Sense: Illegal mode for this track
Apr  5 21:36:27 majestix kernel: [ 6779.871491] sr 2:0:0:0: [sr0] CDB: 
Apr  5 21:36:27 majestix kernel: [ 6779.871491] Read(10): 28 00 00 00 00 00 00 00 08 00
Apr  5 21:36:27 majestix kernel: [ 6779.879255] sr 2:0:0:0: [sr0]  
Apr  5 21:36:27 majestix kernel: [ 6779.879257] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Apr  5 21:36:27 majestix kernel: [ 6779.879258] sr 2:0:0:0: [sr0]  
Apr  5 21:36:27 majestix kernel: [ 6779.879259] Sense Key : Illegal Request [current] 
Apr  5 21:36:27 majestix kernel: [ 6779.879260] sr 2:0:0:0: [sr0]  
Apr  5 21:36:27 majestix kernel: [ 6779.879261] Add. Sense: Illegal mode for this track
Apr  5 21:36:27 majestix kernel: [ 6779.879262] sr 2:0:0:0: [sr0] CDB: 
Apr  5 21:36:27 majestix kernel: [ 6779.879263] Read(10): 28 00 00 00 00 00 00 00 02 00

/var/log/libvirt/qemu/win7.log:
------------------------------------------
2015-04-05 19:34:16.804+0000: starting up
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=spice /usr/bin/kvm-spice -name Windows7 -S -machine pc-i440fx-utopic,accel=kvm,usb=off -cpu Haswell -m 2048 -realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid bce450f4-2bb5-4cc4-ba51-44c986570a22 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/Windows7.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -boot strict=on -device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x5.0x7 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x5 -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x5.0x1 -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x5.0x2 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x6 -drive file=/var/lib/libvirt/images/Windows7.img,if=none,id=drive-ide0-0-0,format=raw -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -drive file=/dev/sr0,if=none,id=drive-ide0-0-1,readonly=on,format=raw -device ide-cd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -netdev tap,fd=24,id=hostnet0 -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:dd:e9:a1,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev spicevmc,id=charchannel0,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -device usb-tablet,id=input0 -spice port=5900,addr=127.0.0.1,disable-ticketing,seamless-migration=on -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,bus=pci.0,addr=0x2 -device intel-hda,id=sound0,bus=pci.0,addr=0x4 -device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -chardev spicevmc,id=charredir0,name=usbredir -device usb-redir,chardev=charredir0,id=redir0 -chardev spicevmc,id=charredir1,name=usbredir -device usb-redir,chardev=charredir1,id=redir1 -chardev spicevmc,id=charredir2,name=usbredir -device usb-redir,chardev=charredir2,id=redir2 -chardev spicevmc,id=charredir3,name=usbredir -device usb-redir,chardev=charredir3,id=redir3 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x7 -msg timestamp=on
char device redirected to /dev/pts/3 (label charserial0)
main_channel_link: add main channel client
main_channel_handle_parsed: net test: latency 124.656000 ms, bitrate 21113402061 bps (20135.309278 Mbps)
red_dispatcher_set_cursor_peer: 
inputs_connect: inputs channel client create
qemu: terminating on signal 15 from pid 2858
red_channel_client_disconnect_dummy: rcc=0x7f3efbe2f870 (channel=0x7f3efbd63280 type=5 id=0)
snd_channel_put: SndChannel=0x7f3efbe25f00 freed
red_channel_client_disconnect_dummy: rcc=0x7f3efbe21cc0 (channel=0x7f3efbd80f50 type=6 id=0)
snd_channel_put: SndChannel=0x7f3efbdec100 freed
2015-04-05 19:45:15.968+0000: shutting down


** Changed in: libvirt (Ubuntu)
       Status: Expired => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in Ubuntu.
https://bugs.launchpad.net/bugs/1390520

Title:
  virtual machine fails to start with connected audio cd

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



More information about the Ubuntu-server-bugs mailing list