qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] Can't attach to SCSI controller


From: Ian Chapman
Subject: Re: [Qemu-discuss] Can't attach to SCSI controller
Date: Thu, 16 Nov 2017 18:32:38 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

Hi Aleksei,

Thanks for that, that seemed to do the trick! :-) Is this documented anywhere? I didn't notice any of this in the man page or at least it doesn't seem to be. For reference, it was the CD image I wanted attached to a specific SCSI controller, so this is why I have now and works. Thanks Aleksei.

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

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

--
Ian Chapman.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]