Cobbler

安装环境

 

使用目录及文件

cobbler相关配置文件 /etc/cobbler

cobbler数据存储目录 /var/www/cobbler

dhcp配置文件 /etc/dhcpd.conf

dhcp租期缓存文件 /var/lib/dhcpd/dhcpd.leases

pxe配置文件 /tftpboot/pxelinux.cfg/default

 

安装配置

EPEL/FAQ http://fedoraproject.org/wiki/EPEL/FAQ

# rpm -Uhv http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm

#rpm -ivh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

# yum -y install tftp-server httpd dhcp yum-utils

# yum -y install cobbler

# yum -y install cman 

yum-utils  编译安装  make && make install

 

 

 

# vi /etc/cobbler/settings

[code]

server: '192.168.1.3'

next_server: '192.168.1.3'

manage_dhcp: 1

[/code]

 

# vi /etc/xinetd.d/tftp

[code]

disable = no

[/code]

 

 

# vi /etc/cobbler/dhcp.template 改为相应的网段和ip

subnet 192.168.2.0 netmask 255.255.255.0 {

     option routers             192.168.2.5;

     option domain-name-servers 192.168.2.1;

     option subnet-mask         255.255.255.0;

     range dynamic-bootp        192.168.2.100 192.168.2.254;

     filename                   "/pxelinux.0";

     default-lease-time         21600;

     max-lease-time             43200;

     next-server                $next_server;

}

 

 

导入CentOS 光盘映像文件

# mkdir /home/CentOS

# mount /home/src/CentOS-5.2-i386-bin-DVD.iso /home/CentOS/ -o loop

# cobbler import --mirror=/home/CentOS --name=CentOS-5.2

# cobbler sync

 

 

 

cobbler check 根据提示解决问题 

关掉iptables 关掉 selinux selinux 导致tftp的目录无法访问 pxe停止在引导界面

service dhcpd start

service httpd start

service xinetd restart

service cobbler start

你可能感兴趣的:(职场,休闲,cobbler)