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 10:14:23 -0500 Message-ID: <4873844F.7040107@codemonkey.ws> References: <20080708083730.GC24934@redhat.com> <20080708091724.GA4861@ralph.linux2go.dk> <20080708092149.GF24934@redhat.com> <4873653B.3000103@codemonkey.ws> <1215524729.3805.21.camel@frecb07144> <487380DB.5080108@codemonkey.ws> <1215529409.3805.24.camel@frecb07144> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: "Daniel P. Berrange" , kvm@vger.kernel.org To: Laurent Vivier Return-path: Received: from ti-out-0910.google.com ([209.85.142.191]:39894 "EHLO ti-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753768AbYGHPOw (ORCPT ); Tue, 8 Jul 2008 11:14:52 -0400 Received: by ti-out-0910.google.com with SMTP id b6so829608tic.23 for ; Tue, 08 Jul 2008 08:14:51 -0700 (PDT) In-Reply-To: <1215529409.3805.24.camel@frecb07144> Sender: kvm-owner@vger.kernel.org List-ID: Laurent Vivier wrote: > Le mardi 08 juillet 2008 =C3=A0 09:59 -0500, Anthony Liguori a =C3=A9= crit : > =20 >> Laurent Vivier wrote: >> =20 >>> So, "boot=3Don" means in fact "bootable=3Dtrue" >>> =20 >>> =20 >> I guess. I don't know that the later is more clear. I think the so= urce=20 >> of the confusion is the entire concept of "first bootable harddisk"=20 >> which is what -boot c really means. >> >> FWIW, the reason media=3Dcdrom,boot=3Don doesn't work, is that a CDR= OM's=20 >> boot record is in el torito format instead of the traditional BIOS b= oot=20 >> sector. >> >> media=3Dcdrom,boot=3Don would work if the image was a disk image ins= tead of=20 >> an ISO. >> >> In fact, I'm inclined to think that media=3Dcdrom,boot=3Don should n= ot be=20 >> explicitly prohibited because of this fact. >> =20 > > To simplify, I think qemu should ignore "boot=3Don" when "if=3Dide". > =20 It's necessary to boot from anything other than hda. For instance: qemu-system-x86_64 -hda foo.img -drive file=3Dboo.img,if=3Dide,boot=3Do= n -boot c Regards, Anthony Liguori > Laurent > =20