.. _Configuring the TFTP Server: Configuring the TFTP Server --------------------------- In the next step, you need to configure the TFTP server that you installed in the previous step. This section describes the process of configuring the TFTP server for BIOS-based systems. For information on how to configure the TFTP server for installing |product_name| on EFI-based systems, see the `Red Hat Enterprise Linux Installation Guide `__. To configure the TFTP server: #. On the PXE server, open the ``/etc/xinetd.d/tftp`` file, and edit it as follows: :: service tftp { disable = no socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -v -s /tftpboot per_source = 11 cps = 100 2 flags = IPv4 } Once you are done, save the file. #. Copy the following files to the ``/tftpboot`` directory (if this directory does not exist, create it under the root (``/``) directory): - ``vmlinuz`` - ``initrd.img`` - ``menu.c32`` - ``pxelinux.0`` These files are necessary to start the installation of |product_name|. You can find the first two files in the ``/images/pxeboot`` directory of the |product_name| distribution. The ``menu.c32`` and ``pxelinux.0`` files are located in the ``syslinux`` installation directory on the PXE server (usually, this is the ``/usr/share/syslinux`` or ``/usr/lib/syslinux`` directory). #. Create the ``/tftpboot/pxelinux.cfg`` directory, and inside this directory, make the ``default`` file. #. Open the default file for editing, and add the following strings to it: :: default menu.c32 prompt 0 timeout 100 ontimeout VZ menu title Boot Menu label VZ menu label Install kernel vmlinuz append initrd=initrd.img ip=dhcp For detailed information on the parameters you can specify in the ``/tftpboot/pxelinux.cfg/default`` file and their configuration, see the documentation for ``syslinux`` and its man pages. #. Restart the ``xinetd`` service: :: # /etc/init.d/xinetd restart #. If necessary, configure your firewall on the PXE server to allow access to the TFTP server. .. note:: When running the TFTP server, you might get the "Permission denied" error. In this case, you may try to fix the problem by running the following command on the server: ``# restorecon -Rv /tftboot/``.