Cobbler Server installation and deployment

Source: Internet
Author: User
You must be familiar with network installation. Generally, it can be achieved through similar configurations such as Pxe + dhcp + nfs + tftp. However, manual intervention is required during the installation process, later, I joined kickstart to automatically install hundreds of systems at the same time to facilitate O & M management! However, kickstart has poor configurability and will interrupt the normal restart of other computers in this segment. The appearance of cobbler can solve this problem well, and added web interfaces to facilitate template debugging. Cobbler serves as a preparation tool for deploying RedHat/CentOS/Fed

You must be familiar with network installation. Generally, it can be achieved through similar configurations such as Pxe + dhcp + nfs + tftp. However, manual intervention is required during the installation process, later, I joined kickstart to automatically install hundreds of systems at the same time to facilitate O & M management! However, kickstart has poor configurability and will interrupt the normal restart of other computers in this segment. The appearance of cobbler can solve this problem well, and added web interfaces to facilitate template debugging.

As a preparation tool, Cobbler makes it easier to deploy the RedHat/CentOS/Fedora system and also supports the deployment of SUSE and Debian systems.

It provides the following service integration:

* PXE Service Support

* DHCP Service Management

* DNS Service Management

* Kickstart Service Support

* Yum repository Management

Cobbler client Koan supports Virtual Machine installation and operating system re-installation

Cobbler web interface allows you to better manage user operation Interfaces

Cobbler server deployment:

Local Environment: centos6.0 _ 64bit

1. Ensure that the EPEL warehouse is available. If not, install the epel package first:

Download the epel package for a local server

Rpm-Uvh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm

2. Install all the packages required by the cobbler server:

Yum-y install cobbler httpd rsync tftp-server xinetd dhcp cobbler-web koan

3. Start httpd and cobblerd, and set it to auto-start upon startup:

/Sbin/service httpd start

/Sbin/service cobblerd start

/Sbin/chkconfig httpd on

/Sbin/chkconfig dhcpd on

/Sbin/chkconfig xinetd on

/Sbin/chkconfig tftp on

/Sbin/chkconfig cobblerd on

4. Run the cobbler configuration check.
Cobbler check

Check the environment bug to be run by cobbler to be modified.

5. Fix the corresponding bug

1. Edit the/etc/cobbler/settings file, find the server option, and change it to an appropriate ip address. The ip address configured for this instance is 192.168.2.142.

2. Edit the/etc/cobbler/settings file, find the next_server option, and change it to an appropriate ip address. The ip address configured for this instance is 192.168.2.142.

3. SELinux settings. If SELinux has been disabled, you don't need to worry about it.

4. Execute the cobbler get-loaders command. The system will automatically download the loader program and complete the fix in Tip 4.

5. Edit the/etc/xinetd. d/tftp file and change the disable field configuration in the file from yes to no.

6. Edit the/etc/xinetd. d/rsync file and change the disable field configuration in the file from yes to no.

7. Enable ports 25151, 80, and in iptables. If it is only used in the internal environment, we recommend that you disable the firewall directly.

8. It indicates that debmirror is not installed. If debian is not installed, this prompt can be ignored. If you need to install it, it is:

Http://rpmfind.net/linux/rpm2html/search.php? Query = debmirror

CentOS 6 uses the RHEL 5 package.

9. Change the default password of a cobbler user. Use the following command to generate a password and replace the password in/etc/cobbler/settings. Password generation command:

Openssl passwd-1-salt 'random-phrase-here ''123'

Where "random-phrase-here" is the interference code

Run

Service cobblerd restart

6. generate an installation Image

Images are divided into local and network types, but must be downloaded to the local http access directory!

A. Mount the local iso file and generate an image to/var/www/cobbler/ks_mirror/centos5.5.

Cobbler import -- path =/mnt/cdrom -- name = centos5.5

B. Copy the network image to the local device.

Cobbler import -- path = rsync: // mirrors.163.com/centos/6.0/ OS/I #/ -- name = centos-6.0-i386

If an image is deleted, the local/var/www/cobbler/ks_mirror/centos6.0 directory is removed.

Cobbler profile remove -- name = centos6.0-xen-i386

View the list after generating the image, cobbler list

Print profile list cobbler profile report

7. Add an RPM repository for cobbler. If space is insufficient, this is not necessary! Because once the rpm repository takes effect, it will be downloaded locally.

Cobbler repo add -- name = CentOS-5-i386 -- mirror = http://mirrors.163.com/centos/5/ OS /i386/

Cobbler repo add -- name = EPEL-5-i386 -- mirror =

-- Mirror = http://download.fedoraproject.org/pub/epel/5/i386/

8. Set the profile, associate the image with the kickstart file, and the profile can be understood as being categorized by role.

Add profile file

Cobbler profile add -- name = centos5.5 -- distro = centos5.5-i386 --


Kickstart =/var/lib/cobbler/kickstarts/centos55.ks

Modify the profile file to CentOS5.5. Change the image name from CentOS5.5-x86_64 to CentOS5.5-i386.

Cobbler profile add -- name = CentOS5.5 -- distro = CentOS5.5-i386

Change the profile configuration name from CenOS5.5 to CentOS5.5-i386.

Cobbler profile rename -- name = CentOS5.5-newname = CentOS5.5-i386

Delete profile configuration. The name of the profile to be deleted is CenOS5.5.

Cobbler profile remove -- name = CentOS5.5

Related Article

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.