qemu-discuss
[Top][All Lists]
Advanced

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

Re: [Qemu-discuss] 答复: How to connect megasas to its backend?


From: Jakob Bohm
Subject: Re: [Qemu-discuss] 答复: How to connect megasas to its backend?
Date: Tue, 07 Apr 2015 09:46:15 +0200
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

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 <address@hidden>
发送时间: 2015年4月7日 14:50
收件人: Ming Lin
抄送: address@hidden
主题: 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

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