Subject: "Diskless boot" problems
To: None <port-i386@NetBSD.ORG>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: port-i386
Date: 07/08/1997 22:51:21
Hi,

I am currently trying to boot a NetBSD/i386 box "diskless" from a
NetBSD/mac68k machine. Haven't had too much success, so far...

I've looked into i386/netboot (doesn't build) and i386/stand (not much
docs) and don't feel to comfortable with it, so I started with compiling an
NFS kernel and booting via bootparamd(8) from floppy disk (following stuff
quoted and wrapped manually).


The server (espresso/192.168.1.1) runs a 1.2F kernel with 1.2Bish userland.
An NFS server is up and running.

Its export(5) has

># Diskless i386 client
>/var/export/doze/root /var/export/doze/swap     -maproot=root doze

Its bootparams(5) has

>doze    root=espresso:/var/export/doze/root \
>        swap=espresso:/var/export/doze/swap \
>        dump=espresso:/var/export/doze/swap

and bootparamd(8) is enabled in "/etc/rc.conf".


The client (doze/192.168.1.3) runs a kernel built from the i386 1.2G
snapshot sources and makes it to

>nfs_boot: using network interface 'ed0'
>nfs_boot: client_addr=0xc0a80103
>RPC timeout for server 0xc0a801ff
>RPC timeout for server 0xc0a801ff
>RPC timeout for server 0xc0a801ff

...ad nauseam.

On the wire this looks like (seen from a third machine
("filter" is
>ether host 00:00:01:00:08:57 or ether proto \rarp or ether proto \arp
>	or host 192.168.1.1      )

>[hauke@q700] ~ # tcpdump -vv -n -F filter
>tcpdump: listening on sn0
>22:07:16.341316 rarp who-is 0:0:1:0:8:57 tell 0:0:1:0:8:57
>22:07:16.402909 rarp reply 0:0:1:0:8:57 at 192.168.1.3
>22:07:16.402910 arp who-has 192.168.1.3 tell 192.168.1.3
>22:07:16.402911 192.168.1.3.1023 > 192.168.1.255.111: udp 96 (ttl 64, id 0)
>22:07:17.342310 192.168.1.3.1023 > 192.168.1.255.111: udp 96 (ttl 64, id 1)
>22:07:19.342110 192.168.1.3.1023 > 192.168.1.255.111: udp 96 (ttl 64, id 2)
>22:07:22.341862 192.168.1.3.1023 > 192.168.1.255.111: udp 96 (ttl 64, id 3)
>22:07:26.341564 192.168.1.3.1023 > 192.168.1.255.111: udp 96 (ttl 64, id 4)
>22:07:31.341177 192.168.1.3.1023 > 192.168.1.255.111: udp 96 (ttl 64, id 5)

...ad nauseam;

bootparamd(8) on espresso says

>Jul  8 22:04:56 espresso rpc.bootparamd: whoami got question for 192.168.1.3
>Jul  8 22:04:56 espresso rpc.bootparamd: This is host doze.hf.org
>Jul  8 22:07:26 espresso rpc.bootparamd: Returning doze       192.168.1.1

...ad nauseam.

-- When I boot from a snapshot 1.2G boot floppy I can mount_nfs(8)
"espresso:/var/export/doze/root" just fine.

Can anyone help? What am I missing here? I did not find too much docs out
there...

	hauke


--
"It's never straight up and down"     (DEVO)