Received: from eggs.gnu.org ([140.186.70.92]:42197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RidcU-0007GN-7h for qemu-devel@nongnu.org; Wed, 04 Jan 2012 22:03:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RidcT-00019s-7Q for qemu-devel@nongnu.org; Wed, 04 Jan 2012 22:03:58 -0500 Received: from mail-vw0-f45.google.com ([209.85.212.45]:39378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RidcT-00019o-5C for qemu-devel@nongnu.org; Wed, 04 Jan 2012 22:03:57 -0500 Received: by vbip1 with SMTP id p1so88061vbi.4 for ; Wed, 04 Jan 2012 19:03:56 -0800 (PST) Date: Wed, 4 Jan 2012 22:03:53 -0500 From: Kevin O'Connor Message-ID: <20120105030353.GA9589@morn.localdomain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] Boot order problem and disable iPXE/gPXE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerhard Wiesinger Cc: qemu-devel@nongnu.org On Wed, Jan 04, 2012 at 07:02:34PM +0100, Gerhard Wiesinger wrote: > Hello, > > I'm having the following boot order problem using an SCSI option ROM: > > Command line: > /root/download/qemu/git/qemu-kvm/x86_64-softmmu/qemu-system-x86_64 > -drive file=1.img,media=disk,if=scsi,bus=0,unit=0 > -drive file=2.img,media=disk,if=scsi,bus=0,unit=1 > -drive file=3.img,media=disk,if=scsi,bus=0,unit=2 > -drive file=4.img,media=disk,if=scsi,bus=0,unit=3 > -cdrom KNOPPIX_V6.2CD-2009-11-18-DE.iso > -boot order=c -m 256 -k de -vga vmware -vnc :0 > -bios /root/download/seabios/git/seabios/out/bios.bin -option-rom > BIOS/8xx_64.rom > -net nic,model=rtl8139,macaddr=1a:46:0b:ca:bc:7c > -net tap,ifname=tap0,script=no,downscript=no > > Still boots the cdrom instead of harddisk. So it is impossible to > have a bootable CDROM in the VM without booting from it. > > Going into boot menu (-boot order=c,menu=on)and selecting HD works well. > Any ideas to fix it? There is a "bootindex" option that can be passed to the "-device" parameter of QEMU. This option give more fine grained control of boot order. However, the default should have been to boot from a harddrive first, so I'm not sure why you see the cdrom first. You could add the following to the QEMU command line to see the seabios debugging info: -chardev stdio,id=seabios -device isa-debugcon,iobase=0x402,chardev=seabios -Kevin