From owner-freebsd-questions@FreeBSD.ORG Wed Jul 21 07:58:46 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E767916A4CE for ; Wed, 21 Jul 2004 07:58:46 +0000 (GMT) Received: from panther.sge.net (panther.sge.net [152.91.9.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 452D543D39 for ; Wed, 21 Jul 2004 07:58:46 +0000 (GMT) (envelope-from Liam.Hudson@asic.gov.au) Received: from imssscanner05.sge.net (hahn.sge.net [152.91.9.101]) by panther.sge.net (Postfix) with ESMTP id C8B8A1B063 for ; Wed, 21 Jul 2004 17:58:44 +1000 (EST) Received: from imssscanner05.sge.net (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id 3C1309ACE8 for ; Wed, 21 Jul 2004 18:02:06 +1000 (EST) Received: from coopers.sge.net (coopers.svc.sge.net [10.1.2.233]) by imssscanner05.sge.net (Postfix) with ESMTP id 20A749ACD8 for ; Wed, 21 Jul 2004 08:02:06 +0000 (UTC) Received: by coopers.sge.net (Postfix, from userid 5) id 94B3D766C7; Wed, 21 Jul 2004 17:58:43 +1000 (EST) Received: from nodnsquery(10.1.3.1) by coopers.sge.net via csmap (V6.0) id srcAAA_IaaRn; Wed, 21 Jul 04 17:58:43 +1000 Received: from tridymite.sge.net (tridymite.sge.net [172.16.102.129]) by adamite.sge.net (Postfix) with ESMTP id EB1FB4A44A for ; Wed, 21 Jul 2004 17:58:42 +1000 (EST) Received: from rbamsw1.asic.gov.au (asic-mimesweeper [10.11.2.19]) by tridymite.sge.net (Postfix) with ESMTP id 3A2C3A6403 for ; Wed, 21 Jul 2004 17:58:42 +1000 (EST) Received: from rbagln2.asic.gov.au (rbagln2.asic.gov.au) by rbamsw1.asic.gov.au (Content Technologies SMTPRS 4.3.10) with SMTP id for ; Wed, 21 Jul 2004 17:58:42 +1000 Received: from rbagln2.asic.gov.au ([127.0.0.1]) by rbagln2 with InterScan Messaging Security Suite; Wed, 21 Jul 2004 17:58:41 +1000 To: freebsd-questions@freebsd.org X-Mailer: Lotus Notes Release 5.0.8 June 18, 2001 Message-ID: From: "Liam Hudson" Date: Wed, 21 Jul 2004 17:58:39 +1000 X-MIMETrack: Serialize by Router on RBAGLN2/Sydney/NSW/ASIC (Release 5.0.11 |July 24, 2002) at 21/07/2004 05:58:41 PM MIME-Version: 1.0 Content-type: text/plain; charset="us-ascii" Subject: freebsd pxeboot problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2004 07:58:47 -0000 Hi all, Am having trouble with pxeboot on freebsd 5.1. Am following procedure at http://www.tnpi.biz/computing/freebsd/pxe-netboot.shtml (relevant bit pasted at bottom). This procedure states to create an empty 25Mb file using dd, make a fs out of it (disklabel/newfs/mdconfig), then rsync the contents of mfsroot to this fs. This is then used as the rootfs on the pxeboot client (set vfs.root.mountfrom=ufs:/dev/md0c). When I try this, the client hangs forever on "boot" in loader.rc. However, if I simply create a fs using mdconfig and use this on the client, it boots to sysinstall ok (ie gunzip mfsroot.gz; mdconfig -a -t vnode -f mfsroot -u0). I can even mount this fs before I pxeboot and put an install.cfg file there. However, when the client reads it, it hangs when trying to mount server:/usr/local/export/freebsd to install the distribution ("Mounting x.x.x.x:/usr/local/export/freebsd over NFS on /dist"). I tried exporting the /usr without -ro but no difference. Suspect there is no room on the mfsroot fs more mounting nfs (since I haven't got a 25Mb file). Has anybody set this up before. I have seen somebody else had this problem on freebsd list, but no response. Any help would be appreciated. (Do I summarise back to this list?). Thanks =========================================================================== cd /usr/local/export/pxe dd if=/dev/zero of=mfsroot bs=1k count=25000 mdconfig -a -t vnode -f mfsroot -u0 disklabel -r -w md0 auto newfs /dev/md0c mkdir -p /mnt/mfs mount /dev/md0 /mnt/mfs There, now we've got 25 megs of space mounted on /mnt to play with. The basic rule of thumb here to keep in mind is that you are building a root file system for FreeBSD. Everything the kernel, sysinstall, and your install programs needs from the root file system is what you need to have in your /mnt directory. To get started we'll copy the contents of the distribution mfsroot.flp to our new mfsroot: mkdir /mnt/floppy mdconfig -a -t vnode -u 1 -f /usr/local/export/freebsd5.1/floppies/mfsroot.flp mount /dev/md1 /mnt/floppy cp /mnt/floppy/mfsroot.gz /tmp umount /mnt/floppy mdconfig -d -u 1 gunzip /tmp/mfsroot.gz mdconfig -a -t vnode -u 1 -f /tmp/mfsroot mount /dev/md1 /mnt/floppy rsync -avzH /mnt/floppy/ /mnt/mfs umount /mnt/floppy mdconfig -d -u 1