--- qemu-doc.texi | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) Index: qemu/qemu-doc.texi =================================================================== --- qemu.orig/qemu-doc.texi 2007-12-10 10:27:32.000000000 +0100 +++ qemu/qemu-doc.texi 2007-12-10 10:35:21.000000000 +0100 @@ -227,6 +227,76 @@ Use @var{file} as CD-ROM image (you cann @option{-cdrom} at the same time). You can use the host CD-ROM by using @file{/dev/cdrom} as filename (@pxref{host_drives}). address@hidden -drive @var{option}[,@var{option}[,@var{option}[,...]]] + +Define a new drive. Valid options are: + address@hidden @code address@hidden address@hidden +This option defines which disk image (@pxref{disk_images}) to use with +this drive. address@hidden address@hidden +This option defines on which type on interface the drive is connected. +Available types are: ide, scsi, sd, mtd, floppy, pflash. address@hidden address@hidden,address@hidden +These options define where is connected the drive by defining the bus number and +the unit id. address@hidden address@hidden +This option defines where is connected the drive by using an index in the list +of available connectors of a given interface type. address@hidden address@hidden +This option defines the type of the media: disk or cdrom. address@hidden address@hidden,address@hidden,address@hidden,address@hidden +These options have the same definition as they have in @option{-hdachs}. address@hidden address@hidden address@hidden is "on" or "off" and allows to enable snapshot for given drive (see @option{-snapshot}). address@hidden table + +Instead of @option{-cdrom} you can use: address@hidden +qemu -drive file=file,index=2,media=cdrom address@hidden example + +Instead of @option{-hda}, @option{-hdb}, @option{-hdc}, @option{-hdd}, you can +use: address@hidden +qemu -drive file=file,index=0,media=disk +qemu -drive file=file,index=1,media=disk +qemu -drive file=file,index=2,media=disk +qemu -drive file=file,index=3,media=disk address@hidden example + +You can connect a CDROM to the slave of ide0: address@hidden +qemu -drive file=file,if=ide,index=1,media=cdrom address@hidden example + +If you don't specify the "file=" argument, you define an empty drive: address@hidden +qemu -drive if=ide,index=1,media=cdrom address@hidden example + +You can connect a SCSI disk with unit ID 6 on the bus #0: address@hidden +qemu -drive file=file,if=scsi,bus=0,unit=6 address@hidden example + +Instead of @option{-fda}, @option{-fdb}, you can use: address@hidden +qemu -drive file=file,index=0,if=floppy +qemu -drive file=file,index=1,if=floppy address@hidden example + +By default, @var{interface} is "ide" and @var{index} is automatically +incremented: address@hidden +qemu -drive file=a -drive file=b" address@hidden example +is interpreted like: address@hidden +qemu -hda a -hdb b address@hidden example + @item -boot [a|c|d|n] Boot on floppy (a), hard disk (c), CD-ROM (d), or Etherboot (n). Hard disk boot is the default.