Linux system maintenance-Cobbler

Source: Internet
Author: User
Tags cisco switch
Linux system maintenance-Installation Tool Cobbler-general Linux technology-Linux technology and application information. For details, see the following. The tall buildings are on the rise. Installation, the start of an application system O & M. Installation, the basic skills of a system engineer throughout his career, so that more people may regard us as migrant workers! Since Red Hat cares for migrant workers and launches kickstart, our installation has also been technical. PXE, DHCP, TFTP, NFS/HTTP, And the kickstart script, which has been one of the best users, copying and editing a large number of files is not fully understood by the average person. With kickstart, the waist is no longer sour, the back is no pain, and the legs are no cramps. Even if he holds hundreds of machines at a time, the CD also saves time, you no longer need to get a CD from your boss.

Recently, Red Hat launched a new generation of network installation kit Cobbler, which claims to be able to quickly establish a network installation environment. Xiaomei dad tested it on CentOS4. The procedure is as follows:

1. Install related yum repository

Rpm-Uhv http://apt.sw.be/redhat/el4/en/ I... 6-1.el4.rf.i386.rpm

Rpm-Uvh http://download.fedora.redhat.co... ease-4-9.noarch.rpm

2. Upgrade syslinux

Yum-y update syslinux

# The default syslinux version of CentOS4 is too low and does not support related syntaxes. CentOS5 and Fedora do not need to be upgraded.

3. Install Cobbler and related software

Yum-y install cobbler koan tftp-server dhcp httpd yum-utils

4. Check the cobbler Configuration

Cobbler check

# Follow the prompts to solve the problem. Set server and next_server in/ect/cobbler/settings to the ip address of this server, set manage_dhcp to 1, and manage dhcp configuration through cobbler

5. Import the Installation File

CentOS-4.6-i386-binDVD.iso/mnt

Cobbler import -- mirror =/mnt -- name = CentOS-4-i386 -- kickstart =/etc/cobbler/sample. ks

Cobbler distro list

# View import results should display CentOS-4-i386 and CentOS-4-xen-i386

6. Modify dhcp and kickstart templates

Vi/etc/cobbler/dhcp. template

Vi/etc/cobbler/sample. ks

7. Generate and synchronize all configurations

Cobbler sync

8. Start Related Services

Chkconfig tftp on

Service xinetd start

Service dhcp start

Service httpd start

Service cobblerd start

So far cobbler server configuration is complete, start a new server, PXE to enter the cobbler blue installation interface, select the CentOS-4-i386 installation items, the rest of the automatically done, a few minutes the system is installed.

If you are using a cisco switch, remember to open the port's spanning-tree portfast.

Some people asked, What is koan installed above?

Koan is used by the client to install the virtual environment or reinstall the system through cobbler. For example, if you want to reinstall a server that has already installed the system, you only need to install koan on the client server and then execute

Koan -- server = cobbler-server -- profile = CentOS-4-i386 -- replace-self

After reboot, the operating system will be automatically reinstalled.

Cobbler also has many powerful functions, such as specifying the profile used for installation for a MAC address.

Cobbler, installed as a big killer for migrant workers, topped the top five!
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.