5장. Preparing network-based repositories
You must prepare repositories to install RHEL from your network system.
5.1. Creating an installation source on an NFS server 링크 복사링크가 클립보드에 복사되었습니다!
You can configure an NFS server to host RHEL installation files for network-based installations. It enables multiple systems to install from a shared network location, providing efficient deployment across your infrastructure without requiring physical media for each system.
Prerequisites
- You have administrator-level access to a server with Red Hat Enterprise Linux 10, and this server is on the same network as the system to be installed.
- You have downloaded the full installation DVD ISO from the Product Downloads page.
Ensure that you use different paths in inst.ks and inst.repo. When using NFS to host the installation source, you cannot use the same nfs share to host the Kickstart.
Procedure
Install the
nfs-utilspackage:# dnf install nfs-utils-
Copy the DVD ISO image to a directory on the NFS server. This example assumes the DVD ISO is copied to the
/nfs/rhel10-install/directory on the NFS server. Open the
/etc/exportsfile 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 with the ISO image.
Replace clients with one of the following:
- The host name or IP address of the target system
- The subnetwork that all target systems can use to access the ISO image
-
To allow any system with network access to the NFS server to use the ISO image, the asterisk sign (
*)
See the
exports(5)man page for detailed information about the format of this field.For example, a basic configuration that makes the
/nfs/rhel10-install/directory available as read-only to all clients is:/nfs/rhel10-install *
-
Save the
/etc/exportsfile and exit the text editor. 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 --reloadStart the nfs service:
# systemctl enable --now nfs-server.serviceIf the service was running before you changed the
/etc/exportsfile, reload the NFS server configuration:# systemctl reload nfs-server.serviceThe ISO image is now accessible over NFS and ready to be used as an installation source.
When configuring the installation source, use
nfs:as the protocol, the server host name or IP address, the colon sign(:), and the directory holding the ISO image. For example, if the server host name ismyserver.example.comand you have saved the ISO image in/nfs/rhel10-install/, specifynfs:myserver.example.com:/rhel-10-install/as the installation source.