Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!werple.apana.org.au!otis.apana.org.au!serval.net.wsu.edu!netnews.nwnet.net!oracle.pnl.gov!osi-east2.es.net!cronkite.nersc.gov!dancer.ca.sandia.gov!overload.lbl.gov!agate!howland.reston.ans.net!sol.ctr.columbia.edu!startide.ctr.columbia.edu!wpaul
From: wpaul@ctr.columbia.edu (Bill Paul)
Newsgroups: comp.os.386bsd.questions
Subject: Re: diskless problem
Date: 1 Dec 1994 16:34:51 GMT
Organization: Columbia University Center for Telecommunications Research
Lines: 59
Message-ID: <3bktvc$krd@sol.ctr.columbia.edu>
References: <3bjgp0$333@gnu.mat.uc.pt>
NNTP-Posting-Host: startide.ctr.columbia.edu
X-Newsreader: TIN [version 1.2 PL2]
Daring to challenge the will of the almighty Leviam00se, Paulo Menezes
(paulo@@dee.uc.pt) had the courage to say:
: Can anyone give-me an example of a configuration file for
: a diskless kernel (2.0R)
: Paulo
: --
: Paulo Menezes | EMail: paulo@dee.uc.pt
: Instituto de Sistemas e Robotica | paulo@mercurio.uc.pt
Sure. Here's the file I cobbled together when I first started testing
2.0-ALPHA (I moved the root filesystem to a local disk for 2.0-RELEASE):
[/tftpboot]:sirius{1150}# more cfg.128.59.64.56
hostname marple.ctr.columbia.edu
rootfs 128.59.64.52:/src/startide/wpaul/root-2.0-ALPHA
swapfs 128.59.64.52:/src/startide/wpaul/swap
rootopts rsize=4096,wsize=4096,resvport
swapoots rsize=4096,wsize=4096,resvport
swapsize 34200
The swapfile is a plain file that's 34200 1024k blocks in size:
-rw-r--r-- 1 root sysman 35020800 Nov 22 17:40 swap.128.59.64.56
You may not need the rootopts and swapopts commands, but I do. The netboot
program figures out the IP address of the machine using bootp, so you don't
need to specify that in the cfg.xxx.xxx.xxx.xx file. Here's the bootptab
entry for this system:
marple:\
ht=ethernet:\
ha=02608C3F3465:\
sm=255.255.255.0:\
hn:\
gw=128.59.64.1:\
ip=128.59.64.56:\
vm=rfc1048:\
bf=/vmunix:
Remember that the root and swap filesystemes must be exported correctly to
the diskless machine. Also, be sure to put a leading slash in the name of
the kernel you want to boot, if you specify something besides the default
(i.e. use /vmunix, not vmunix). If you don't, certain programs that need
to know where the kernel is will get confused. (You can un-confuse them
with the sysctl command, however.)
-Bill
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Bill Paul System Manager
wpaul@ctr.columbia.edu Center for Telecommunications Research
Columbia University, New York City
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The M00se Illuminati: ignore it and be confused, or join it and be confusing!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~