Bug 729225
Summary: | eject command in the guest does not works properly when guest using host cdrom | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Mike Cao <bcao> |
Component: | qemu-kvm | Assignee: | Amit Shah <amit.shah> |
Status: | CLOSED WONTFIX | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.2 | CC: | armbru, flang, juzhang, michen, mkenneth, pbonzini, rhod, sluo, tburke, virt-maint |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | 709314 | Environment: | |
Last Closed: | 2012-08-01 07:39:48 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 580948 |
Description
Mike Cao
2011-08-09 05:52:23 UTC
Host CDROM passthrough is difficult to get right due to multiple programs involved that need fixing. This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development. This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4. Please test the CD-ROM support using SCSI passthrough. If it works, we prefer to close this bug. (In reply to comment #6) > Please test the CD-ROM support using SCSI passthrough. > If it works, we prefer to close this bug. Hi Ronen, I have tested the CD-ROM with SCSI passthrough, it can work correctly. Steps: 1.boot a guest with a CD-ROM SCSI passthrough. e.g. # /usr/libexec/qemu-kvm -M rhel6.3.0 -enable-kvm -m 2048 -smp 2,sockets=1,cores=2,threads=1 -m 2G -usb -device usb-tablet,id=input0 -name sluo-test -drive file=/home/rhel6.3.5.31.0.qcow2,if=none,id=drive-virtio-disk-0,format=qcow2,cache=none,werror=stop,rerror=stop -device virtio-blk-pci,drive=drive-virtio-disk-0,id=virtio0,bootindex=1 -netdev tap,script=/etc/qemu-ifup,id=netdev0 -device virtio-net-pci,netdev=netdev0,id=device-net0 -spice port=5931,disable-ticketing -vga qxl -monitor stdio -boot menu=on -nodefconfig -nodefaults -drive file=/dev/sr0,if=none,media=cdrom,id=drive-scsi-sluo,format=raw,cache=none,werror=stop,rerror=stop -device virtio-scsi-pci,id=scsi -device scsi-block,drive=drive-scsi-sluo,id=scsi_sluo 2.# ls -l /dev/cdrom1 lrwxrwxrwx. 1 root root 3 Jul 23 19:39 /dev/cdrom1 -> sr0 # ls -l /dev/sr0 brw-rw----+ 1 root cdrom 11, 0 Jul 23 19:39 /dev/sr0 3.repeat popup and drop-in the CD-ROM SCSI passthrough device for 100 times. # eject /dev/sr0 # eject -t /dev/sr0 Result: after the step 3, the CD-ROM SCSI passthrough device can be popup and drop-in successfully. BTW, if i popup the CD-ROM SCSI passthrough device via 'eject -r /dev/sr0', it always fail to popup and prompt some 'Input/output error'. But if i use 'eject -s /dev/sr0' or 'eject /dev/sr0', it can popup the CD-ROM SCSI passthrough device correctly. I also try this test scenario on my host, they all work correctly. Maybe there a bug for SCSI passthrough, would i file a bug to track this issue. # eject -r /dev/sr0 eject: unable to eject, last error: Input/output error Best wish & thx. sluo Please create a separate bug for other behaviour. For this IDE one, I'll close it. (In reply to comment #8) > Please create a separate bug for other behaviour. For this IDE one, I'll > close it. hi amit, I have separated it in bz #842946, but paol close it to NOTABUG, could you help check it. Thanks. sluo |