Subject: Re: Netboot (PXE??) Install
To: Frank van der Linden <fvdl@netbsd.org>
From: Jason Lixfeld <jason+lists.netbsd@lixfeld.ca>
List: port-amd64
Date: 04/27/2004 13:41:25
No dice.  No matter how I cut the cake, it doesn't wanna work.  I can 
interrupt the boot, type tftp:netbsd, same thing.  netbsd, same thing.  
Always thinks it's nfs for some odd reason.

Broadcom UNDI PXE-2.1 (build 082) v6.2.0
Copyright (C) 2000-2003 Broadcom Corporation
Copyright (C) 1997-2000 Intel Corporation
All rights reserved.

CLIENT MAC ADDR: 00 50 45 5B 8F 18  GUID: 00000000 0000 0000 0000 
000000000000
CLIENT IP: 10.0.0.10  MASK: 255.255.255.0  DHCP IP: 10.0.0.1
GATEWAY IP: 10.0.0.1


 >> NetBSD/i386 PXE Boot, Revision 1.0
 >> (autobuild@tgm.daemon.org, Sun Sep  8 19:25:34 UTC 2002)
 >> Memory: 534/522688 k
Press return to boot now, any other key for boot menu
Starting in 0
PXE BIOS Version 2.1
Using PCI device at bus 2 device 3 function 0
pxe0: Ethernet address 00:50:45:5b:8f:18
net_open: client addr: 10.0.0.10
net_open: subnet mask: 255.255.255.0
net_open: net gateway: 10.0.0.1
net_open: server addr: 10.0.0.1
net_open:  server path: /
net_open: file name: tftp:netbsd
net_open: NFS mount error=-1
open netbsd: Unknown error: code -1
boot: Unknown error: code -1
Boot fail

DHCP logs:

Apr 27 13:31:20 HouseKat dhcpd: DHCPDISCOVER from 00:50:45:5b:8f:18 via 
en0
Apr 27 13:31:20 HouseKat dhcpd: DHCPOFFER on 10.0.0.10 to 
00:50:45:5b:8f:18 via en0
Apr 27 13:31:24 HouseKat dhcpd: DHCPREQUEST for 10.0.0.10 (10.0.0.1) 
from 00:50:45:5b:8f:18 via en0
Apr 27 13:31:24 HouseKat dhcpd: DHCPACK on 10.0.0.10 to 
00:50:45:5b:8f:18 via en0
Apr 27 13:31:24 HouseKat xinetd[359]: START: tftp pid=746 from=10.0.0.10
Apr 27 13:31:25 HouseKat xinetd[359]: START: tftp pid=748 from=10.0.0.10
Apr 27 13:31:30 HouseKat dhcpd: DHCPDISCOVER from 00:50:45:5b:8f:18 via 
en0
Apr 27 13:31:30 HouseKat dhcpd: DHCPOFFER on 10.0.0.10 to 
00:50:45:5b:8f:18 via en0
Apr 27 13:31:30 HouseKat dhcpd: DHCPREQUEST for 10.0.0.10 (10.0.0.1) 
from 00:50:45:5b:8f:18 via en0
Apr 27 13:31:30 HouseKat dhcpd: DHCPACK on 10.0.0.10 to 
00:50:45:5b:8f:18 via en0

dhcpd.conf:

option domain-name "ebit.ca";
option domain-name-servers 10.0.0.1;

ddns-update-style none;

subnet 10.0.0.0 netmask 255.255.255.0 {
   option routers 10.0.0.1;
   range 10.0.0.100 10.0.0.254;
}

host eshara {
         hardware ethernet 00:50:45:5b:8f:18;
         fixed-address 10.0.0.10;
         if substring (option vendor-class-identifier, 0, 10) = 
"PXEClient:" {
             filename "pxeboot_ia32.bin";
         } elsif substring (option vendor-class-identifier, 0, 18) = 
"NetBSD:i386:libsa" {
             filename "tftp:netbsd";
         }
}

files:

-rwxr-xr-x   1 jlixfeld  jlixfeld   7732176 10 Nov 05:26 netbsd
-rw-r--r--   1 jlixfeld  jlixfeld     53024 25 Apr 23:44 
pxeboot_ia32.bin

tftpd:

udp4       0      0  *.69                   *.*

sever:

Darwin ebit.ca 7.3.0 Darwin Kernel Version 7.3.0: Fri Mar  5 14:22:55 
PST 2004; root:xnu/xnu-517.3.15.obj~4/RELEASE_PPC  Power Macintosh 
powerpc
isc-dhcpd-V3.0pl2

On Apr 26, 2004, at 5:33 PM, Frank van der Linden wrote:

> Ok, the following dhcpd.conf works for me. Note that pxeboot_ia32.bin
> was renamed by me to pxeboot_ia32.amd64.bin to make it different from
> the i386 one locally, the name of the file doesn't matter though.
>
> ===
>
> option domain-name "vaasje.org";
> option domain-name-servers 192.168.0.1;
>
> ddns-update-style none;
>
> subnet 192.168.0.0 netmask 255.255.255.0 {
>   option routers 192.168.0.1;
>   range 192.168.0.200 192.168.0.254;
> }
>
> host opt {
> 	hardware ethernet 00:0c:76:18:4d:11;
> 	fixed-address opt.vaasje.org;
> 	if substring (option vendor-class-identifier, 0, 10) = "PXEClient:" {
> 	    filename "pxeboot_ia32.amd64.bin";
> 	} elsif substring (option vendor-class-identifier, 0, 18) = 
> "NetBSD:i386:libsa" {
> 	    filename "tftp:netbsd.INSTALL.amd64";
> 	}
> }
>
> ===
>
>
> In /etc/inetd.conf, tftp is enabled with:
>
> tftp            dgram   udp     wait    root    /usr/libexec/tftpd     
>  tftpd -l -s /other/netboot
>
>
> In /other/netboot, there is:
>
> -rw-r--r--  1 root  wheel  7646712 Apr 26 22:56 netbsd.INSTALL.amd64
> -r--r--r--  1 root  wheel    41464 Apr 26 20:51 pxeboot_ia32.amd64.bin
>
>
> That's all you should need.
>
> - Frank