Commit e0e7ada1d557ca33f8bd96b3e2a446f2f531d08c
1 parent
66f1cdbd
Update documention with '-drive' usage (Laurent Vivier).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3807 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
70 additions
and
0 deletions
qemu-doc.texi
... | ... | @@ -227,6 +227,76 @@ Use @var{file} as CD-ROM image (you cannot use @option{-hdc} and |
227 | 227 | @option{-cdrom} at the same time). You can use the host CD-ROM by |
228 | 228 | using @file{/dev/cdrom} as filename (@pxref{host_drives}). |
229 | 229 | |
230 | +@item -drive @var{option}[,@var{option}[,@var{option}[,...]]] | |
231 | + | |
232 | +Define a new drive. Valid options are: | |
233 | + | |
234 | +@table @code | |
235 | +@item file=@var{file} | |
236 | +This option defines which disk image (@pxref{disk_images}) to use with | |
237 | +this drive. | |
238 | +@item if=@var{interface} | |
239 | +This option defines on which type on interface the drive is connected. | |
240 | +Available types are: ide, scsi, sd, mtd, floppy, pflash. | |
241 | +@item bus=@var{bus},unit=@var{unit} | |
242 | +These options define where is connected the drive by defining the bus number and | |
243 | +the unit id. | |
244 | +@item index=@var{index} | |
245 | +This option defines where is connected the drive by using an index in the list | |
246 | +of available connectors of a given interface type. | |
247 | +@item media=@var{media} | |
248 | +This option defines the type of the media: disk or cdrom. | |
249 | +@item cyls=@var{c},heads=@var{h},secs=@var{s}[,trans=@var{t}] | |
250 | +These options have the same definition as they have in @option{-hdachs}. | |
251 | +@item snapshot=@var{snapshot} | |
252 | +@var{snapshot} is "on" or "off" and allows to enable snapshot for given drive (see @option{-snapshot}). | |
253 | +@end table | |
254 | + | |
255 | +Instead of @option{-cdrom} you can use: | |
256 | +@example | |
257 | +qemu -drive file=file,index=2,media=cdrom | |
258 | +@end example | |
259 | + | |
260 | +Instead of @option{-hda}, @option{-hdb}, @option{-hdc}, @option{-hdd}, you can | |
261 | +use: | |
262 | +@example | |
263 | +qemu -drive file=file,index=0,media=disk | |
264 | +qemu -drive file=file,index=1,media=disk | |
265 | +qemu -drive file=file,index=2,media=disk | |
266 | +qemu -drive file=file,index=3,media=disk | |
267 | +@end example | |
268 | + | |
269 | +You can connect a CDROM to the slave of ide0: | |
270 | +@example | |
271 | +qemu -drive file=file,if=ide,index=1,media=cdrom | |
272 | +@end example | |
273 | + | |
274 | +If you don't specify the "file=" argument, you define an empty drive: | |
275 | +@example | |
276 | +qemu -drive if=ide,index=1,media=cdrom | |
277 | +@end example | |
278 | + | |
279 | +You can connect a SCSI disk with unit ID 6 on the bus #0: | |
280 | +@example | |
281 | +qemu -drive file=file,if=scsi,bus=0,unit=6 | |
282 | +@end example | |
283 | + | |
284 | +Instead of @option{-fda}, @option{-fdb}, you can use: | |
285 | +@example | |
286 | +qemu -drive file=file,index=0,if=floppy | |
287 | +qemu -drive file=file,index=1,if=floppy | |
288 | +@end example | |
289 | + | |
290 | +By default, @var{interface} is "ide" and @var{index} is automatically | |
291 | +incremented: | |
292 | +@example | |
293 | +qemu -drive file=a -drive file=b" | |
294 | +@end example | |
295 | +is interpreted like: | |
296 | +@example | |
297 | +qemu -hda a -hdb b | |
298 | +@end example | |
299 | + | |
230 | 300 | @item -boot [a|c|d|n] |
231 | 301 | Boot on floppy (a), hard disk (c), CD-ROM (d), or Etherboot (n). Hard disk boot |
232 | 302 | is the default. | ... | ... |