From owner-freebsd-questions Wed Dec 19 3:19:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from picard.teleservice.net (mail3.teleservice.net [195.17.56.7]) by hub.freebsd.org (Postfix) with ESMTP id 35A9637B417 for ; Wed, 19 Dec 2001 03:18:43 -0800 (PST) Received: from [195.17.56.62] by picard.sjobo.nu (NTMail 6.00.0014/NU2793.00.7d60c732) with ESMTP id jeapgaaa for freebsd-questions@freebsd.org; Wed, 19 Dec 2001 12:16:14 +0100 Message-ID: <00e101c1887e$e34a2ab0$0200a8c0@priya> From: "Per Claesson" To: Subject: Trying to set up a diskless client Date: Wed, 19 Dec 2001 12:18:30 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00DE_01C18887.44DD97A0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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
Hi all,
 
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
 
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").
 
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?
 
Here is my /etc/exports = file:
 
/usr -alldirs
/data -alldirs = -maproot=3D0 -network=20 192.168.0.0 -mask 255.255.255.0
 
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
 
Here is dhcpd.conf:
 
default-lease-time = 600;
max-lease-time=20 7200;
ddns-update-style none;
authoritative;
 
option domain-name = "visimedia.com";
option=20 domain-name-servers 212.116.86.132;
option routers = 192.168.0.1;
 
subnet 192.168.0.0 netmask = 255.255.255.0=20 {
  use-host-decl-names on;
  option subnet-mask=20 255.255.255.0;
  option broadcast-address=20 192.168.0.255;
}
 
  host ganesh=20 {
          hardware = ethernet=20 00:20:AF:4A:93:4B;
        &nb= sp;=20 fixed-address=20 192.168.0.10;
         =20 next-server=20 192.168.0.1;
          = filename=20 "/tftpboot/kernel";
        &n= bsp;=20 option root-path "192.168.0.1:/data/misc/diskless";
  = }
 
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:
 
options        =20 BOOTP
options        =20 BOOTP_NFSROOT
options         = BOOTP_NFSV3
options        =20 BOOTP_COMPAT
 
I also (not sure if this is needed) = created the dir=20 /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,=20 Sweden
Tel 0416-300 07, 070 99 22 55 9
Fax 0416-300 03
www.visimedia.com
------=_NextPart_000_00DE_01C18887.44DD97A0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message