首页 > 系统运维 > cobbler安装和yum搭建
您的足迹
  • 你没有浏览过任何文章或者你没有开启cookies。

cobbler安装和yum搭建

cobbler作为取代kickstart一个利器还是不错的,今天突然想到加yum应该不错,一举两得。下面简单记录安装步骤,供日后参考:

1.安装基础软件

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
rpm -ivh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm 
yum -y install cobbler dhcp httpd xinetd tftp-server
2.配置
#vim /etc/dhcpd.conf
# ******************************************************************
# Cobbler managed dhcpd.conf file
# generated from cobbler dhcp.conf template (Sat Oct  8 05:47:57 2011)
# ******************************************************************

ddns-update-style interim;

allow booting;
allow bootp;

ignore client-updates;
set vendorclass = option vendor-class-identifier;

subnet 192.168.1.0 netmask 255.255.255.0 {
     option routers          192.168.1.3;
     option subnet-mask      255.255.255.0;
     range dynamic-bootp     192.168.1.238 192.168.1.240;
     filename                "pxelinux.0";
     default-lease-time      21600;
     max-lease-time          43200;
     next-server             192.168.1.249;
}

# vim /etc/xinetd.d/tftp

service tftp
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /tftpboot
        disable                 = no
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}

3.cobbler文件结构
cobbler文件主要分布在三个目录/var/www/cobbler ,/var/lib/cobbler和/etc/cobbler,按相应功能配置即可。

4.Yum服务器的配置

4.1安装createrepo软件,安装光盘下面有,直接安装就可以。

4.2生成包依赖文件
#cd /var/www/cobbler/ks_mirror/CentOS-5.6-x86_64/CentOS
#createrepo -g ../repodata/comps.xml .

4.3在客户端建立一个server.repo测试,如下:

[server]
name=Server
baseurl=http://192.168.16.222/cobbler/ks_mirror/CentOS-5.6-x86_64/CentOS/
enabled=1
gpgcheck=0

  1. 还没有评论
评论提交中, 请稍候...

留言

可以使用的标签: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackbacks & Pingbacks ( 0 )
  1. 还没有 trackbacks
Feed