man.bsd.lv manual page server

Manual Page Search Parameters

DISKLESS(8) System Manager's Manual DISKLESS(8)

disklessbooting a system over the network

The ability to boot a machine over the network is useful for or machines, or as a temporary measure while repairing or re-installing filesystems on a local disk. This file provides a general description of the interactions between a client and its server when a client is booting over the network.

When booting a system over the network, there are three phases of interaction between client and server:

  1. The stage-1 bootstrap loads a boot program, from
  2. The boot program loads a kernel.
  3. The kernel does NFS mounts for root.

Each of these phases are described in further detail below.

In phase 1, the stage-1 bootstrap code loads a boot program, which is typically able to control the network card. The boot program can be stored in the BIOS, in a BOOT ROM located on the network card (PXE, etherboot, netboot), or come from a disk unit (e.g. etherboot or netboot).

In phase 2, the boot program loads a kernel. Operation in this phase depends on the design of the boot program. Typically, the boot program uses the BOOTP or DHCP protocol to get the client's IP address and other boot information, including but not limited to the IP addresses of the NFS server, router and nameserver, and the name of the kernel to load. Then the kernel is loaded, either directly using NFS (as it is the case for etherboot and netboot), or through an intermediate loader called pxeboot and loaded using TFTP or NFS.

In phase 3, the kernel again uses DHCP or BOOTP to acquire configuration information, and proceeds to mount the root filesystem and start operation. The boot scripts recognize a diskless startup and perform the actions found in /etc/rc.d/initdiskless and /etc/rc.d/diskless.

In order to run a diskless client, you need the following:

Be warned that using unencrypted NFS to mount root and user partitions may expose information such as encryption keys.

/usr/share/examples/diskless/clone_root
script to clone root filesystem
/conf/base
1st override
/conf/default
2nd override
/conf/<BROADCAST-IP>
3rd override
/conf/<MACHINE-IP>
4th override
/conf/{base,default,<BROADCAST-IP>,<MACHINE-IP>}/<DIR>
override for /<DIR>
/conf/{base,default,<BROADCAST-IP>,<MACHINE-IP>}/<DIR>/md_size
size of memory disk for /<DIR>
/conf/{base,default,<BROADCAST-IP>,<MACHINE-IP>}/<DIR>/diskless_remount
path to mount on /<DIR>
/conf/{base,default,<BROADCAST-IP>,<MACHINE-IP>}/<DIR>.cpio.gz
archive to unpack to /<DIR>
/conf/{base,default,<BROADCAST-IP>,<MACHINE-IP>}/<DIR>.remove
files to remove from /<DIR>

bootptab(5), ethers(5), exports(5), rc.conf(5), bootpd(8), dhcpd(8) (net/isc-dhcp42-server), mountd(8), nfsd(8), pxeboot(8), rc(8), reboot(8), tftpd(8)

This manpage is probably incomplete.

DragonFly sometimes requires to write onto the root partition, so the startup scripts mount MFS filesystems on some locations (e.g. /etc and /var), while trying to preserve the original content. The process might not handle all cases.

February 19, 2008 DragonFly-5.6.1