Date: Wed, 19 Dec 2001 12:18:30 +0100 From: "Per Claesson" <per@visimedia.com> To: <freebsd-questions@freebsd.org> Subject: Trying to set up a diskless client Message-ID: <00e101c1887e$e34a2ab0$0200a8c0@priya>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
------=_NextPart_000_00DE_01C18887.44DD97A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi all,
I am trying to set up a system with a diskless client booting from a =
fbsd server with DHCP. After having read all docs and man pages I could =
find on this topic and googled all over the web, I and after having =
struggled for almost a week, I now humbly beg for some help.=20
I got so far as getting the client to boot from an etherboot disk, =
receiving its IP address, loading the kernel and booting it. After =
having recognized all hardware it simply freezes (after the line "acd0: =
CDROM etc").
Now, I am first of all not sure whether the problem is on the client or =
server side. I understand the kernel on the client is now supposed to =
look for a root file system on the server. But is it looking at all or =
has it just crashed? Shouldn't some error message appear if it cannot =
find the NFS stuff it looks for? Or will it just shut up and hang if it =
doesnt find it?
Here is my /etc/exports file:
/usr -alldirs
/data -alldirs -maproot=3D0 -network 192.168.0.0 -mask 255.255.255.0
The dir /data/misc/diskless contains the exported root dir (done with =
the script clone_root in /usr/share/examples/diskless). I fixed the two =
patches to that script and rc.diskless2 before running it).=20
Here is dhcpd.conf:
default-lease-time 600;
max-lease-time 7200;
ddns-update-style none;
authoritative;
option domain-name "visimedia.com";
option domain-name-servers 212.116.86.132;
option routers 192.168.0.1;
subnet 192.168.0.0 netmask 255.255.255.0 {
use-host-decl-names on;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
}
host ganesh {
hardware ethernet 00:20:AF:4A:93:4B;
fixed-address 192.168.0.10;
next-server 192.168.0.1;
filename "/tftpboot/kernel";
option root-path "192.168.0.1:/data/misc/diskless";
}
I compiled a boot kernel with the BOOTP options and put it in /tftpboot =
and /data/misc/diskless. These are the only alterations it has from =
GENERIC:
options BOOTP
options BOOTP_NFSROOT
options BOOTP_NFSV3
options BOOTP_COMPAT
I also (not sure if this is needed) created the dir /conf/default/etc =
and did cp -Rp /etc to it.
Any help would be greatly appreciated.
Regards
Per Claesson
VisiMedia
S=E4teriv=E4gen 11
270 33 Vollsj=F6, Sweden
Tel 0416-300 07, 070 99 22 55 9
Fax 0416-300 03
www.visimedia.com
------=_NextPart_000_00DE_01C18887.44DD97A0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I am trying to set up a system with a =
diskless=20
client booting from a fbsd server with DHCP. After having read all docs =
and man=20
pages I could find on this topic and googled all over the web, I and =
after=20
having struggled for almost a week, I now humbly beg for some =
help.=20
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I got so far as getting the client to =
boot from an=20
etherboot disk, receiving its IP address, loading the kernel and booting =
it.=20
After having recognized all hardware it simply freezes (after the line =
"acd0:=20
CDROM etc").</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Now, I am first of all not sure whether =
the problem=20
is on the client or server side. I understand the kernel on the client =
is now=20
supposed to look for a root file system on the server. But is it looking =
at all=20
or has it just crashed? Shouldn't some error message appear if it cannot =
find=20
the NFS stuff it looks for? Or will it just shut up and hang if it =
doesnt find=20
it?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Here is my /etc/exports =
file:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>/usr -alldirs<BR>/data -alldirs =
-maproot=3D0 -network=20
192.168.0.0 -mask 255.255.255.0</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>The dir /data/misc/diskless contains =
the exported=20
root dir (done with the script clone_root in =
/usr/share/examples/diskless). I=20
fixed the two patches to that script and rc.diskless2 before running =
it).=20
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Here is dhcpd.conf:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>default-lease-time =
600;<BR>max-lease-time=20
7200;<BR>ddns-update-style none;<BR>authoritative;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>option domain-name =
"visimedia.com";<BR>option=20
domain-name-servers 212.116.86.132;<BR>option routers =
192.168.0.1;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>subnet 192.168.0.0 netmask =
255.255.255.0=20
{<BR> use-host-decl-names on;<BR> option subnet-mask=20
255.255.255.0;<BR> option broadcast-address=20
192.168.0.255;<BR>}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> host ganesh=20
{<BR> hardware =
ethernet=20
00:20:AF:4A:93:4B;<BR> &nb=
sp;=20
fixed-address=20
192.168.0.10;<BR> =20
next-server=20
192.168.0.1;<BR> =
filename=20
"/tftpboot/kernel";<BR> &n=
bsp;=20
option root-path "192.168.0.1:/data/misc/diskless";<BR> =
}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I compiled a boot kernel with the BOOTP =
options and=20
put it in /tftpboot and /data/misc/diskless. These are the only =
alterations it=20
has from GENERIC:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>options =20
BOOTP<BR>options =20
BOOTP_NFSROOT<BR>options =
BOOTP_NFSV3<BR>options =20
BOOTP_COMPAT</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I also (not sure if this is needed) =
created the dir=20
/conf/default/etc and did cp -Rp /etc to it.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Any help would be greatly =
appreciated.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Regards</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Per Claesson</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>VisiMedia<BR>S=E4teriv=E4gen 11<BR>270 =
33 Vollsj=F6,=20
Sweden<BR>Tel 0416-300 07, 070 99 22 55 9<BR>Fax 0416-300 03<BR><A=20
href=3D"http://www.visimedia.com">www.visimedia.com</A></FONT></DIV></BOD=
Y></HTML>
------=_NextPart_000_00DE_01C18887.44DD97A0--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00e101c1887e$e34a2ab0$0200a8c0>
