您的位置:首页 > 其它

Cobbler 2.4 Installation and Configuration

2014-07-13 19:27 477 查看
Based on CentOS 6.5 x86_64

1.vi /etc/yum.repos.d/epel.repo
[epel]
name=epel
baseurl=http://mirrors.aliyun.com/epel/6Server/x86_64
enable=1
gpgcheck=0

2.yum -y install cobbler cobbler-web dhcp

service cobblerd start; chkconfig cobblerd on
service httpd start; chkconfig httpd on; chkconfig dhcpd on

3.cobbler check

1).vi /etc/cobbler/settings
a.default_password_crypted: 使用openssl passwd -1 yourpassword 获取加密值
b.把其中的 server 和 next_server 设为本服务器的 IP 地址
c.manage_dhcp 设为 1,以便管理 DHCP

2).cobbler get-loaders

3).change 'disable' to 'no' in /etc/xinetd.d/tftp and /etc/xinetd.d/rsync

4).yum -y install cman pykickstart

5).vi /etc/cobbler/dhcp.template, 修改dhcp网段选项,do not modify the "next-server $next_server;"

6).service cobblerd restart
cobbler check

4.注意 /var/www/cobbler 目录必须具有足够容纳 Linux 安装文件的空间

for CentOS 7:
cobbler signature update

cobbler import --name=centos7 --path=/media

cobbler import --name=centos65 --path=/media

cobbler import --name=rhel7 --path=/media

cobbler import --name=rhel65 --path=/media

5.setting up Cobbler web interface

Your /etc/cobbler/modules.conf should look something like this:

[authentication]
module = authn_configfile

[authorization]
module = authz_allowall

service cobblerd restart
service httpd restart
http://server-name/cobbler_web/ username/password: cobbler/cobbler

6.you now can change distro and profile, and add system in web gui






















7.每次完成system添加后,都要cobbler sync

7. boot client via PXE

本文出自 “Ilovecat(个人笔记)” 博客,请务必保留此出处http://hj192837.blog.51cto.com/655995/1437641
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: