Re: Freebsd pxeboot problem
Hi, 10.0.0.10 is my dhcp server and 10.0.0.24 is the dynamic ip offered by the dhcp server. Below is the DHCP debug output DHCPDISCOVER from 00:07:e9:2f:45:55 via rl0 DHCPOFFER on 10.0.0.24 to 00:07:e9:2f:45:55 via rl0 DHCPREQUEST for 10.0.0.24 (10.0.0.10) from 00:07:e9:2f:45:55 via rl0 DHCPACK on 10.0.0.24 to 00:07:e9:2f:45:55 via rl0 DHCPDISCOVER from 00:07:e9:2f:45:55 via rl0 DHCPOFFER on 10.0.0.24 to 00:07:e9:2f:45:55 via rl0 DHCPREQUEST for 192.168.102.110 (192.168.102.1) from 00:07:e9:2f:45:55 via rl0: ignored (not authoritative). The first 4 lines are the communication between the rom pxe and the dhcp server. The last 3 lines are the communication between the downloaded pxeboot and the dhcp server. The downloaded pxeboot does not seem to retain the ip address offered by DHCP. Any don't know where it got 192.168.102.110 (192.168.102.1) from. Has anyone faced this problem before. Regards Sunil Sunder Raj From: Nathan Kinkade [EMAIL PROTECTED] Reply-To: Nathan Kinkade [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED], freebsd-questions@freebsd.org Subject: Re: Freebsd pxeboot problem Date: Tue, 24 May 2005 19:30:28 +0100 On Mon, May 23, 2005 at 04:52:18PM +, Sunil Sunder Raj wrote: Hi, Was trying to install freebsd 5.3 via pxeboot. The Dhcp server leases the Ip address, the tftp server is located fine and the pxeboot file gets downloaded at the client end. But this pxeboot is not getting the proper server path and gateway ip. It is always falling to the default /pxeroot server path (as programmed in the pxe.c file) and don't know where it gets the gateway ip as 192.168.102.1 Display I get pxe_open: server addr: This is proper. The Dhcp/Tftp server ip pxe_open: server path: /pxeroot --- default server path. This is not what I defined in my dhcpd.conf pxe_open: gateway ip: 192.168.102.1 --- Don't know where it got it from. This is not what I defined in my dhcpd.conf snip What is defined in your dhcpd.conf file? I think you may need two perameters: option root-path nfsserver:/diskless/root/path/ next-server yourserver You may not need next-server if it's the same machine as the DHCP server. Nathan attach3 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Freebsd pxeboot problem
Hi, Below are all the details I can provide you. dhcpd.conf == ddns-update-style none; option routers 10.0.0.1; subnet 10.0.0.0 netmask 255.255.255.0 { range 10.0.0.22 10.0.0.24; option subnet-mask 255.255.255.0; option broadcast-address 10.0.0.255; option domain-name-servers 202.54.1.30, 202.54.1.18; option domain-name xyz.com; default-lease-time 2592000; max-lease-time 2592000; next-server 10.0.0.10; server-name xyz.com; server-identifier 10.0.0.10; option root-path /usr/local/exports/freebsd5.4; filename boot/pxeboot; } /etc/exports /usr/local/exports/freebsd5.4 -ro /etc/inetd.conf === tftpdgram udp waitroot/usr/libexec/tftpd tftpd -l /usr/local/exports/freebsd5.4 # strings /usr/local/exports/freebsd5.4/boot/pxeboot | grep nfs boot.nfsroot.server boot.nfsroot.path boot.nfsroot.nfshandle no rootpath, no nfs /usr/src/lib/libstand/nfs.c nfsread: short packet, %d %ld # ls -l /usr/local/exports/freebsd5.4 total 1292 -r--r--r-- 1 root wheel 801 May 8 07:05 .cshrc -r--r--r-- 1 root wheel1458 May 8 10:38 .profile dr-xr-xr-x 18 root wheel 512 May 8 10:38 5.4-RELEASE -r--r--r-- 1 root wheel6192 May 8 07:05 COPYRIGHT -r--r--r-- 1 root wheel 18133 May 8 10:38 ERRATA.HTM -r--r--r-- 1 root wheel 10109 May 8 10:38 ERRATA.TXT -r--r--r-- 1 root wheel 125891 May 8 10:38 HARDWARE.HTM -r--r--r-- 1 root wheel 74414 May 8 10:38 HARDWARE.TXT -r--r--r-- 1 root wheel 76334 May 8 10:38 INSTALL.HTM -r--r--r-- 1 root wheel 56771 May 8 10:38 INSTALL.TXT -r--r--r-- 1 root wheel 46766 May 8 10:38 MIGRATE5.HTM -r--r--r-- 1 root wheel 31732 May 8 10:38 MIGRATE5.TXT -r--r--r-- 1 root wheel 20445 May 8 10:38 README.HTM -r--r--r-- 1 root wheel 14798 May 8 10:38 README.TXT -r--r--r-- 1 root wheel 47258 May 8 10:38 RELNOTES.HTM -r--r--r-- 1 root wheel 24167 May 8 10:38 RELNOTES.TXT dr-xr-xr-x 2 root wheel1024 May 8 07:01 bin dr-xr-xr-x 5 root wheel 512 May 23 01:02 boot -r--r--r-- 1 root wheel2048 May 8 10:47 boot.catalog -r--r--r-- 1 root wheel 39 May 8 10:38 cdrom.inf dr-xr-xr-x 2 root wheel 512 May 8 07:00 dev -r--r--r-- 1 root wheel2971 May 8 10:38 docbook.css dr-xr-xr-x 17 root wheel2048 May 8 07:05 etc -r--r--r-- 1 root wheel 685246 May 8 10:44 filename.txt dr-xr-xr-x 2 root wheel 512 May 8 10:38 floppies dr-xr-xr-x 3 root wheel1024 May 8 07:02 lib dr-xr-xr-x 2 root wheel 512 May 8 07:01 libexec dr-xr-xr-x 2 root wheel 512 May 8 07:00 mnt dr-xr-xr-x 14 root wheel 512 May 8 10:44 packages dr-xr-xr-x 2 root wheel 512 May 8 07:00 proc dr-xr-xr-x 2 root wheel2560 May 8 07:02 rescue dr-xr-xr-x 2 root wheel 512 May 8 07:05 root dr-xr-xr-x 2 root wheel2560 May 8 07:04 sbin lrwxrwxrwx 1 root wheel 7 May 22 19:03 stand - /rescue lrwxrwxrwx 1 root wheel 11 May 22 19:03 sys - usr/src/sys dr-xr-xr-x 2 root wheel 512 May 8 07:00 tmp dr-xr-xr-x 5 root wheel1024 Jul 13 2003 tools dr-xr-xr-x 13 root wheel 512 May 8 10:26 usr dr-xr-xr-x 20 root wheel 512 May 8 10:26 var # ls -l /usr/local/exports/freebsd5.4/boot total 1668 -r--r--r-- 1 rootwheel 7007 May 8 07:03 beastie.4th -r--r--r-- 1 rootwheel 8192 May 8 07:03 boot -r--r--r-- 1 rootwheel 512 May 8 07:03 boot0 -r--r--r-- 1 rootwheel 512 May 8 07:03 boot0sio -r--r--r-- 1 rootwheel 512 May 8 07:03 boot1 -r--r--r-- 1 rootwheel 7680 May 8 07:03 boot2 -r--r--r-- 1 rootwheel 1184 May 8 07:03 cdboot dr-xr-xr-x 2 rootwheel 512 May 8 07:03 defaults -r--r--r-- 1 rootwheel 1982 May 8 07:05 device.hints -r--r--r-- 1 rootwheel 2249 May 8 07:03 frames.4th dr-xr-xr-x 2 rootwheel 8192 May 8 10:21 kernel -r-xr-xr-x 1 manage wheel 212992 May 23 23:23 loader -r--r--r-- 1 rootwheel 7772 May 8 07:03 loader.4th -r--r--r-- 1 rootwheel 107 May 22 19:29 loader.conf -r--r--r-- 1 rootwheel13893 May 8 07:03 loader.help -r--r--r-- 1 rootwheel 370 May 8 07:03 loader.rc -r--r--r-- 1 rootwheel 512 May 8 07:03 mbr -r--r--r-- 1 rootwheel 1082571 May 8 10:38 mfsroot.gz dr-xr-xr-x 2 rootwheel 512 May 8 07:00 modules -rw-r--r-- 1 manage wheel 215040 May 23 23:23 pxeboot -r--r--r-- 1 rootwheel 692 May 8 07:03 screen.4th -r--r--r-- 1 rootwheel36440 May 8 07:03 support.4th # cat /usr/local/exports/freebsd5.4/boot/loader.conf mfsroot_load=YES mfsroot_type=mfs_root mfsroot_name=/boot/mfsroot vfs.root.mountfrom=ufs:/dev/md0c Regards Sunil Sunder Raj From: Eric Anderson [EMAIL PROTECTED] To: Sunil Sunder Raj [EMAIL PROTECTED] CC: freebsd-questions@freebsd.org, [EMAIL PROTECTED] Subject: Re: Freebsd pxeboot problem Date: Mon, 23 May 2005 13:15:16 -0500 Sunil
Re: Freebsd pxeboot problem
On Mon, May 23, 2005 at 04:52:18PM +, Sunil Sunder Raj wrote: Hi, Was trying to install freebsd 5.3 via pxeboot. The Dhcp server leases the Ip address, the tftp server is located fine and the pxeboot file gets downloaded at the client end. But this pxeboot is not getting the proper server path and gateway ip. It is always falling to the default /pxeroot server path (as programmed in the pxe.c file) and don't know where it gets the gateway ip as 192.168.102.1 Display I get pxe_open: server addr: This is proper. The Dhcp/Tftp server ip pxe_open: server path: /pxeroot --- default server path. This is not what I defined in my dhcpd.conf pxe_open: gateway ip: 192.168.102.1 --- Don't know where it got it from. This is not what I defined in my dhcpd.conf snip What is defined in your dhcpd.conf file? I think you may need two perameters: option root-path nfsserver:/diskless/root/path/ next-server yourserver You may not need next-server if it's the same machine as the DHCP server. Nathan pgpQqaezVJa6M.pgp Description: PGP signature
Freebsd pxeboot problem
Hi, Was trying to install freebsd 5.3 via pxeboot. The Dhcp server leases the Ip address, the tftp server is located fine and the pxeboot file gets downloaded at the client end. But this pxeboot is not getting the proper server path and gateway ip. It is always falling to the default /pxeroot server path (as programmed in the pxe.c file) and don't know where it gets the gateway ip as 192.168.102.1 Display I get pxe_open: server addr: This is proper. The Dhcp/Tftp server ip pxe_open: server path: /pxeroot --- default server path. This is not what I defined in my dhcpd.conf pxe_open: gateway ip: 192.168.102.1 --- Don't know where it got it from. This is not what I defined in my dhcpd.conf \ Can't load 'kernel' Below is what I read in the pxe.c file === /* * Do a bootp/dhcp request to find out where our * NFS/TFTP server is. Even if we dont get back * the proper information, fall back to the server * which brought us to life and a default rootpath. */ if (!rootpath[1]) strcpy(rootpath, PXENFSROOTPATH); Has anyone faced this problem. Regards Sunil Sunder Raj ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Freebsd pxeboot problem
Sunil Sunder Raj wrote: Hi, Was trying to install freebsd 5.3 via pxeboot. The Dhcp server leases the Ip address, the tftp server is located fine and the pxeboot file gets downloaded at the client end. But this pxeboot is not getting the proper server path and gateway ip. It is always falling to the default /pxeroot server path (as programmed in the pxe.c file) and don't know where it gets the gateway ip as 192.168.102.1 Display I get pxe_open: server addr: This is proper. The Dhcp/Tftp server ip pxe_open: server path: /pxeroot --- default server path. This is not what I defined in my dhcpd.conf pxe_open: gateway ip: 192.168.102.1 --- Don't know where it got it from. This is not what I defined in my dhcpd.conf Can you send the relevant dhcp conf section? Eric -- Eric AndersonSr. Systems AdministratorCentaur Technology A lost ounce of gold may be found, a lost moment of time never. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
freebsd pxeboot problem
Hi all, Am having trouble with pxeboot on freebsd 5.1. Am following procedure at http://www.tnpi.biz/computing/freebsd/pxe-netboot.shtml (relevant bit pasted at bottom). This procedure states to create an empty 25Mb file using dd, make a fs out of it (disklabel/newfs/mdconfig), then rsync the contents of mfsroot to this fs. This is then used as the rootfs on the pxeboot client (set vfs.root.mountfrom=ufs:/dev/md0c). When I try this, the client hangs forever on boot in loader.rc. However, if I simply create a fs using mdconfig and use this on the client, it boots to sysinstall ok (ie gunzip mfsroot.gz; mdconfig -a -t vnode -f mfsroot -u0). I can even mount this fs before I pxeboot and put an install.cfg file there. However, when the client reads it, it hangs when trying to mount server:/usr/local/export/freebsd to install the distribution (Mounting x.x.x.x:/usr/local/export/freebsd over NFS on /dist). I tried exporting the /usr without -ro but no difference. Suspect there is no room on the mfsroot fs more mounting nfs (since I haven't got a 25Mb file). Has anybody set this up before. I have seen somebody else had this problem on freebsd list, but no response. Any help would be appreciated. (Do I summarise back to this list?). Thanks === cd /usr/local/export/pxe dd if=/dev/zero of=mfsroot bs=1k count=25000 mdconfig -a -t vnode -f mfsroot -u0 disklabel -r -w md0 auto newfs /dev/md0c mkdir -p /mnt/mfs mount /dev/md0 /mnt/mfs There, now we've got 25 megs of space mounted on /mnt to play with. The basic rule of thumb here to keep in mind is that you are building a root file system for FreeBSD. Everything the kernel, sysinstall, and your install programs needs from the root file system is what you need to have in your /mnt directory. To get started we'll copy the contents of the distribution mfsroot.flp to our new mfsroot: mkdir /mnt/floppy mdconfig -a -t vnode -u 1 -f /usr/local/export/freebsd5.1/floppies/mfsroot.flp mount /dev/md1 /mnt/floppy cp /mnt/floppy/mfsroot.gz /tmp umount /mnt/floppy mdconfig -d -u 1 gunzip /tmp/mfsroot.gz mdconfig -a -t vnode -u 1 -f /tmp/mfsroot mount /dev/md1 /mnt/floppy rsync -avzH /mnt/floppy/ /mnt/mfs umount /mnt/floppy mdconfig -d -u 1 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]