Received: from eggs.gnu.org ([140.186.70.92]:41552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlFvC-0004EK-Pn for qemu-devel@nongnu.org; Mon, 25 Jul 2011 03:49:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlFvB-0001Kl-5I for qemu-devel@nongnu.org; Mon, 25 Jul 2011 03:49:50 -0400 Received: from tyo201.gate.nec.co.jp ([202.32.8.193]:59604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlFvA-0001KV-Ky for qemu-devel@nongnu.org; Mon, 25 Jul 2011 03:49:49 -0400 Date: Mon, 25 Jul 2011 16:44:58 +0900 From: Minoru Usui Message-Id: <20110725164458.267a8197.usui@mxm.nes.nec.co.jp> In-Reply-To: <20110724063049.GM3044@redhat.com> References: <20110722095116.56bf87c5.usui@mxm.nes.nec.co.jp> <20110724063049.GM3044@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Boot order problem List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gleb Natapov Cc: qemu-devel@nongnu.org On Sun, 24 Jul 2011 09:30:49 +0300 Gleb Natapov wrote: > On Fri, Jul 22, 2011 at 09:51:16AM +0900, Minoru Usui wrote: > > Hi, everyone > > > > I'm in trouble about boot order of VM. > > If anyone know cause of this problem, please let me know. > > > The cause of the "problem" is the design. booindex and -boot only > modifies the order in which bios will search for bootable device. > It does not exclude devices from a boot device list. > > > On following environment, I tried to boot from IDE CD-ROM device > > without inserting any bootable media, which is expected to fail, > > but VM was booting up from virtio HDD which was not specified as bootable device. > > > > * host : RHEL6.1(x86_64) > > guest: RHEL6.1(x86_64) > > * VM has IDE CD-ROM and virtio HDD. > > * There is no bootable media in IDE CD-ROM. > > * RHEL6.1 is installed in virtio HDD > > * Only IDE CD-ROM was spcified as bootable device. > > * XML configuration of libvirt is below. > > I tested and setting, > > but both are booting up from virtio HDD. > > ------------------------------------------------------- > > [ setting version] > > > > hvm > > > > > > > > > > [ setting version] > > > > > > > > > > > >
> > > > ------------------------------------------------------- I tested another one about case on RHEL6.1, and I also faced another problem. VM has two virtio HDD. HDD1 is installed RHEL6.1, HDD2 is empty. I specified boot order to HDD1:1, HDD2:2, VM booted up from HDD1, but boot order HDD1:2, HDD2:1 case, VM couldn't boot up from HDD2. (It searched CD-ROM, NIC(gPXE), and finally stopped booting.) It seems seabios searches only 1 device per device list(HDD, CD-ROM, NET, FLOPPY). Is it true? can specify per device, so shouldn't seabios search all device, even if it specifies multiple device per device list? -- Minoru Usui