Debian NFSroot nodeimage


Debian Linux was chosen due to it's history of support easy upgrades from one version to another, and support for all the CPU architectures we are running.

Debian has a nice package called "lessdisks" which allows use of Debian packaged kernels to mount an NFS root file system.

The following is somewhat of a work-in-progress..

apt-get install initrd-netboot-tools udhcpc
Now edit the /etc/lessdisks/mkinitrd/initrd-netboot.conf 'nic_modules' line to make sure you have the network card modules loaded for the system board you have.
apt-get install kernel-image-2.6
apt-get install atftpd syslinux
You'll need to read some documentation (add a pointer to it here later) on how to set up PXE booting. An important bit is to get the 'append' options right.. for our clusters, we are using entries like this in the /tftpboot/pxelinux.conf/default file:
label debkernel
        kernel vmlinuz-2.6.9-9-amd64-k8-smp
        append console=tty0 console=ttyS0,115200 rw root=/dev/nfs \
		initrd=initrd.img-2.6.9-9-amd64-k8-smp ip=dhcp \
		nfsroot=10.1.0.1:/scratch/storage-server:defaults,ro,async,nolock