7.4. Configuring a TFTP server for BIOS-based clients


You must configure a TFTP server and DHCP server and start the TFTP service on the PXE server for BIOS-based AMD and Intel 64-bit systems to enable automated network booting.

Procedure

  1. As root, install the following package.

    # dnf install tftp-server
  2. Allow incoming connections to the tftp service in the firewall:

    # firewall-cmd --add-service=tftp

    This command enables temporary access until the next server reboot.

  3. Optional: To enable permanent access, repeat the previous command together with the --permanent option.

    Depending on the location of the installation ISO file, you might have to allow incoming connections for HTTP or other services.

  4. Install syslinux-tftpboot package:

    # dnf -y install syslinux-tftpboot
  5. Create a pxelinux directory in the /var/lib/tftpboot directory and copy all the files provided by the syslinux-tftpboot package (located in /tftpboot directory) into the pxelinux directory:

    # mkdir /var/lib/tftpboot/pxelinux
    # cp /tftpboot/* /var/lib/tftpboot/pxelinux
  6. Create the directory pxelinux.cfg in the pxelinux directory:

    # mkdir /var/lib/tftpboot/pxelinux/pxelinux.cfg
  7. Create a configuration file named default and add it to the pxelinux.cfg directory as shown in the following example:

    DEFAULT menu.c32
    
    MENU TITLE Red Hat Enterprise Linux 10.0 Installation
    TIMEOUT 600
    
    LABEL default
    	MENU LABEL ^Install Red Hat Enterprise Linux 10.0
    	KERNEL /pxelinux/images/RHEL-10/vmlinuz
    	APPEND initrd=/pxelinux/images/RHEL-10/initrd.img inst.repo=http://192.168.124.2/redhat/iso quiet
    
    LABEL text
    	MENU LABEL Install Red Hat Enterprise Linux 10.0 in ^text mode
    	KERNEL /pxelinux/images/RHEL-10/vmlinuz
    	APPEND initrd=/pxelinux/images/RHEL-10/initrd.img inst.repo=http://192.168.124.2/redhat/iso inst.text quiet
    
    LABEL rescue
    	MENU LABEL ^Rescue a Red Hat Enterprise Linux system
    	KERNEL /pxelinux/images/RHEL-10/vmlinuz
    	APPEND initrd=/pxelinux/images/RHEL-10/initrd.img inst.stage2=http://192.168.124.2/redhat/iso inst.rescue quiet
    
    LABEL local
    	MENU LABEL Boot from ^local drive
    	LOCALBOOT 0xffff
    • The installation program cannot boot without its runtime image. Use the inst.stage2 boot option to specify location of the image. Alternatively, you can use the inst.repo= option to specify the image as well as the installation source.
    • The installation source location used with inst.repo must contain a valid .treeinfo file.
    • When you select the content of RHEL10 installation DVD as the installation source, the .treeinfo file points to the BaseOS and the AppStream repositories. You can use a single inst.repo option to load both repositories.
  8. Create a subdirectory to store the boot image files in the /var/lib/tftpboot directory, and copy the boot image files to the directory. In this example, the directory is /var/lib/tftpboot/pxelinux/images/RHEL-10:

    # mkdir -p /var/lib/tftpboot/pxelinux/images/RHEL-10
    # cp /path_to_x86_64_images/pxeboot/{vmlinuz,initrd.img} /var/lib/tftpboot/pxelinux/images/RHEL-10/
  9. Start and enable the tftp.socket service:

    # systemctl enable --now tftp.socket

    The PXE boot server is now ready to serve PXE clients. You can start the client, which is the system to which you are installing Red Hat Enterprise Linux. Select PXE Boot or Network Boot when prompted to specify a boot source, and start the network installation.

Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2026 Red Hat
トップに戻る