From owner-freebsd-questions@FreeBSD.ORG Sat Aug 2 17:15:37 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9FE4106566B for ; Sat, 2 Aug 2008 17:15:37 +0000 (UTC) (envelope-from davidcollins001@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.28]) by mx1.freebsd.org (Postfix) with ESMTP id 60ED38FC19 for ; Sat, 2 Aug 2008 17:15:37 +0000 (UTC) (envelope-from davidcollins001@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so669614ywe.13 for ; Sat, 02 Aug 2008 10:15:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Nheyelm8NdS/1mcyZzeILZyQE76WNhCm5ac8YNJdqF4=; b=oWF+JDcH6cwPjyrNOxDtd1V0UGons3SFqypeWwatDKchoS3nwiBAo4+qvmZg9EoIDf OJIZRoDGLXBbxT3m2MDrKDj0FHGBS4gY9XQUQl9JvQqDOjmYdWSwC1bbsNw49uiG03wx QPTl/T4b5VYwS7FF/SGlER9Sah6WhEb8kOuXM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=LJUFMy/GMDfrThAe/79GHP8btZl81MIuD3hidmYS241veZEW57yuaUFtSC0q4JwLXx TxhMw6ZOJi5/f6ykEjiQ/fAIq4ARGoJE9htSeArcnwIaHAn/3nI+HF3K0VzhLyG+uPd1 R11/F65IHmippJBzYrGan42K9CR/fbwoEdaIw= Received: by 10.151.102.16 with SMTP id e16mr5311955ybm.80.1217697336257; Sat, 02 Aug 2008 10:15:36 -0700 (PDT) Received: by 10.151.141.2 with HTTP; Sat, 2 Aug 2008 10:15:35 -0700 (PDT) Message-ID: <1b30fd140808021015m69f993e3g84f0dbe169621023@mail.gmail.com> Date: Sat, 2 Aug 2008 18:15:35 +0100 From: davidcollins001@gmail.com To: Ross In-Reply-To: <1341640629.20080730121019@connection.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1b30fd140807291632v491323d4jb4371ec1303bd5a9@mail.gmail.com> <1341640629.20080730121019@connection.ca> Cc: freebsd-questions@freebsd.org Subject: Re: pxeboot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2008 17:15:37 -0000 Hi, Thanks both for your replies. I think the top of that article applies to me, in that I am trying to do something that I don't fully understand! I am fairly confident that I have the DHCP and TFTP setup correctly in as much as I get pxeboot on the booted machine (and I have gotten it working in linux). So here is my understandin at the moment: At boot time the netcard does its dhcp thing, gets an ip address pulls the "filename" from the tftp server (which is pxeboot). At this point pxeboot executes and acts much like loader. It mounts the nfs server at "option root-path" specified in the dhcpd.conf on the server, then loads boot/loader.rc from the mounted drive, then all the lovelies of BSD loader begin. I think that now I have this in my head straight I am able to get it working. I tried the following in my boot/loader.rc. The main reason for the oddities in my last email was that I didn't understand what the .rc and .conf files did, the 3 read lines were mainly debugging and trying to understand what was happening. > echo Loading /boot/loader.rc > > set mfsroot_type="mfs_root" > set mfsroot_name="/mfsroot > set vfs.root.mountfrom="ufs:/dev/md0c" > > load -t mfs_root /mfsroot > > autoboot 5 At this point I still get the compter rebooting (I have gunzipped mfsroot to avoid the bug with it).. I am not convinced that I have loader.rc setup correctly. Where are the filenames in it relative to, is it relative to the nfs mount point too, in which case should the file be /boot/mfsroot? Is it possible to see an example of someones loader.rc that works? I have also tried tftp only pxeboot by making pxeboot with "make -DLOADER_TFTP_SUPPORT=YES" but I don't think that I had the files correctly located. Am I correct in thinking that in this case it will search for boot/loader.rc relative to the tftp server path? I found a book in my library that had a section on pxe booting, I was sad to see that although they had described setting up the dhcp and tftp servers they completely glossed over the actual setup of and how to use pxeboot! Thanks for help, it is greatly appreciated. David