Description of problem:
I recently needed to simulate a USB stick so that anaconda can load an updates.img contents from it. I added USB disk in virt-manager to my virtual machine and mounted the image, but anaconda didn't show it. According to hansg this is a virt bug.
(14:52:38) hansg: kparal, if the delay=0 thingie does not work, can you bot F-13 again in a virtual machine with the usb disk connected, and the do cat /sys/block/sda/capability, and tell me the output
(14:54:43) kparal: hansg: # cat /sys/block/sda/capability
(14:54:43) kparal: 52
(14:55:54) hansg: kparal, ok that is the issue, that is GENHD_FL_SUPPRESS_PARTITION_INFO + GENHD_FL_UP + GENHD_FL_MEDIA_CHANGE_NOTIFY
(14:56:19) hansg: So it does not include GENHD_FL_REMOVABLE, hence we do not show it in the list of devices to choice from where your updates.img is located.
(14:56:50) hansg: [hans@localhost ~]$ cat /sys/block/sdb/capability
(14:56:51) hansg: 53
(14:57:11) hansg: This is with a real usb stick on real hardware, and the 1 difference is GENHD_FL_REMOVABLE
(14:57:25) hansg: So I'm going to call this a virt bug.
Version-Release number of selected component (if applicable):
Created attachment 411592 [details]
virtual machine descriptor
Reproduced this. The device is definitely appearing as a USB MSD device in the guest. The 'removeable' flag in the kernel appears to be set based on the result of SCSI INQUIRY command, so it would seem that QEMU is not returning suitable data for this command with USB MSD devices.
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora
'version' of '12'.
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version prior to Fedora 12's end of life.
Bug Reporter: Thank you for reporting this issue and we are sorry that
we may not be able to fix it before Fedora 12 is end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora please change the 'version' of this
bug to the applicable version. If you are unable to change the version,
please add a comment here and someone will do it for you.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
The process we are following is described here:
This is still an issue for Fedora 14.
This has been filed upstream as https://bugs.launchpad.net/qemu/+bug/686613 for additional tracking.
F14 is end-of-life now. If anyone is still affected by this bug with newer qemu versions, I'd recommend following up in the (still open) upstream bug report mentioned in Comment #5