歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Cobbler批量部署RedHat Linux

Cobbler批量部署RedHat Linux

日期:2017/2/28 15:51:12   编辑:Linux教程

前面一篇介紹了使用Kickstart批量部署RedHat Linux 見 http://www.linuxidc.com/Linux/2012-05/60606.htm,但是這種方法配置起來比較麻煩。現在,我們有了更好的選擇。那就是:Cobbler。在看以下內容時最好先看下:Kickstart批量部署redhat。

系統環境:CentOS 5

CentOS5.4默認的Repository裡找不到Cobbler,先安裝rpmforce這個Repository。很全很強大,近10000個軟件包。

  1. #32位:
  2. wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
  3. rpm -ivh rpmforge-release-0.5.1-1.el5.rf.i386.rpm
  4. #64位:
  5. wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
  6. rpm -ivh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm

1. 安裝相關軟件:

yum -y install cobbler dhcp httpd xinetd tftp-server

# cobbler的配置文件在/var/lib/cobbler/和/etc/cobbler下(不同版本可能不同)
# xinetd tftp-server用來做tftp服務器,pxe啟動需要。
# httpd服務器主要存放ks文件和安裝光盤。注意 /var/www/cobbler 目錄必須具有足夠容納 Linux 安裝文件的空間(移動,建軟鏈接)

2. 檢查 cobbler 配置:

  1. cobbler check

#0: The 'server' field in /var/lib/cobbler/settings must be set to something other than localhost, or kickstarting features will not work. This should be a resolvable hostname or IP for the boot server as reachable by all machines that will use it.
#1: For PXE to be functional, the 'next_server' field in /var/lib/cobbler/settings must be set to something other than 127.0.0.1, and should match the IP of the boot server on the PXE network.
#2: change 'disable' to 'no' in /etc/xinetd.d/tftp

# 按提示解決相關問題,把 /var/lib/cobbler/settings 中的 server 和 next_server 設為本服務器的 IP 地址,/etc/xinetd.d/tftp中disable = yes,manage_dhcp 設為 1,以便管理 DHCP

Copyright © Linux教程網 All Rights Reserved