Re: current and diskless...

2000-02-05 Thread Nicolas Souchu

On Fri, Feb 04, 2000 at 09:31:16PM +0100, Mark Huizer wrote:

Is it possible to boot current diskless?

Yes.


I'd say (from the times I tried it in 3.1 or something) to use netboot,
but that fails because it can't boot an ELF kernel.

net/etherboot port will do the job.


Should I build an aout kernel, and how do I do that for current?

etherboot knows FreeBSD elf.


Can I do it another way?

One might say that with the rc.diskless files in /etc, that it should
work somehow...

Sure it does. I use it. rc.diskless is powerfull and allow you to share
your server config (binaries + most configuration files) with bootp clients.

Here's the result for the currently running bootp client:



Filesystem   512-blocks UsedAvail Capacity  Mounted on
10.3.0.2:/   198366   1204946200466%/
mfs:30 1918 1416  35080%/conf/etc
mfs:3463486  33658072 1%/tmp
/conf/etc  1918 1416  35080%/etc
procfs880   100%/proc
breizh:/diskless/varfs/armor4063844  2559428  117931068%/var
breizh:/usr  595326   4550529264883%/usr
breizh:/usr/X11R6595326   4550529264883%
/usr/X11R6_elf-3.3.3
breizh:/usr/local   2051134  1415828   47121675%/usr/local
breizh:/usr/contrib 4063844  2559428  117931068%/usr/contrib
mfs:64 3022  106 2676 4%/dev
breizh:/usr/X11R6595326   4550529264883%
/usr/X11R6_elf-3.3.3

Note that 10.3.0.2 is breizh. DHCP port is running on breizh and serves
tftp/bootp requests to booting clients.

I use the following options in my client MACHINE files:

options BOOTP   # Use BOOTP to obtain IP address/hostname
options BOOTP_NFSROOT   # NFS mount root filesystem using BOOTP info
options BOOTP_COMPAT# Workaround for broken bootp daemons.
options BOOTP_WIRED_TO=ed1 # Use interface fxp0 for BOOTP

options MFS #Memory Filesystem
options NFS #Network Filesystem

pseudo-device   vn  4   #Vnode driver (turns a file into a device)


Greetings

mark
-- 
Nice testing in little China...


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message


Nicholas

-- 
[EMAIL PROTECTED] / [EMAIL PROTECTED]
FreeBSD - Turning PCs into workstations - http://www.FreeBSD.org


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



current and diskless...

2000-02-04 Thread Mark Huizer

Is it possible to boot current diskless?

I'd say (from the times I tried it in 3.1 or something) to use netboot,
but that fails because it can't boot an ELF kernel.

Should I build an aout kernel, and how do I do that for current?

Can I do it another way?

One might say that with the rc.diskless files in /etc, that it should
work somehow...

Greetings

mark
-- 
Nice testing in little China...


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message