![]() |
Linux Diskless Booting
These instructions outline the procedure required to set-up linux diskless boot using Redhat 6.0, bootp & etherboot on a system using an NE2000 clone Network Interface Cards (NICs). The diskless workstation will be able to boot from a master server and mount remote filesystems. Adapting to other NIC's will not be very difficult to do. First you will need to download the bootp server package. I chose the RPM package for Redhat. Then download Ken Yap's etherboot package.
This completes the initial client side preparation. Next comes the server side preparation. First we enable some services, and set configuration files which will identify the client machine. For this example, the client machine will be called testbed.synergetics.org and will be configured for IP address 192.168.0.100. The NIC's hardware address from step 8 above was 00409513C48F. We will compile a custom kernel for the client machine and it will be named vmlinuz.embedded. .default:\ :ht=ethernet:\ :hd=/tftpboot:sm=255.255.255.0:bf=null\ :hn:to=36000: testbed.synergetics.org:tc=.default:ha=00409513C48F:ip=192.168.0.100:bf=vmlinuz.embedded Consult the etherboot readme for more info on the format of this file. 192.168.0.100 testbed.synergetics.org testbed mknbi -x -k bzImage -o /tftpboot/vmlinuz.embedded Make sure that mkbni is in your executable path. There should now be a tagged image file called vmlinuz.embedded in the /tftpboot directory. /tftpboot/testbed.synergetics.org testbed.synergetics.org(rw, no_root_squash) cd / umask 022 mkdir -p /tftpboot/testbed.synergetics.org mkdir -p /tftpboot/ testbed.synergetics.org/bin mkdir -p /tftpboot/ testbed.synergetics.org/mnt mkdir -p /tftpboot/ testbed.synergetics.org/proc mkdir -p /tftpboot/ testbed.synergetics.org/tmp mkdir -p /tftpboot/ testbed.synergetics.org/usr chmod 1777 /tftpboot/ testbed.synergetics.org/tmp touch /tftpboot/ testbed.synergetics.org/fastboot chattr +i /tftpboot/ testbed.synergetics.org/fastboot cp -a bin lib sbin dev etc root var /tftpboot/ testbed.synergetics.org These commands make copies of the filesystem files that will be used by the client. When proceeding be sure you are working on the COPIES not the originals. This is very easy to do if you are not careful. /etc/sysconfig/network NETWORKING=yes FORWARD_IPV4=false HOSTNAME=testbed.synergetics.org DOMAINNAME=synergetics.org GATEWAY=0.0.0.0 GATEWAYDEV=eth0 sysconfig/network-scripts/ifcfg-eth0 NETWORKING=yes FORWARD_IPV4=false HOSTNAME=testbed.synergetics.org DOMAINNAME=synergetics.org GATEWAY=0.0.0.0 GATEWAYDEV=eth0 /etc/fstab googleplex:/tftpboot/testbed.synergetics.org / nfs defaults 0 0 googleplex:/usr /usr nfs defaults 0 0 /dev/fd0 /mnt/floppy ext2 noauto 0 0 none /proc proc defaults 0 0 none /dev/pts devpts mode=0622 0 0 Note: googleplex is the name of my bootp server. Root and /usr are setup to be accessed via nfs. /usr access should be read-only. /etc/hosts 127.0.0.1 localhost localhost.localdomain 192.168.0.4 googleplex.synergetics.org googleplex 192.168.0.100 testbed.synergetics.org testbed conf.modules alias eth0 ne options ne io=0x300 irq=3 alias parport_lowlevel parport_pc |
|
Contact Rick
Bono at: rjbono@applied-synergetics.com Copyright (c) 2002 - Applied Synergetics. All Rights Reserved |