Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Apr 2008 19:17:17 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        Brett Davidson <brett@net24.co.nz>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Getting PXE booting to work on FreeBSD 7.0
Message-ID:  <39018114@bs1.sp34.ru>
In-Reply-To: <47F18B56.6030903@net24.co.nz> (Brett Davidson's message of "Tue\, 01 Apr 2008 14\:09\:42 %2B1300")
References:  <47F18B56.6030903@net24.co.nz>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 01 Apr 2008 14:09:42 +1300 Brett Davidson wrote:

> I have set up a Linux Boot DHCP server (for other reasons that
> hopefully will become obvious later) which points to the BSD based
> tftp server.

> I did try to recompile the BSD pxeboot program to use TFTP as per the
> following but this did not appear to work as booting it still prompted
> for an NFS path :

> echo LOADER_TFTP_SUPPORT=YES >> /etc/make.conf; cd /usr/src/sys/boot/;
> make clean; make depend; make; cp i386/pxeldr/pxeboot
> /tftpboot/freebsd

> So...

> I set up /etc/exports with "/tftpboot/ -alldirs ro", and started up nfs.
> This works fine for manual mounting and for installing via nfs after
> booting off CD but I get the following errors when PXE booting...

> pxe_open: server addr: <serverip>
> pxe_open: server path: /tftpboot/freebsd
> pxe_open: gateway ip: <subnetgatewayip>
> \
> can't load 'kernel'

take a look at /var/log/xferlog. You may find something helpful
there.

> The /tftpboot/freebsd/boot/loader.rc file contents are given here ( I
> have tried full OS paths to these as well to no avail) :

> echo Loading Kernel
> load /boot/kernel/kernel
> load linux.ko
> echo Booting
> load -r /mfs_root/mfsroot.gz
> echo \007\007
> echo initialiasing h0h0magic
> set vfs.root.mountfrom=ufs:/dev/md0c
> boot

> IMPORTANT: I am booting the client within a vmware-based instance
> (Vmware-server 1.0.4 on Centos 4.4) using bridged networking.

> I am obviously missing something obvious. Can you please point this
> out to me?! :-)


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39018114>