第 11 章 Adding the Kickstart file to a UEFI HTTP or PXE installation source


After your Kickstart file is ready, you can make it available for the installation on the destination system.

11.1. Sharing the installation files on an NFS server

You can store Kickstart files on an NFS server to enable automated installations across multiple systems. It eliminates the need for physical media and provides centralized management of installation configurations for efficient system deployment over network file sharing.

Prerequisites

  • You have administrator-level access to a server with Red Hat Enterprise Linux 10 on the local network.
  • The system to be installed can connect to the server.
重要

Ensure that you use different paths in inst.ks and inst.repo. When using NFS to host the Kickstart, you cannot use the same nfs share to host the installation source.

Procedure

  1. Install the nfs-utils package by running the following command as root:

    # dnf install nfs-utils
  2. Copy the Kickstart file to a directory on the NFS server.
  3. Open the /etc/exports file by using a text editor and add a line with the following syntax:

    /exported_directory/ clients

    Replace /exported_directory/ with the full path to the directory holding the Kickstart file. Instead of clients, use the host name or IP address of the computer that is to be installed from this NFS server, the subnetwork from which all computers are to have access the ISO image, or the asterisk sign (*) if you want to allow any computer with network access to the NFS server to use the ISO image. See the exports(5) man page for detailed information about the format of this field. A basic configuration that makes the /nfs/rhel10-kickstart/ directory available as read-only to all clients is:

    /nfs/rhel10-kickstart/ *
  4. Enable the NFS service in firewalld.

    # firewall-cmd --permanent --add-service nfs
    # firewall-cmd --permanent --add-service=mountd
    # firewall-cmd --permanent --add-service=rpc-bind
    # firewall-cmd --reload
  5. Save the /etc/exports file and exit the text editor.
  6. Start the nfs service:

    # systemctl enable --now nfs-server.service

    If the service was running before you changed the /etc/exports file, enter the following command, in order for the running NFS server to reload its configuration:

    # systemctl reload nfs-server.service

    The Kickstart file is now accessible over NFS and ready to be used for installation.

    注意

    When specifying the Kickstart source, use nfs: as the protocol, the server’s host name or IP address, the colon sign (:), and the path inside the directory holding the file. For example, if the server’s host name is myserver.example.com and you have saved the file in /nfs/rhel10-kickstart/my-ks.cfg, specify inst.ks=nfs:myserver.example.com:/nfs/rhel10-kickstart/my-ks.cfg as the installation source boot option.

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部