Date: Fri, 10 Feb 2006 20:30:20 -0800 From: Christopher Cowart <ccowart@rescomp.berkeley.edu> To: freebsd-questions@freebsd.org Subject: scripting sysinstall for pxeboot Message-ID: <20060211043020.GA27461@rescomp.berkeley.edu>
next in thread | raw e-mail | index | archive | help
--azLHFNyN32YCQGCU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello- I'm working on a project to netboot servers and perform a custom installation of FreeBSD. I have pxeboot working with tftp, providing an mfs image over the network. sysinstall runs as init and attempts to follow my install.cfg. However, when running my mediaSetFTP command, sysinstall errors with: "The fxp0 device is not configured. You will need to do so in the Networking configuration menu before proceeding." However, I did set tryDHCP=3DYES. DHCP is working because 1) it just netbooted from it; and 2) I tried with the installation CD. It doesn't appear to be honoring my request that it try DHCP. If I take sysinstall over manually, specifying the network information, it works just fine. I want the installation to work with DHCP. Does anyone have any suggestions for debugging sysinstall in this way? On a not-a-show-stopper note, is there any way to get around specifying=20 the hostname and/or net device? I'd rather not specify the hostname so=20 that I can have one generic script for many machines. Further, what if=20 a some other machine has a different kind of NIC? By hardcoding these=20 values into install.cfg, the solution becomes much less maintainable.=20 Why can't it obtain the hostname from DHCP? Any thoughts on this?=20 Thanks for your help, Chris =3D=3D=3D My install.cfg: # This is the installation configuration file for our rackmounted FreeBSD= =20 # cluster machines # Turn on extra debugging. debug=3DYES nonInteractive=3DYES noWarn=3DNO tryDHCP=3DYES noConfirm=3DYES releaseName=3D"6.0-RELEASE" ################################ # My host specific data #hostname=3Dfirefly #domainname=3Drescomp.berkeley.edu netDev=3Dfxp0 hostname=3Dfirefly _ftpPath=3Dftp://ftp.FreeBSD.org/pub/FreeBSD/ #nameserver=3D169.229.70.164 #defaultrouter=3D169.229.70.1 #ipaddr=3D169.229.70.170 #netmask=3D255.255.254.0 ################################# ################################ # Which installation device to use=20 ####RC#### ##Need to set this! ########## #nfs=3DMyNfsServer:/export/ari_scratch2/gallatin/freebsd-dist mediaSetFTP #mediaSetNFS ################################ [[SNIP]] =3D=3D=3D --=20 Christopher Cowart Unix Systems Administrator Residential Computing, UC Berkeley "May all your pushes be popped" --azLHFNyN32YCQGCU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFD7WhcV3SOqjnqPh0RAlhpAKCqVodrJNcLUtmQRHsL+Obzt5M4+gCgnlPN LgzseFWtL0H3vi0Rk4YF0BU= =PT7y -----END PGP SIGNATURE----- --azLHFNyN32YCQGCU--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060211043020.GA27461>