Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

31.2. Настройка PXE-загрузки

Следующим шагом будет копирование файлов, необходимых для запуска установки, на tftp-сервер, чтобы обеспечить их доступ для клиента. Сервер tftp обычно разворачивается на том же компьютере, где и сетевой сервер, экспортирующий дерево каталогов установки.
Чтобы скопировать файлы, запустите на NFS, FTP или HTTP-сервере утилиту Настройка загрузки по сети. Использовать для PXE отдельный сервер не требуется.

31.2.1. Настройка в командной строке

If the network server is not running X, the pxeos command line utility, which is part of the system-config-netboot package, can be used to configure the tftp server files as described in Раздел 31.4, «TFTPD»:
pxeos -a -i "<description>" -p <NFS|HTTP|FTP> -D 0 -s client.example.com \ 
-L <net-location> -k <kernel> -K <kickstart> <os-identifer>
Используемые параметры:
  • -a: указывает, что в конфигурацию PXE добавляется экземпляр ОС.
  • -i "<description>" — Replace "<description>" with a description of the OS instance.
  • -p <NFS|HTTP|FTP> — Specify which of the NFS, FTP, or HTTP protocols to use for installation. Only one may be specified.
  • -D <0|1> — Specify "0" which indicates that it is not a diskless configuration since pxeos can be used to configure a diskless environment as well.
  • -s client.example.com: имя NFS, FTP или HTTP-сервера.
  • -L <net-location> — Provide the location of the installation tree on that server after the -L option.
  • -k <kernel> — Provide the specific kernel version of the server installation tree for booting.
  • -K <kickstart> — Provide the location of the kickstart file, if available.
  • <os-identifer> — Specify the OS identifier, which is used as the directory name in the /tftpboot/linux-install/ directory.
If FTP is selected as the installation protocol and anonymous login is not available, specify a username and password for login, with the following options before <os-identifer> in the previous command:
-A 0 -u <username> -p <password>
За дополнительной информацией о доступных параметрах команды pxeos обратитесь к странице помощи man pxeos.