qemu-discuss
[Top][All Lists]
Advanced

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

Re: -drive syntax


From: Thomas Huth
Subject: Re: -drive syntax
Date: Fri, 16 Oct 2020 06:38:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0

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

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