Your -hda parameter is not associated with -device paramater in any way. Here's an example of attaching drive to ahci bus, try modifying it to suit your needs:

-device ahci,id=ahci0 \
-device ide-hd,bus=ahci0.0,drive=drive0 \
-drive if=none,id=drive0,media=disk,file=/path/to/image.qcow2

/--Regards, Aleksei

/
On 15/11/17 12:21, Ian Chapman wrote:
Hi,

Using qemu-system-i386, it seems completely impossible to attach a media image to a SCSI controller, other than the default which is an lsi53c895a. I specifically want to use the lsi53c810. As soon as I specify if=scsi as part of the -drive line, it insists on creating a lsi53c895a and attaching it to that, regardless of what bus number or index number I specify. What am I missing?

Example command line: (Linux, qemu 2.9.1)

qemu-system-i386 -L . -M pc -hda disk.qcow2 \
-device lsi53c810,multifunction=on \
-m size=128M \
-drive if=scsi,index=0,media=cdrom,file=cd.iso



Reply via email to