Cobbler Installing the Linux system (i)

Source: Internet
Author: User

SA is now aware of the importance of operational automation, especially for companies that increase in number of servers by hundreds of and thousands of, and simply install the system, if not done through automation, is unthinkable.

Operation and maintenance automation installation, the early general use of manual configuration Pxe+dhcp+tftp with Kickstart, now open-source tools, such as COBBLER,OPENQRM and spacewalk. This article focuses on cobbler.

Cobbler is a fast network-installed Linux service and can be adjusted to support network installation of Windows. The tool uses Python development, small and lightweight (15k line code only), with simple commands to complete the configuration of the PXE network installation environment, while also managing Dhcp,dns, and Yum package mirroring.

Cobbler Support Command line management, web interface management, also provides API interface, can be easily used two times development.


Installing the Epel source

RPM-IVH http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm


Yum Installation Cobbler

Yum Install cobbler httpd rsync tftp-server xinetd DHCP python-ctypes cman pykickstart-y


Configure Cobbler

Vim/etc/cobbler/settings

Sed-i ' s/manage_dhcp:0/manage_dhcp:1/g '/etc/cobbler/settings

Sed-i ' s/manage_rsync:0/manage_rsync:1/g '/etc/cobbler/settings

next_server:192.168.209.129 #服务器IP

server:192.168.209.129 #服务器IP

Turn off SELinux and firewalls


Configuring TFTP, Rsync

Sed-i '/disable/c\\tdisable\t\t\t=no '/etc/xinetd.d/tftp

Sed-i ' s/\=\ yes/\=\ no/g '/etc/xinetd.d/rsync


Enable the Wsgi module

Sed-i ' [email protected]#[email protected]@g '/etc/httpd/conf.d/wsgi.conf


Generate Cobbler Installation system root initial password

OPENSLL passwd-1-salt ' random-phrase-here ' 123456 '

Copy and modify the generated password into a file

Vim/etc/cobbler/settings

default_password_crypted: "MD5 password"


Configure DHCP

Vim/etc/cobbler/dhcp.template

Subnet 192.168.209.0 netmask 255.255.255.0 {

Option routers 192.168.209.2;

Option Domain-name-servers 192.168.209.2;

Option Subnet-mask 255.255.255.0;

Range DYNAMIC-BOOTP 192.168.209.100 192.168.209.254;

Default-lease-time 21600;

Max-lease-time 43200;

Next-server $next _server;


Configure related services boot from boot

/ETC/INIT.D/HTTPD start

/ETC/INIT.D/DHCPD Start #起不来不要紧后面会解决

/etc/init.d/xinetd start

/etc/init.d/cobblerd start


/sbin/chkconfig httpd on

/sbin/chkconfig DHCPD on

/sbin/chkconfig xinetd on

/sbin/chkconfig TFTP on

/sbin/chkconfig Cobblerd on


Download boot operating system files

Cobbler Get-loaders


Installing Debmiror

Yum-y Install Debmirror

Modify/etc/debmirror.conf, comment out @dists and @arches


Check Cobbler

Cobbler Check

No configuration problems found. All systems go. #为正常


Synchronization configuration

Cobbler Sync #这步就能自动启动DHCP服务了


Create an ISO Catalog

mkdir-pv/var/iso/linux/centos/x86_64/

mkdir-pv/var/os/linux/centos/x86_64/centos5.8/dvd/


Uploading ISO system files to/var/iso/linux/centos/x86_64/


Mount ISO Image

Mount-o loop/var/iso/linux/centos/x86_64/centos-5.8-x86_64-bin-dvd-1of2.iso/var/os/linux/centos/x86_64/ centos5.8/dvd/


Import OS data from DVD

Cobbler Import--path=/var/os/linux/centos/x86_64/centos5.8/dvd--name=centos5.8--arch=x86_64


List the imported configurations

Cobbler List


Then you can install another server.

This article is from the "Eight Miles" blog, so be sure to keep this source http://5921271.blog.51cto.com/5911271/1563986

Cobbler Installing the Linux system (i)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.