On 07/04/2015 09:05, Yu Hou (侯雨) wrote:
Hi, all,

may I ask a question?

How to write the -drive and -device parameter to specify two files to work as 
two partitions/drivers in qemu?
I am hoping to use virtio-blk-device, thanks!
Please start your own thread next time.

Simply provide more than one pair of --device and --drive
options, one for each virtual drive.

If using virtio-blk-device, there is no option for a
virtual SCSI adapter, otherwise multiple drives can share
a single SCSI adapter.

________________________________________
Hannes Reinecke <h...@suse.de>
发送时间: 2015年4月7日 14:50
收件人: Ming Lin
抄送: qemu-discuss@nongnu.org
主题: Re: [Qemu-discuss] How to connect megasas to its backend?

On 04/03/2015 08:40 AM, Ming Lin wrote:
Hi,

For nvme, it uses "drive=" property to connect to backend.
-drive file=/path/to/image,if=none,id=foo -device nvme,drive=foo,serial=1234

But megasas doesn't have "drive" property.
Could you share qemu commands to connect megasas device to its backend drive?

Of course megasas doesn't. Megasas is a SCSI HBA emulation, not a
SCSI device emulation.

You'd have to use two device specifications here:

-drive file=/path/to/image,if=none,id=foo -device megasas,id=raid
-device scsi-disk,drive=foo,serial=1234,bus=raid.0

or

-device scsi-disk,drive=foo,serial=1234,scsi-id=0



Enjoy

Jakob
--
Jakob Bohm, CIO, Partner, WiseMo A/S.  https://www.wisemo.com
Transformervej 29, 2860 Søborg, Denmark.  Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded

Reply via email to