From owner-freebsd-emulation@FreeBSD.ORG Wed May 7 08:38:27 2008 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D36FE106564A for ; Wed, 7 May 2008 08:38:27 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (ns1.bitblocks.com [64.142.15.60]) by mx1.freebsd.org (Postfix) with ESMTP id 9A1298FC1A for ; Wed, 7 May 2008 08:38:27 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost.bitblocks.com [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id 72C0E5B47; Wed, 7 May 2008 01:21:08 -0700 (PDT) To: Edwin Groothuis In-reply-to: Your message of "Wed, 07 May 2008 16:01:19 +1000." <20080507060119.GA50020@k7.mavetju> Date: Wed, 07 May 2008 01:21:08 -0700 From: Bakul Shah Message-Id: <20080507082108.72C0E5B47@mail.bitblocks.com> Cc: emulation@freebsd.org Subject: Re: QEMU with network boot X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2008 08:38:28 -0000 On Wed, 07 May 2008 16:01:19 +1000 Edwin Groothuis wrote: > On Wed, May 07, 2008 at 01:43:12PM +1000, Edwin Groothuis wrote: > > On Wed, May 07, 2008 at 01:22:31PM +1000, Edwin Groothuis wrote: > > > When I start the qemu host with "-boot n", I see the DHCP requests > > > and answers going over the wire (... tap device ...) but the NIC > > > keeps saying that it can't get an IP address. This is the network > > > output of it: > > > > http://pxe.dev.aboveaverageurl.com/index.php/PXE_Booting gave the > > hint: I needed a next-server statement. > > I'll submit a PR for the manpage of pxeboot for this, because the > behaviour of the ISC-DHCP has changed with version 3.0.3 about this > (See http://www.mavetju.org/weblog/html/00110.html, I knew I had > seen this before) > > > It's now through to its TFTP phase. Sorry about the noise! > > I have moved the file /boot/pxeboot to my tftpboot directory, it > gets loaded but then QEMU complains about: > > ......TFTP download complete, but Unable to load file. > > And restarts. Not sure what goes wrong... See my message to Freebsd-emulation, dated 23 Apr 2007 12:23:09 PDT. With the patched and recompiled etherboom ROM now it gets to pxeboot loader's OK prompt. NFS MOUNT fails but it gets further than I remember! $ qemu-system-x86_64 \ -net tap -net nic,macaddr=52:54:0:12:34:56,model=rtl8139 \ -option-rom pxe-rtl8129.bin -boot n \ -curses img ------------------------------------------------------------------------------- ....................................................................PXE2done PXE3PXE Loader 1.00 Building the boot loader arguments Relocating the loader and the BTX Starting the BTX loader BTX loader 1.00 BTX version is 1.02 Consoles: internal video/keyboard BIOS drive C: is disk0 PXE version 2.1, real mode entry point @9f00:0680 BIOS 639kB/128967kB available memory FreeBSD/i386 bootstrap loader, Revision 1.1 (bakul@free.bitblocks.com, Tue Apr 24 10:30:38 PDT 2007) pxe_open: server addr: 172.20.0.1 pxe_open: server path: /usr/tftproot pxe_open: gateway ip: 172.20.0.1 NFS MOUNT RPC error: 13 \ can't load 'kernel' Type '?' for a list of commands, 'help' for more detailed help. OK -------------------------------------------------------------------------------