Installing the Epel source
RPM-IVH epel-release-6-8.noarch.rpm
Yum installs cobbler and relies on
Yum Install cobbler httpd rsync tftp-server xinetd dhcp python-ctypes cman pykickstart system-config-kickstart debmirror C Obbler-web Koan Syslinux-y
Configure Cobbler
Vim/etc/cobbler/settings
Manage_dhcp:1#启用cobbler管理DHCP功能
Manage_rsync:1#启用cobbler管理rsync功能
next_server:192.168.80.10#DHCP服务地址
server:192.168.80.10#cobbler服务地址
Check off iptables and SELinux
/etc/init.d/iptables stop
Vim/etc/sysconfig/selinux
Selinux=disabled
Configuring TFTP and Rsync
Vim/etc/xinetd.d/tftp
Disable No
Vim/etc/xinetd.d/rsync
Yes, it's all changed to No.
Enable the Wsgi module
Vim/etc/httpd/conf.d/wsgi.conf
Remove comments
#LoadModule
Generate Cobbler Installation system root initial password
Here generate the key and configure the default key, KS file reference
OpenSSL passwd-1-salt ' random-phrase-here ' 123456 '
Adding keys to the configuration file
Vim/etc/cobbler/settings
Default_password_crypted: Key
Configure DHCP
cp/etc/cobbler/dhcp.template/etc/cobbler/dhcp.template.$ (date +%f) #备份
Vim/ect/cobbler/dhcp.template
Subnet 192.168.80.0 netmask 255.255.255.0 {
Option routers 192.168.80.2;
Option Domain-name-servers 114.114.114.114;
Option Subnet-mask 255.255.255.0;
Range DYNAMIC-BOOTP 192.168.80.100 192.168.80.254;
Default-lease-time 21600;
Max-lease-time 43200;
Next-server $next _server;
Configure related services boot from boot
Configure related services to turn on self-booting
/ETC/INIT.D/HTTPD start
/ETC/INIT.D/DHCPD start
/etc/init.d/xinetd start
/etc/init.d/cobblerd start
Chkconfig httpd on
Chkconfig DHCPD on
Chkconfig Cobblerd on
Chkconfig xinetd on
Chkconfig TFTP on
Download boot operating system files
Cobbler Get-loaders
Configure Debmirror
Yum Install Debmirror-y
Modify the/etc/debmirror.conf file
# @dists = "Sid"; # @arches = "i386";
Check the Cobbler configuration
Cobbler Check
Synchronization configuration
Cobbler Sync
Configuration Management Cobbler
Cobbler Command Description
Cobbler Check Cobbler Configuration
Cobbler list lists all the cobbler elements
Cobbler report listing details of elements
Cobbler distro Viewing the imported release system Information
Cobbler System View added systems information
Cobbler Sync Sync Cobbler Configuration, change the configuration to perform the last
Cobbler configuration File Description
Cobbler configuration file is stored under/etc/cobbler
/etc/cobbler/settingsCobbler master configuration file
/etc/cobbler/users.digest User name password configuration file for Web Access
/etc/cobbler/modules.conf Template configuration file
/etc/cobbler/users.confCobbler webui/web Service Authorization profile
/etc/cobbler/isobuildiso template configuration file
/etc/cobbler/power Power configuration file
/etc/cobbler/pxepxeprofile configuration template
/etc/cobbler This directory page contains template profiles for rsync, DHCP, DNS, PXE, DNSMASQ, and other services
System Image Data Catalog/var/www/cobbler
Imported system releases, repos images and kickstart files are placed in the/var/www/cobbler directory
Make sure that the/var directory has enough space to store these files
/var/www/cobbler/images/ Store kernel and INITRD images for all imported distributions for remote network boot
/var/www/cobbler/repo_mirror/ Warehouse Storage Directory
/var/log/cobblerCobbler log file Cobbler.log Install.log
Cobbler Data Catalog/var/lib/cobbler
This directory stores and cobbler profiles, systems, distros-related configurations
/var/lib/cobbler/config/ stores information profiles such as distros, repos, systems, and profiles, typically JSON files
/var/lib/cobbler/snippets/ Storing KS files can be imported script small fragment
/var/lib/cobbler/triggers Storing user-defined cobbler commands
/var/lib/cobbler/kickstart/ Storing Kickstart configuration files
Related log files
Web Log storage Point
/var/log/httpd/access_log
/var/log/httpd/error_log
/var/log/httpd/ssl_access_log
/var/log/httpd/ssl_error_log
Cobbler Log
/var/log/cobbler/cobbler.log
/var/log/cobbler/install.log
Import System Image
Upload ISO image to server
Create an ISO Catalog
Mkdir-pv/opt/iso/linux/centos/x86_64
Mkdir-pv/opt/os/linux/centos/x86_64/centos6.5/dvd
Mount ISO Image
Mount-o loop/opt/iso/linux/centos/x86_64/centos-6.5-x86_64-bin-dvd1.iso/opt/os/linux/centos/x86_64/centos6.5/ dvd/
Import OS data from DVD
System version named centos6.5 Schema x86_64 to view ls/var/www/cobbler/ks_mirror/centos6.5-x86_64/directory file generation
Cobbler Import--path=/opt/os/linux/centos/x86_64/centos6.5/dvd--name=centos6.5--arch=x86_64
List the imported configurations
Cobbler List
List details can be used Cobbler report
To delete an imported system
Cobbler profile Find--distro=centos6.5-x86_64 #查看配置是否存在
Cobbler profile Remove--name=centos6.5-x86_64 #删除distro
Cobbler profile Find--distro=centos6.5-x86_64 #再查看配置已无
Custom KS
Change Kickstart file, available for HTTP etc, specific Cobbler--help view, here we customize KS file
KS Catalogue
/var/lib/cobbler/kickstart/
Change the KS profile for the specified version
Cobbler Profile Edit--name=centos6.5-x86_64--kickstart=/var/lib/cobbler/kickstarts/centos6.5.cfg
Configuration Information View
Cobbler Report
Synchronous Cobbler Configuration
It is recommended that you perform a configuration check on cobbler check before performing cobbler sync, and you need to perform this step after modifying the cobbler configuration
KS File Example
#platform =x86, amd64, or intel em64t# system authorization informationauth --useshadow --enablemd5# System bootloader configurationbootloader --location=mbr# partition clearing informationclearpart --all --initlabel# use text mode installtext# Firewall configurationfirewall --disable# Run the setup agent on first bootfirstboot --disable# system Keyboardkeyboard us# system languagelang zh_cn# use network installationurl --url= $tree # if any cobbler repo definitions were referenced in the kickstart profile, include them here. $yum _repo_stanza# network Information$snippet (' Network_config ') # reboot after installationreboot#root passwordrootpw --iscrypted $defauLt_password_crypted# selinux configurationselinux --disabled# do not configure the x window systemskipx# system timezonetimezone asia/shanghai# install os instead of upgradeinstall# clear the master boot Recordzerombr# Allow anaconda to partition the system as Neededautopart
This article from "Eight Miles" blog, declined reprint!
Cobbler Automatic Installation system