From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: Failure to boot CDROM with -drive arg Date: Tue, 08 Jul 2008 08:01:47 -0500 Message-ID: <4873653B.3000103@codemonkey.ws> References: <20080708083730.GC24934@redhat.com> <20080708091724.GA4861@ralph.linux2go.dk> <20080708092149.GF24934@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: "Daniel P. Berrange" Return-path: Received: from rn-out-0910.google.com ([64.233.170.189]:60883 "EHLO rn-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752076AbYGHNCR (ORCPT ); Tue, 8 Jul 2008 09:02:17 -0400 Received: by rn-out-0910.google.com with SMTP id k40so529782rnd.17 for ; Tue, 08 Jul 2008 06:02:13 -0700 (PDT) In-Reply-To: <20080708092149.GF24934@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Daniel P. Berrange wrote: > On Tue, Jul 08, 2008 at 11:17:24AM +0200, Soren Hansen wrote: > >> On Tue, Jul 08, 2008 at 09:37:30AM +0100, Daniel P. Berrange wrote: >> >>> The following two command lines should be identical from the user's >>> point of view: >>> >>> # qemu-kvm -cdrom /home/berrange/boot.iso -boot d -m 500 >>> >>> # qemu-kvm -drive file=/home/berrange/boot.iso,if=ide,media=cdrom,index=2,boot=on -m 500 >>> >> http://sourceforge.net/tracker/index.php?func=detail&aid=1977971&group_id=180599&atid=893831 >> > > Ok, so basically this is saying that boot=on only works for media=disk. > I really don't like the fact that we now have 2 different ways of flagging > bootable disks, depending on whether want to use BIOS boot or extboot. > Semantically, boot=on means "make this the first bootable hard disk". That's not to say that there shouldn't be a check. If you did: qemu-system-x86 -drive file=foo.img,boot=on -boot d You would still boot from the cdrom. Regards, Anthony Liguori > The management apps shouldn't have to make such a decision - QEMU should > be picking the most appropriate choice for us. ie, if we have boot=on > with an IDE cdrom, then QEMU should automatically do a BIOS boot instead > of extboot. This way if extboot gets improved, QEMU can update its logic > to correspond without needing to change all the management apps using > QEMU. > > Daniel >