Database Reference
In-Depth Information
# cp -iv /usr/share/syslinux/menu.c32 /var/lib/tftpboot/ol64/
`/usr/share/syslinux/menu.c32' -> `/var/lib/tftpboot/ol64/menu.c32'
Now the distribution specific files need to be copied from the installation source.
# cp -iv /media/ol64/images/pxeboot/* /var/lib/tftpboot/ol64/
`/media/ol64/images/pxeboot/initrd.img' -> `./initrd.img'
`/media/ol64/images/pxeboot/TRANS.TBL' -> `./TRANS.TBL'
`/media/ol64/images/pxeboot/vmlinuz' -> `./vmlinuz'
#
Nearly there! A boot menu is now required to allow the user to boot (automatically) into the operating system.
The PXELINUX system requires a directory called “ pxelinux.cfg ” to be present, from where it can access boot
configuration. The boot menu is created using the below configuration:
# mkdir -p /var/lib/tftpboot/ol64/pxelinux.cfg
# cat /var/lib/tftpboot/ol64/pxelinux.cfg/default
timeout 100
default menu.c32
menu title ------- Boot Menu -------
label 1
menu label ^ 1) ORACLE LINUX 6 KICKSTART
kernel vmlinuz
append initrd=initrd.img ks= http://imageServer/ks/ol64.cfg ksdevice=link
label 2
menu label ^ 2) ORACLE LINUX 6 INTERACTIVE INSTALL
kernel vmlinuz
append initrd=initrd.img
The menu defines two items: the first automatically boots after 10 seconds (the timeout is defined in tenths of
a second in the configuration file) of inactivity and begins the silent installation of Oracle Linux 6. It achieves this by
pointing to the Kickstart file on the webserver just configured and specifying that the first device with an active link
should be the Kickstart device. Using ksdevice=link nicely circumvents the problem that the first network card does
not necessarily have eth0 assigned to it.
This concludes the TFTP server configuration. Unless you use firewalls again, in which case you need to allow
access to port 69, protocol UDP! However it is not yet possible to start the installation-additional information must be
passed on to the booting client via DHCP.
Configuring the Dynamic Host Configuration Protocol server
The final step in preparing your build server is to install and configure the DHCP server. A package is available to take
care of this task for us, called dhcpd . Install it the usual way using yum:
# yum install dhcp
Loaded plugins: security
Setting up Install Process
 
Search WWH ::




Custom Search