13.8.2. 在网络上提供 Kickstart 文件
使用 kickstart 的网络安装比较普遍,因为系统管理员可以快速轻松地自动化许多联网计算机的安装。一般说来,这种方法对于在局域网上具有 BOOTP/DHCP 和 NFS 服务器的管理员来说,使用最普遍。BOOTP/DHCP 服务器用来给客户提供联网信息,在安装中使用的文件则由 NFS 服务器提供。这两项服务经常在同一部机器上运行,但是这并不是必需的。
To perform a network-based kickstart installation, you must have a BOOTP/DHCP server on your network, and it must include configuration information for the machine on which you are attempting to install Fedora. The BOOTP/DHCP server provides the client with its networking information as well as the location of the kickstart file.
如果 BOOTP/DHCP 服务器指定了 kickstart 文件,客户机系统将尝试包含这个文件的 NFS 挂载,并把文件复制到客户端。具体的设置依你所使用的 BOOTP/DHCP 服务器的不同而不同。
下例是 DHCP 服务器的 dhcpd.conf
文件里的一行:
filename
"/usr/new-machine/kickstart/"
; next-server blarg.redhat.com;
注意你应该用 kickstart 文件(或是 kickstart 文件所位于的目录)的名字替换 filename
后的值,并且用 NFS 服务器的名字替换 next-server
后的值。
如果 BOOTP/DHCP 服务器返回的文件名以斜杠("/")结束,这将被解释为目录。在这种情况下,客户系统使用 NFS 挂载这个路径,并搜索特定的文件。客户系统搜索的文件名是:
<ip-addr>
-kickstart
文件名的 <ip-addr>
部分应该用客户机的 IP 地址替换。例如,IP 地址为 10.10.0.1 的机器的文件名将是 10.10.0.1-kickstart
。
注意,如果你没有指定服务器名,客户端系统就会试图把应答 BOOTP/DHCP 请求的服务器作为它的 NFS 服务器。如果你没有指定路径或文件名,客户端系统就会试图从 BOOTP/DHCP 服务器挂载 /kickstart
并用上面描述的 <ip-addr>
-kickstart
文件名来寻找 kickstart 文件。