Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Now I want to implement SCSI, hence I need an ATAPI device. I tried with -cdrom and many other flags but the ahci driver doesn't find the atapi device. What is the exact combination of flags needed to make an atapi device pop out in the ahci interface using qemu?
and it seems to be working; now two(?) ATAPI devices pop out after the enumeration.
I'm not sure why the simplest form -cdrom isn't working but I'm not as worried about that as the fact that two ATAPI are present. how do I discern which one is mine?
Bonfra wrote:after resetting the AHCI controller and probing the ports none of them contains an ATAPI device using -cdrom
It sounds like there's a bug in your AHCI driver. Linux has no problem finding the optical drive when using "-cdrom".
Bonfra wrote:how do I discern which one is mine?
Your drive will be the one with your disc in it. The default optical drive will be empty unless you use "-hdc" or "-cdrom" or "-device index=2" or "-nodefaults" to override it.
Well I updated qemu and now it works with -cdrom, maybe it was a buggy version, I also don't have the empty disk problem anymore using index=2 as you suggested. Thanks a lot