On 16/10/2020 02.12, Kevin Shell wrote:
> On Thu, Oct 15, 2020 at 09:58:02AM +0200, Max Reitz wrote:
[...]
> So, creating a drive object is a two step process for qemu,
> if={ide, scsi, sd, mtd, floppy, pflash, virtio} is just a shortcut?

Right.

> exp.
> first step is to define the drive object with
> -drive file=FILE,id=ID,if=none
> 
> second step is to attach the drive object to the device backend
> -device {ide, scsi, sd, mtd, floppy, pflash, virtio DEVICE},drive=ID
> 
> Is my understanding right here?

Right again.

It's quite confusing at the beginning, but once you're used to it, this
split configuration is more logical and allows more flexibility. Since it is
confusing in the beginning, I once even gave a presentation about this for
QEMU newcomers:

 https://archive.fosdem.org/2018/schedule/event/vai_qemu_jungle/

 HTH,
  Thomas


Reply via email to