From patchwork Tue Apr 7 21:22:47 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Volker_R=C3=BCmelin?= X-Patchwork-Id: 16952 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n37LMTfu005507 for ; Tue, 7 Apr 2009 21:22:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755959AbZDGVW0 (ORCPT ); Tue, 7 Apr 2009 17:22:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755795AbZDGVW0 (ORCPT ); Tue, 7 Apr 2009 17:22:26 -0400 Received: from moutng.kundenserver.de ([212.227.126.187]:54715 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755424AbZDGVWZ (ORCPT ); Tue, 7 Apr 2009 17:22:25 -0400 Received: from power (p5B203211.dip0.t-ipconnect.de [91.32.50.17]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis) id 0ML2xA-1LrIkS0HZG-0001Xv; Tue, 07 Apr 2009 23:22:24 +0200 From: =?iso-8859-1?Q?Volker_R=FCmelin?= To: Subject: [PATCH] boot=on option is missing in qemu-options.hx. Libvirt needs this information. Date: Tue, 7 Apr 2009 23:22:47 +0200 Message-ID: <3CDD25F8D04646A5B79DA23264B7202D@power> MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6838 Importance: Normal Thread-Index: Acm3xnQdMIc+Hu0oRyKlW0biLnXS+w== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Provags-ID: V01U2FsdGVkX1/TS0V55KbFCrnn/+zpJOuuXsGZapCUfDUrMEG 3uaV0or5guYWj4XXCaxiU6BNlXBP65zAKnG0fzrLpbbHdRY5L9 kAf4NI3YfzAszCygK/Xr9DdmRR6zUOv Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Libvirt parses qemu-kvm -help output for boot=on. Without this it's not possible to boot from a virtio block device. --- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- kvm-85rc3/qemu/qemu-options.hx.org +++ kvm-85rc3/qemu/qemu-options.hx @@ -77,6 +77,7 @@ "-drive [file=file][,if=type][,bus=n][,unit=m][,media=d][,index=i]\n" " [,cyls=c,heads=h,secs=s[,trans=t]][,snapshot=on|off]\n" " [,cache=writethrough|writeback|none][,format=f][,serial=s]\n" + " [,boot=on|off]\n" " use 'file' as a drive image\n") STEXI @item -drive @var{option}[,@var{option}[,@var{option}[,...]]] @@ -111,6 +112,9 @@ an untrusted format header. @item serial=@var{serial} This option specifies the serial number to assign to the device. +@item boot=@var{boot} +@var{boot} if "on" enables extboot for a given drive so it can be used +as a boot drive. @end table By default, writethrough caching is used for all block device. This means that @@ -163,6 +167,11 @@ qemu -drive file=file,if=scsi,bus=0,unit=6 @end example +To boot from as SCSI disk, one would use: +@example +qemu -drive file=file,if=scsi,boot=on +@end example + Instead of @option{-fda}, @option{-fdb}, you can use: @example qemu -drive file=file,index=0,if=floppy