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 \ 
-L <net-location> -k <kernel> -K <kickstart> <os-identifer>
  • -a — 指​​​​​​​定​​​​​​​一​​​​​​​個​​​​​​​ OS 實​​​​​​​體​​​​​​​已​​​​​​​經​​​​​​​被​​​​​​​加​​​​​​​入​​​​​​​到​​​​​​​ 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 — 在​​​​​​​ -s 選​​​​​​​項​​​​​​​後​​​​​​​提​​​​​​​供​​​​​​​了​​​​​​​ 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 的​​​​​​​指​​​​​​​令​​​​​​​列​​​​​​​的​​​​​​​資​​​​​​​訊​​​​​​​,請​​​​​​​參​​​​​​​照​​​​​​​ pxeos man page。​​​​​​​