HP BL10e Setting up a Linux PXE server and integrating clients - Page 6

Edit /etc/exports by adding the following line, Enable NFS on the server as follows

Page 6 highlights

In this example, the server was named according to its MAC address. Its MAC address is listed along with the fixed IP address we want associated with it. 9. After modifying /etc/dhcpd.conf, notify the dhcpd server of the changes by using the following method or a similar one: service dhcpd restart Warning Do not run a new DHCP server on a network with an existing one unless you have configured the network for multiple DHCP servers. Running two or more DHCP servers on the same network without taking special precautions causes conflicts. 10.Download and install Syslinux 2.00 or later as follows: Note HP recommends using Syslinux 2.00 or later due to major bug fixes in this version. Red Hat Linux 8.0 includes Syslinux 1.75. • Download and unpack the latest syslinux package from www.kernel.org/pub/linux/utils/boot/syslinux/RPMS. • Install the syslinux package using this command: rpm -hUv syslinux-2.02-1.i386.rpm • Install pxelinux.0 and memdisk into the /tftpboot directory: mkdir -p /tftpboot/pxelinux.cfg cp -a /usr/lib/syslinux/pxelinux.0 /tftpboot/ cp -a /usr/lib/syslinux/memdisk /tftpboot/ 11.Enable NFS on the server as follows: • Edit /etc/exports by adding the following line: /var/ftp/pub *(ro,insecure,sync,all_squash) • Enable the NFS server on boot by using the following commands: chkconfig --level 345 portmap on chkconfig --level 345 nfslock on chkconfig --level 345 nfs on • Start or restart the NFS service by using the following commands: service portmap restart service nfslock restart service nfs restart 6

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21

In this example, the server was named according to its MAC address. Its MAC address is listed
along with the fixed IP address we want associated with it.
9.
After modifying /etc/dhcpd.conf, notify the dhcpd server of the changes by using the following
method or a similar one:
service dhcpd restart
Warning
Do not run a new DHCP server on a network with an existing one
unless you have configured the network for multiple DHCP servers.
Running two or more DHCP servers on the same network without taking
special precautions causes conflicts.
10.
Download and install Syslinux 2.00 or later as follows:
Note
HP recommends using
Syslinux 2.00 or later
due to major bug fixes in
this version. Red Hat Linux 8.0 includes Syslinux 1.75.
Download and unpack the latest syslinux package from
www.kernel.org/pub/linux/utils/boot/syslinux/RPMS
.
Install the syslinux package using this command:
rpm -hUv syslinux-2.02-1.i386.rpm
Install pxelinux.0 and memdisk into the /tftpboot directory:
mkdir -p /tftpboot/pxelinux.cfg
cp -a /usr/lib/syslinux/pxelinux.0 /tftpboot/
cp -a /usr/lib/syslinux/memdisk /tftpboot/
11.
Enable NFS on the server as follows:
Edit /etc/exports by adding the following line:
/var/ftp/pub
*(ro,insecure,sync,all_squash)
Enable the NFS server on boot by using the following commands:
chkconfig --level 345 portmap on
chkconfig --level 345 nfslock on
chkconfig --level 345 nfs on
Start or restart the NFS service by using the following commands:
service portmap restart
service nfslock restart
service nfs restart
6