Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Linux operation and maintenance of the automated installation and deployment RHEL7.0 Cobbler     - MySQL multi-master-slave synchronization (Database)

- Linux dynamic libraries and Guide (Programming)

- IBM Data Studio to create objects using ---- double quotes / sensitive issues and the table / column renaming (Database)

- Difference LVS three scheduling modes (Server)

- How to modify the Emacs Major Mode Shortcuts (Linux)

- Nginx DHCP TFTP Kickstart set up automatic installation system (Server)

- Oracle metadata Reconstruction experiments (Database)

- Quota for Vsftpd do use disk quotas (Server)

- Linux file compression and archiving (Linux)

- Precautions against hackers Linux environment (Linux)

- Ubuntu 14.04 build Gitlab (Linux)

- Oracle View index and use indexes Precautions (Database)

- GNU / Linux system, how to clean up memory space (Linux)

- How to Upgrade Ubuntu GNOME 14.10 to GNOME 3.16 Desktop (Linux)

- Linux file permissions chmod chown (Linux)

- Android Scroller call mechanism and the relationship of computeScroll (Programming)

- Android Delete project useless resource file (Programming)

- HashMap in Android and Java different implementations (Programming)

- Installation and configuration of phpMyAdmin under CentOS (Database)

- Linux System Getting Started Learning: install software packages on Ubuntu and Fedora (Linux)

  Linux operation and maintenance of the automated installation and deployment RHEL7.0 Cobbler
  Add Date : 2016-04-24      
  First, Introduction

Cobbler can be used to quickly build Linux network installation environment, it has a network installation of Linux technology threshold, from college educational level, successfully reduced to junior high school, even cobbler can learn.

Network installation server suite Cobbler (Cobbler) in the past, we have been doing workers installed this very promising career. Several years ago, ever since Red Hat launched Kickstart, after which we feel a worth double. Carved disc is no longer required a platform to install a Linux, Just get PXE, DHCP, TFTP, there was a dazzling full screen unintelligible Kickstart script, we can be like Harry Potter, like magic wands, instant installation hundreds of servers. This is not a bunch of fancy stuff the average person can understand the whole, there is no college education, pass CET, not even think about Fun. All in all, this is a how promising, how technical content of work ah.

Unfortunately, Red Hat latest (Cobbler project was originally released in around 2008) released a network installation server suite Cobbler (Cobbler), which has a network installation of Linux technology threshold, from college educational level, successfully reduced to junior high school, even cobbler can learn. For those of us steeped in installed capacity in the field for many years, experienced, old people, high aspirations of migrant brothers who, as good as a bolt from the blue.

System Environment

Experimental environment: VMware Workstation 11

Platform: RHEL7

Network Mode: NAT (using a local DHCP)

Cobbler Version: 2.6.9.


Native IP:

Firewall off / iptables: Firewall is not running.

SELINUX = disabled


The need to use the service: EPEL, DHCP, TFTP, HTTP, VSFTP

NOTE: EPEL (Extra Packages for Enterprise Linux, Enterprise Linux additional packages) Fedora is maintained by a group depot project for RHEL / CentOS default package provided they do not provide. This source is compatible with RHEL and CentOS and Scientific Linux such as derivative versions.

1. Configure the local yum repository, mount CD image

[Root @ linuxidc Desktop] #vim /etc/yum.repos.d/rhel7.repo


name = rhel7

basurel = file: /// mnt

enabled = 1

gpgcheck = 0

The CD-ROM on / mnt in

[Root @ linuxidc Desktop] #mount / dev / cdrom / mnt

2. Install the EPEL

To install the EPEL, we need to download the EPEL rpm installation package.

Download Page CentOS7 / RHEL7 below, do not worry about the version in general can use, I do not have to use this version, the right to choose their own package according to your different versions of the operating system.


EPEL packages installed by the following command

[Root @ linuxidc Desktop] #rpm -ivh epel-release-6-8.noarch.rpm

After installing EPEL source, use yum command to check whether to add to the list of sources

[Root @ linuxidc Desktop] # yum repolist
Is loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Source identifies the source state name
epel / x86_64 Extra Packages for Enterprise Linux 7 - x86_64 8,477
rhel7 rhel7 4,305
repolist: 12,782

Installation Cobbler-Web interface and DHCP

Cobbler provides a very useful Web interface, you can accomplish this through the interface. To use this interface, you first need to install it in the package:

[Root @ linuxidc Desktop] #yum -y install cobbler-web

The above steps may occur dependencies problems, solutions, see the article under the solution.

After the installation is complete, the system will give you all of the following packages installed, and if the package is not installed, please manually install


cobbler-web.noarch 0: 2.6.9-1.el7

As dependencies are installed:

PyYAML.x86_64 0: 3.10-11.el7
apr.x86_64 0: 1.4.8-3.el7
apr-util.x86_64 0: 1.5.2-6.el7
cobbler.noarch 0: 2.6.9-1.el7
httpd.x86_64 0: 2.4.6-17.el7
httpd-tools.x86_64 0: 2.4.6-17.el7
mod_ssl.x86_64 1: 2.4.6-17.el7
mod_wsgi.x86_64 0: 3.4-11.el7
python-cheetah.x86_64 0: 2.4.4-4.el7
python-django.noarch 0: 1.6.11-2.el7
python-django-bash-completion.noarch 0: 1.6.11-2.el7
python-markdown.noarch 0: 2.4.1-1.el7
python-netaddr.noarch 0: 0.7.5-7.el7
python-simplejson.x86_64 0: 3.3.3-1.el7
tftp-server.x86_64 0: 5.2-11.el7
xinetd.x86_64 2: 2.3.15-12.el7
[Root @ linuxidc Desktop] # yum -y install dhcp

Command Configure Cobbler

A restart cobbler service

[Root @ linuxidc Desktop] #systemctl enable cobblerd.service

[Root @ linuxidc Desktop] #systemctl start cobblerd.service

[Root @ linuxidc Desktop] #systemctl enable httpd

[Root @ linuxidc Desktop] #systemctl start httpd

Second, check the configuration cobbler

Check the configuration commands executed

[Root @ linuxidc Desktop] #cobbler check

Operating results feedback

The following are potential configuration items that you may want to fix:

1: The 'server' field in / etc / cobbler / settings must be set to something other than localhost, or kickstarting features will not work This should be a resolvable hostname or IP for the boot server as reachable by all machines that will use. it.

2: For PXE to be functional, the 'next_server' field in / etc / cobbler / settings must be set to something other than, and should match the IP of the boot server on the PXE network.

3: change 'disable' to 'no' in /etc/xinetd.d/tftp

4: some network boot-loaders are missing from / var / lib / cobbler / loaders, you may run 'cobbler get-loaders' to download them, or, if you only want to handle x86 / x86_64 netbooting, you may ensure that you have installed a * recent * version of the syslinux package installed and can ignore this message entirely. Files in this directory, should you want to support all architectures, should include pxelinux.0, menu.c32, elilo.efi, and yaboot. The 'cobbler get-loaders' command is the easiest way to resolve these requirements.

5: file /etc/xinetd.d/rsync does not exist

6: debmirror package is not installed, it will be required to manage debian deployments and repositories

7: The default password used by the sample templates for newly installed machines (default_password_crypted in / etc / cobbler / settings) is still set to 'cobbler' and should be changed, try: "openssl passwd -1 -salt 'random-phrase- here '' your-password-here ' "to generate new one

8: fencing tools were not found, and are required to use the (optional) power management features install cman or fence-agents to use them.

Restart cobblerd and then run 'cobbler sync' to apply changes.

Above this information to the effect that:

1, edit / etc / cobbler / settings file, locate the server option, and modify them to provide services ip address (ie IP address of your machine, and can not be

2, edit / etc / cobbler / settings file, find next_server option to modify an address other than (that is, the local IP address)

3, edit /etc/xinetd.d/tftp file, the configuration file disable field from yes to no

4, the implementation cobbler get-loaders, the system will automatically download the loader program prompts to complete the repair work 4.

5, the file does not exist /etc/xinetd.d/rsync

6, suggesting that debmirror not installed. If it is not installed debian system and the like, this prompt can be ignored, if you need to install, download address is:


7, modify the default password cobbler user, you can use the following command to generate a password, and the password generated after replace / etc / cobbler / settings in the password. Generate a password command: openssl passwd -1 -salt 'random-phrase-here' 'your-password-here'

Third, the configuration process

[Root @ linuxidc Desktop] # openssl passwd -1 -salt "cobbler" "123456" // generate a new password, the password is 123456. This password is to install the system after the root password

$ 1 $ cobbler $ sqDDOBeLKJVmxTCZr52 / 11 // copy the code

[Root @ linuxidc Desktop] # vim / etc / cobbler / settings // open the configuration file, modify the three local

server: // to the IP address of the machine

next_server: // to the IP address of the machine

default_password_crypted: "$ 1 $ cobbler $ sqDDOBeLKJVmxTCZr52 / 11" // encrypted password to the original copy of the code above we

[Root @ linuxidc Desktop] # vim /etc/xinetd.d/tftp

disable = no // find the line to disable change yes no

[Root @ linuxidc Desktop] # cobbler get-loaders

...... //skip


*** TASK COMPLETE *** // finally appear correctly this prompt instructions to the other are wrong

[Root @ linuxidc Desktop] # cobbler import --path = / mnt / --name = rhel7.0 // to mount disc image mnt directory contents into cobbler in

...... //skip


*** TASK COMPLETE *** // finally appear correctly this prompt instructions to the other are wrong

Note: Check the mount path is correct, go mount path preparation in view.

[Root @ linuxidc Desktop] # systemctl restart cobblerd.service

Fourth, configure the DHCP service

First modify the configuration cobbler, cobbler let dhcp service to manage, edit the file / etc / cobbler / settings

[Root @ linuxidc Desktop] # vim / etc / cobbler / settings

manage_dhcp: 1

Then modify /etc/cobbler/dhcp.template, this document is a template cobbler management dhcp

For this file, in this case only need to modify the following parts:

subnet netmask {

option routers;

option domain-name-servers;

option subnet-mask;

range dynamic-bootp;

default-lease-time 21600;

max-lease-time 43200;

next-server $ next_server;

The rest of the default values ​​can be maintained.

So far, even if all the preparations have been completed.

Five synchronized cobbler configuration

[Root @ linuxidc Desktop] # cobbler sync // synchronization command

...... //skip


*** TASK COMPLETE *** // finally appear correctly this prompt instructions to the other are wrong

cobbler automatically initialization, remove startup items that already exist, and then copy the template file loader. After the re-creation pxe configuration files generated dhcp configuration file, and finally restart the dhcp service.

[Root @ linuxidc Desktop] # systemctl restart cobblerd.service
[Root @ linuxidc Desktop] # systemctl restart xinetd.service
[Root @ linuxidc Desktop] # cobbler sync

At this point, you can use virtual machines to test cobbler installed.

================================================== =========================================

Open Cobbler-web configured

All of the above steps are commands to configure the way, we can also be configured in a simple way, that is the graphical configuration page.

Using Firefox browser to open the following Web site

User name and password are: cobbler

Function explain (on the left tab):

Distros: information about the version you want to install the system, including the start address of the file, version, architecture

Profiles: The main is to select ks and virtualization configuration file

Kickstart Templates: centralized management ks file, you can create a new file ks (handwriting) on ​​the inside or import ks file.

Snippets: fragments of this stuff is temporarily not figure out if people understand also hope the wing.

Settings: The data inside is / etc / cobbler / settings configuration file, you can page to edit the configuration file content directly

Import DVD: Import installation source image, if not imported through Distros and there will be no content Profiles

Sync: synchronization means

Check: Check

    Web interface for configuration under me here is not too much to explain, and most things are the little mouse, you can use the command After the configuration page to open look, I above all we need to configure the functional annotation, click the Profiles after you import the system appears to the right, then click the Edit button to find ks choose script, ks script is called from the Kickstart Templates, ks file you can compile your own, if you bother to compile, after the completion of the installation is a minimal installation.

    Ks files compiled on my suggestion is to use kiskstart (more convenient, less error-prone)
- OpenGL Superb Learning Notes - Depth Texture and Shadows (Programming)
- Based on OpenSSL for HTTPS service configuration (Server)
- How to use Android Studio development / debugging Android source code (Linux)
- How to write a new Git protocol (Linux)
- A script to make your Ubuntu 14.04 Memory screen brightness (Linux)
- Btrfs file system repair techniques (Linux)
- What factors affect the performance of Java calls (Programming)
- Linux directory permissions to read and execute permissions difference (Linux)
- HTML5 postMessage cross-domain data exchange (Programming)
- Configuring xdebug debugging environment in Ubuntu 14.04 under the PhpStorm (Linux)
- Ubuntu Learning Advanced article - to teach you to further enhance system security (Linux)
- Java-- get the reflection object information (Programming)
- Precautions against hackers Linux environment (Linux)
- Solaris 11 forget the root password (Linux)
- Redis application of Sina Weibo (Database)
- Oracle Database Restore (Database)
- Linux System Getting Started tutorial: Ubuntu desktop using the command line to change the system proxy settings (Linux)
- Hazelcast integration with MongoDB (Database)
- Linux screen command (Linux)
- Linux virtual machine settings network, hostname ssh access (Linux)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.