第 11 章 配置一个安装服务器
针对有经验的用户
这部分附录是针对有过使用Linux经验的用户的。对于新用户,推荐使用DVD发行版中的Minimal Boot Media。
Warning
The instructions in this appendix configures an automated install server. The default configuration includes destruction of all existing data on all disks for hosts that install using this method. This is often different from other network install server configurations which may provide for an interactive installation experience.
Fedora allows for installation over a network using the NFS, FTP, or HTTP protocols. A network installation can be started from a boot CD-ROM, a bootable flash memory drive, or by using the askmethod
boot option with the Fedora CD #1 or DVD. Alternatively, if the system to be installed contains a network interface card (NIC) with Pre-Execution Environment (PXE) support, it can be configured to boot from files on another networked system rather than local media such as a CD-ROM.
For a PXE network installation, the client's NIC with PXE support sends out a broadcast request for DHCP information. The DHCP server provides the client with an IP address, other network information such as name server, the IP address or hostname of the tftp
server (which provides the files necessary to start the installation program), and the location of the files on the tftp
server. This is possible because of PXELINUX, which is part of the syslinux
package.
In the past, administrators needed to perform a great deal of manual configuration to produce an installation server. However, if you have a Red Hat Enterprise Linux, CentOS, or Fedora server on your local network, you can use
cobbler to perform these tasks. To configure a PXE server manually, see
第 11.5 节 “Manually configure a PXE server”.
这一部分向导里的工作,需要切换到root
账户来进行。切换的命令是su -
。另外一种方法是每次运行命令是在前面加上su -c
,使命令行成为su -c 'command
'
。
使用以下命令安装cobbler。
yum -y install cobbler
cobbler
命令可以进行设置的自检并报告检测结过。运行以下命令以检测设置:
cobbler check
改变 /var/lib/cobbler/settings
文件的设置来反映服务器的 IP 地址信息。您至少需要修改 server
和next_server
两项,虽然有时它们的 IP 地址相同
如果您还没有运行 DHCP 服务, 您还要修改manage_dhcp
参数为 1
。 如果您已有一个运行的 DHCP 服务器,请根据 syslinux 软件包的内容进行配置。更多信息参考本地文件 /usr/share/doc/syslinux-version
/syslinux.doc
和 /usr/share/doc/syslinux-version
/pxelinux.doc
。