Cobbler 2.4 Installation and Configuration


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

wKiom1PCb_uCHOEkAAFf_VRO-gA253.jpg

wKiom1PCb_vwiY3TAAH2vEcDFPc619.jpg

wKioL1PCb8yRF-JWAAIb3sjEfz4874.jpg

wKiom1PCb_uACjM9AAIWa5pq0Qs924.jpg

wKioL1PCb8yw7v8jAAIxTPsU-t8254.jpg

wKiom1PCb_yBxnO_AAIcPdCLRE8383.jpg

wKioL1PCb83hc1uTAAVk2NHKPTQ285.jpg



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

7. boot client via PXE



你可能感兴趣的:(installation,cobbler)