Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
28.8.2. 使 Kickstart 檔案可經由網路存取
使用 kickstart 的網路安裝是很常見的,因為系統管理員可以在許多網路連線的電腦上快速且簡單的執行自動安裝。一般來說,這種方法最常用在當系統管理員在區域網路中擁有一部 BOOTP/DHCP 伺服器以及一部 NFS 伺服器,BOOTP/DHCP 伺服器是使用來提供用戶端系統它的網路連線資訊,而安裝過程中所用到的檔案,實際上是由 NFS 伺服器所供應的。通常這兩部伺服器是在同一部實體機器上執行,不過這並不是必要的。
從網路上執行 kickstart 安裝,您的網路上必須有 BOOTP/DHCP 伺服器,並且您必須提供您欲安裝 Red Hat Enterprise Linux 的電腦之設定資訊。BOOTP/DCHP 伺服器提供用戶端其網路資訊以及 kickstart 檔案所在位置。
If a kickstart file is specified by the BOOTP/DHCP server, the client system attempts an NFS mount of the file's path, and copies the specified file to the client, using it as the kickstart file. The exact settings required vary depending on the BOOTP/DHCP server you use.
這裡是 DHCP 伺服器的
dhcpd.conf
檔案中一行的範例:
filename
"/usr/new-machine/kickstart/"; next-server blarg.redhat.com;
請注意您必須以 kickstart 的檔案名稱取代
filename
之後的數值(或者 kickstart 檔案所存放的目錄),以 NFS 伺服器的名稱取代 next-server
之後的數值。
If the file name returned by the BOOTP/DHCP server ends with a slash ("/"), then it is interpreted as a path only. In this case, the client system mounts that path using NFS, and searches for a particular file. The file name the client searches for is:
<ip-addr>-kickstart
The
<ip-addr>
section of the file name should be replaced with the client's IP address in dotted decimal notation. For example, the file name for a computer with an IP address of 10.10.0.1 would be 10.10.0.1-kickstart
.
Note that if you do not specify a server name, then the client system attempts to use the server that answered the BOOTP/DHCP request as its NFS server. If you do not specify a path or file name, the client system tries to mount
/kickstart
from the BOOTP/DHCP server and tries to find the kickstart file using the same <ip-addr>-kickstart
file name as described above.