Re: FreeBSD Jumpstart Guide / PXE Docs (TFTP ONLY)

看板FB_doc作者時間19年前 (2006/09/06 16:49), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/3 (看更多)
Brian A. Seklecki wrote: > These docs should probably more-clearly identify how pxeboot(8) makes > its decision regarding the file retrieval mechanisms. The man page is > ambiguous. > > Right now the assumption is that the user wants to use NFS to provide > "/boot". However TFTP can be used. I.e., for users who just want to > load kernel+MFS Install image (i.e., install-only, no live system VIA > NFS): > > As best I can tell, it has to do with the variables contained with the > DHCP lease offer. Examples of TFTP-file-retrieval: > > > I.e.,w e need instructions on: > > *) Compiling pxeboot w/o NFS and w/ TFTP support: > > make LOADER_TFTP_SUPPORT=yes > > *) Explain troubleshooting inetd(8)/tfpd(8): > > server$ inetd -dl & tail -f /var/log/xfer > > *) Explain troubleshooting FTP and NFS: > > server$ tcpdump -n "port tftp" > > *) dhcpd(8)/dhcpd.conf(5) examples: > > > host web00 { > hardware ethernet c0:ff:33:c0:ff:33; > fixed-address 192.168.0.100; > option host-name "web00"; > option routers 192.168.0.1; > # These get PXE Loaded (read by the hardware) > filename "/pxeboot"; > option bootfile-name "/pxeboot"; > # These are read by PXE itself to move on to 2nd stage > option tftp-server-name "192.168.0.50"; > #option root-path "192.168.0.50:/tftpboot"; > server-name "192.168.0.50"; > next-server 192.168.0.50; > } > > > The strange thing is that even with the proper config pxeboot(8) still > attempts to init NFS using "NFS MOUNT RPC error: 60", then gracefully > fails and continues to TFTP load... I wrote a PXEBoot guide including jumpstart - work on it started almost two years ago because I found the current documents inaccurate or obsolete - seem to date back to 4.x or early 5.x. At the same time I noted that the diskless stuff is far from current, the document I wrote covers both setups since the pxebooting is the same, but I have not finished the diskless part. The problem with NFS/TFTP you mention have existed for years, I reported it in 2004: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/74352 The workaround/solution is documented in the guide I wrote: a) Compile kernel w/o NFS support and load these as modules after boot b) Specify in loader.conf that the root device is mfs I cleaned up the guide I wrote and I posted here some months ago if anyone would take a look at it: http://www.daemonsecurity.com/pub/pxeboot/ Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9 _______________________________________________ freebsd-doc@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-doc To unsubscribe, send any mail to "freebsd-doc-unsubscribe@freebsd.org"
文章代碼(AID): #14_ekA00 (FB_doc)
文章代碼(AID): #14_ekA00 (FB_doc)