On Tue, Mar 23, 2010 at 7:58 PM, Michael C. Robinson
<[email protected]> wrote:
> On Tue, 2010-03-23 at 15:30 -0700, Larry Brigman wrote:
>> On Tue, Mar 23, 2010 at 2:22 PM, Michael C. Robinson
>> <[email protected]> wrote:
>> > I can mount /nfsroot/LFSPIII from Fedora 12 running locally, but I can't
>> > NFS root mount it.  I get a can't figure out port for nfsd and mountd
>> > error.  Why I can't get the port from a PXE boot but there is no problem
>> > whatsoever from a normal local boot is beyond me.
>> >
>> > I have tried googling for this problem, no dice.
>> >
>> > I have tried dumping the iptables firewall on the server, no dice.
>> >
>> > I have tried adding to /etc/hosts.allow, didn't help.
>> >
>> > I am wondering if something like:
>> >
>> > nfsd:   192.168.5.
>> >
>> > really works as intended?
>>
>> Have you walked through the NFS root How to docs?
>>
>> http://tinyurl.com/yfvhcpm
>
> Yes, I have.  Getting an error now that NFS is unavailable.
> Relevant portions of dhcp.conf on server:
>
> failover peer "dhcp"
> {
>   primary;
>   address 192.168.5.2;
>   port 647;
>
>   peer address 192.168.5.1;
>   peer port 647;
>   max-response-delay 60;
>   max-unacked-updates 10;
>   mclt 600;
>   split 128;
>   load balance max seconds 3;
>
>   peer address 192.168.5.4;
> }
>
>
>
> ddns-update-style none;
> authoritative;
> allow booting;
> #next-server 192.168.5.2;
>
> ...
>
> # %%% local lan %%%
> shared-network LAN-1
> {
>     subnet 192.168.5.0 netmask 255.255.255.0
>     {
>        pool
>        {
>          failover peer "dhcp";
>          range 192.168.5.129 192.168.5.254;
>          deny dynamic bootp clients;
>        }
>
>        option routers 192.168.5.6;
>        option domain-name-servers 192.168.5.1, 192.168.5.4;
>        option domain-name "robinson-west.com";
>        option broadcast-address 192.168.5.255;
>        option ntp-servers 192.168.5.2;
>     }
>
>
>
>     # PXE clients...
>     group
>     {
>          filename "pxelinux.0";
>
>          # parlor...
>          host vmeagle.robinson-west.com
>          {
>               hardware ethernet 00:0C:29:C2:B6:86;
>               fixed-address vmeagle.robinson-west.com;
>          }
>
>          host eagle.robinson-west.com
>          {
>               hardware ethernet 00:07:e9:86:ff:33;
>               fixed-address eagle.robinson-west.com;
>          }
>
>          # kitchen
>          host penguin.robinson-west.com
>          {
>               hardware ethernet 00:40:ca:58:65:75;
>               fixed-address penguin.robinson-west.com;
>          }
>     }
> ...
>
> Relevant PXE configuration:
>
> default:
>
> default menu.c32
> prompt 0
>
> menu title PXE Special Boot Menu
> menu INCLUDE pxelinux.cfg/graphics.conf
> MENU AUTOBOOT Starting Local System in # seconds
>
> label bootlocal
>  menu label ^Boot local boot loader
>  localboot 0
>  timeout 80
>  TOTALTIMEOUT 9000
>
> LABEL memtest
>  MENU LABEL ^memtest
>  KERNEL menu.c32
>  APPEND pxelinux.cfg/graphics.conf pxelinux.cfg/memtest.menu
>
> LABEL Setup Menu
>  MENU LABEL ^Setup Menu
>  KERNEL menu.c32
>  APPEND pxelinux.cfg/graphics.conf pxelinux.cfg/setup.menu
>
> LABEL LFS
>   MENU LABEL ^Load Linux From Scratch NFS root.
>   KERNEL menu.c32
>   APPEND pxelinux.cfg/graphics.conf pxelinux.cfg/nfsroot.menu
>
> nfsroot.menu:
>
> MENU TITLE Setup Menu
>
>    LABEL Main Menu
>      MENU LABEL ^Return to Main Menu
>      KERNEL menu.c32
>      APPEND pxelinux.cfg/default
>
>    label LFS_system
>      MENU PASSWD gooftroop
>      menu label Load Linux From Scratch system
>      kernel LFS/vmlinuz
>      APPEND rootfstype=nfs root=/dev/nfs \
> nfsroot=192.168.5.2:/nfsroot/LFSPIII,v3,rsize=16384,wsize=16384
> --ip=::::::dhcp
>
> /etc/hosts.allow:
>
> #
> # hosts.allow   This file describes the names of the hosts which are
> #               allowed to use the local INET services, as decided
> #               by the '/usr/sbin/tcpd' server.
> #
> lockd:          127.0.0.1
> lockd:          192.168.4.
> lockd:          192.168.5.
>
> mountd:         127.0.0.1
> mountd:         192.168.5.
> mountd:         192.168.4.
>
> rquotad:        127.0.0.1
> rquotad:        192.168.4.
> rquotad:        192.168.5.
>
> statd:          127.0.0.1
> statd:          192.168.4.
> statd:          192.168.5.
>
> bootpd:         127.0.0.1
> bootpd:         192.168.5.
> bootpd:         192.168.4.
>
> portmap:        127.0.0.1
> portmap:        192.168.5.
> portmap:        192.168.4.
>
> SSHD:           127.0.0.1
> SSHD:           192.168.5.
> SSHD:           192.168.4.
>
> in.tftpd:       127.0.0.1
> in.tftpd:       192.168.5.
> in.tftpd:       192.168.4.
>
> gdm:            127.0.0.1
> gdm:            192.168.5.
> gdm:            192.168.4.
>
> /etc/hosts.deny:
>
> ALL:ALL
>
> Like I said before, I can NFS root mount from Fedora 12 installed
> locally no problem.  For some reason, when I try to do an NFS root boot
> the server doesn't exist.  I'm beginning to wonder if IP
> autoconfiguration is not happening or something similar.

Can you pxe boot something like DSL and get the proper network info?

Also does the kernel have autoconfig turned on?  It took me about six
different kernel builds before
I got my 2.4 kernels working.  Also a initrd that has busybox in it
with an escape as init=/bin/sh, helps in troubleshooting
these problems.  I had to build my own initrd for nfs root boot.
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to