![]() | Installing LUI and required servicesTo install the LUI RPM: rpm -ivhThis will install all of LUI into /usr/local/lui-{version}. If you would like to install to a different directory, add the --prefix flag with your desired directory. LUI must be installed somewhere under the /usr filesystem. The /usr filesystem is mounted by the client during installation and it must be able to find the LUI commands there. For example, to install LUI to /usr/local: rpm -ivh --prefix /usr/local lui-1.10.0-1.i386.rpmLUI requires NFS, tftp-hpa, and either bootp or dhcp. Note that with the 1.4 release of LUI or later, you no longer need the pxe daemon nor the pxe rpm. NFS You must install the knfsd package for RedHat 6.1 or earlier, or nfs-utils in RedHat 6.2 or later. Export /usr and /tftpboot in /etc/exports, as in: /tftpboot (rw,no_root_squash) /usr (ro,no_root_squash)and start nfs by: /etc/rc.d/init.d/nfs startinetd or xinetd You must install the inetd or xinetd rpm or you won't be able to start the inetd or xinetd service, which tftp requires. xinetd is for RedHat 7.0 and above. tftp With the 1.4 or later version of LUI, you have to decide which version of tftp to install. If you are you using diskettes to boot your client systems or using xinetd, you can use tftp that is provided with RedHat. To use the RedHat version of tftp, install the tftp and tftp-server rpms. If using inetd uncomment the tftp line in /etc/inetd.conf, and start inetd by: /etc/rc.d/init.d/inet start.If using xinetd change the disable line in /etc/xinetd.d/tftp to no, and and start inetd by: /etc/rc.d/init.d/xinetd start.However, if you plan on booting your client nodes WITHOUT diskettes and you are not using xinetd, you will need a different version of tftp. Follow the link on the LUI main page to get the tftp-hpa archive, and download it. In the tftp-hpa directory, run configure, make, and make install (to install the executables). You must modify the tftp line in /etc/inetd.conf to read: tftp dgram udp wait root /usr/sbin/tcpd /usr/local/sbin/in.tftpd -s / -r blksizeand start inetd by: /etc/rc.d/init.d/inet startYou should test tftp before proceeding, by tftping a file to yourself on the server. To do this, touch a file in /tftpboot (e.g. touch /tftpboot/stuff), cd to /tmp, and start a tftp session, by entering "tftp". For example: /usr/local/bin/tftp tftp> connect (to) 9.117.20.33 tftp> get /tftpboot/stuff /tmp/stuff tftp> quitand that should tftp get a file from /tftpboot and put it in /tmp. bootp Use the bootp service if you are going to use diskettes to boot your clients. LUI will manage the associated /etc/bootptab file, so you can ignore that. Just install the bootp rpm from RedHat 5.2 or earlier, or get it from the RH web site, and start it by doing: bootp -d5&for maximum verbosity. You should run the bootptest command to make sure bootp is working before proceeding. dhcp
Install the dhcp rpm from RedHat, set up the /etc/dhcpd.conf file (a sample is provided), and start the service by doing /usr/sbin/dhcpd -d. If this is the first time you are starting dhcp and it complains about missing leases file, you should create a leases file, as in:
touch /var/state/dhcp/dhcpd.leasesYou need to run bootp OR dhcp, not both. It's a good idea to run static dhcp and not dynamic dhcp because in a cluster environment, it's really a good thing to know which IP address is assigned to each node, and to keep it consistent. LUI does not manage the dhcpd.conf file. yet. Refer to the sample.dhcpd.conf file distributed with LUI. Note that with the 1.4 release or later of LUI, you do NOT need the option dhcp-class-identifier "PXEClient", that the filename is now "/tftpboot/kernel". Refer to the sample! syslinux Download syslinux-1.48 or later (follow the link on the LUI main page) and copy pxelinux.bin from the syslinux tar to /tftpboot/pxelinux.bin. pxe Because we're using syslinux, pxe is no longer needed. With LUI 1.4 or later, you no longer need to install the pxe rpm, you do not need the /etc/pxe.conf file, and you do not need to start the pxe daemon. |