Deploying Linux operating systems in bulk using cobbler

Source: Internet
Author: User

The following are the specific configuration procedures.

The default Rhel6 CD does not have cobbler software, and a third-party software source must be set up in the Yum repository to install software such as cobbler. The Epel software source used here, add the following statement to the configuration file in the Yum repository:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008669forv.png "width=" 565 "height=" 146 "/>

When you're done, empty the Yum database and then rebuild the Yum database.

Cobbler Official website: Https://fedorahosted.org/cobbler

1, the installation of software:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008670zzy3.png "width=" 650 "height="/>

Cobbler relies on dns,dhcp,tftp and httpd, so these software must be installed. When the installation is complete, start the above services.

2, check whether the system meets the requirements of cobbler:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008674d5rn.png "width=" 650 "height=" 225 "/>

The first one means that if the firewall is enabled and 69, 80, and 25251 ports are not blocked, the firewall and selinux are disabled;

The second article states that the system does not have a Debian repository installed, which can be ignored;

The third rule means that the default cobbler user password is simple and needs to be changed.

If services such as tftp-server,dhcp,named are not started, the above output will also display information about these services.

3. Edit the/etc/cobbler/settings file and set the following parameters:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008676sq7o.png "width=" 650 "height="/>

After Setup is complete, restart the Cobbler service.

4. Get the boot Image:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008685q6jh.png "width=" 650 "height=" 299 "/>

5, synchronous cobbler configuration, make the change effective:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008694dzbk.png "width=" 650 "height=" 772 "/>

6. Create the installation image using the installation CD:

The contents of the disc have been copied to/VAR/FTP/ISO/6 below, so the installation image is created from this place:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008696k9nr.png "width=" 650 "height="/>

7. Add third-party RPM repositories:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008697echd.png "width=" 650 "height="/>

After the add is complete, synchronize the files on the Epel to Local:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008697g1fg.png "width=" 381 "height="/>

This synchronization process is longer, because the RPM package needs to be downloaded nearly 6,000, the size of nearly 6G. So make sure your system has enough space to store these packages.

8, the KVM Bridge network settings:

If you are using VMware, you do not have to create a bridging network and use its own bridging capabilities. KVM is used here, so you must create a bridged network, or you cannot use PXE for bulk installation.

Configure bridged networks in two ways: Configure and edit files using the command line:

command-line mode to configure:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008698rpgx.png "width=" 494 "height=" 104 "/>

The above is only temporary configuration, after the system restarts will disappear, in order to make it active during the boot process, it can be added to the/etc/rc.local inside.

To edit a file:

Under/etc/sysconfig/network-scripting, create the Ifcfg-br0 configuration file and add the following:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008699ie70.png "width=" 564 "height=" 202 "/>

Make the following changes to Ifcfg-eth0:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_13090087009r2h.png "width=" 579 "height=" 164 "/>

When you're done, restarting the network will take effect.

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008703bz5y.png "width=" 650 "height=" 435 "/>

To view bridge information using the BRCTL command:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008704izvt.png "width=" 610 "height=" 139 "/>

9. Set Profile and system:

You can also not set profile here, because the profile has been created by default, as shown below:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008705re4h.png "width=" 378 "height=" 311 "/>

If you have multiple distributions, you will need to specify which distribution to use when creating the system.

Add Profile:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008706fo1v.png "width=" 650 "height=" "/>"

This is for Rhel6 x86_64, kickstart file is v6.cfg.

Add System:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_13090087079szu.png "width=" 650 "height="/>

Note that if kickstart specifies a local path instead of HTTP or FTP, the kickstart file will not be found during installation. Here, the server-side configuration is complete.

10. Kickstart File:

In Rhel6, if the LVM option is not present in the partition when the System-config-kickstart is created, in order to maintain it later, I have defined the partitioning LVM option in Ks.cfg:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008708msxp.png "width=" 557 "height=" 183 "/>

The boot partition 200mb,swap is divided by 4G, all remaining to the logical volume group VG, and then the root partition of 12G.

There are some settings that are made after the installation is complete:

650) this.width=650; "style=" background-image:none;padding-left:0px;padding-right:0px;padding-top:0px; "title=" Image "border=" 0 "alt=" image "Src=" Http://img1.51cto.com/attachment/201106/25/704299_1309008717QVeW.png "width=" 650 "height=" 821 "/>

The script above includes disabling IPV6, downloading the Yum warehouse profile, defining command aliases, setting up the DNS client, setting the default boot level, defining the hostname, and so on.

11. Set Cobbler Web interface:

This must be installed on the server Cobbler-web software. The Cobbler Web interface is a good front end, very easy to manage many Cobbler operations. It can be used to list and edit distros, profiles, subprofiles, systems, repos and kickstart files.

Before using, reset the password for the existing user cobbler:

650) this.width=650; "style=" background-image:none;padding-left:0px;padding-right:0px;padding-top:0px; "title=" Image "border=" 0 "alt=" image "Src=" Http://img1.51cto.com/attachment/201106/25/704299_1309008718R14v.png "width=" 650 "height=" 118 "/>

To add a new user:

650) this.width=650; "style=" background-image:none;padding-left:0px;padding-right:0px;padding-top:0px; "title=" Image "border=" 0 "alt=" image "Src=" Http://img1.51cto.com/attachment/201106/25/704299_13090087197voe.png "width=" 650 "height=" 122 "/>

Once you're done, you can use Http://ip/cobbler_web to access the admin interface.

Cobbler configuration file is stored under/etc/cobbler,/etc/cobbler/settings is the main configuration file;

Under/etc/cobbler you can also see the DHCP, DNS, PXE, DNSMASQ template configuration files;

/etc/cobbler/users.digest is the user name password configuration file for Web Access;

/etc/cobbler/modules.conf is the module configuration file;

/etc/cobbler/users.conf is the Cobbler Webui/web Service authorization profile.

The Repo Data Catalog is a release version of/var/www/cobbler import, repos images and kickstart files are placed in the/var/www/cobbler directory. Make sure that the/var directory has enough space to store the files.

images/-Kernel and INITRD images for all imported distributions are used for remote network boot.

ks_mirror/-Store the imported release version

repo_mirror/-Yum Repos storage Directory

/var/log/cobbler for storing log files/var/log/cobbler/cobbler.log

Cobbler Data Catalog/var/lib/cobbler, this directory holds and cobbler profiles, systems, distros-related configurations.

configs/-This directory is used to store distros, repos, systems and profiles related information

backup/-Backup Directory

snippets/-For placing some small fragments of script that can be imported in kickstarts

triggers/-This directory is used to place some executable scripts

kickstarts/-This directory is used to place kickstart template files

12. Client Installation:

Create a new KVM virtual machine cs04, network select bridging mode:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008720scns.png "width=" 371 "height=" 394 "/>

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008722kqlv.png "width=" 472 "height=" 547 "/>

In the boot option, select the Enable Boot menu:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008724d0nt.png "width=" 650 "height=" 628 "/>

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008727afcn.png "width=" 650 "height=" 534 "/>

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" image "border=" 0 "alt=" image "src=" http:// Img1.51cto.com/attachment/201106/25/704299_1309008732phww.png "width=" 650 "height=" 413 "/>

650) this.width=650; "style=" background-image:none;padding-left:0px;padding-right:0px;padding-top:0px; "title=" Image "border=" 0 "alt=" image "Src=" Http://img1.51cto.com/attachment/201106/25/704299_13090087337qul.png "height=" "/>

The hostname value in the Kickstart is implemented in the script in post.

13. Koan Software:

This software is installed on the client, you can reinstall the existing client, the default system CD is not, you must use a third-party source, here is the Epel software source, execute yum install Koan can.

Display information about the service:

650) this.width=650; "style=" background-image:none;padding-left:0px;padding-right:0px;padding-top:0px; "title=" Image "border=" 0 "alt=" image "Src=" Http://img1.51cto.com/attachment/201106/25/704299_13090087354pjL.png "width=" 650 "height=" 466 "/>

To perform the reinstallation:

650) this.width=650; "style=" background-image:none;padding-left:0px;padding-right:0px;padding-top:0px; "title=" Image "border=" 0 "alt=" image "Src=" Http://img1.51cto.com/attachment/201106/25/704299_130900874190HI.png "width=" 650 "height=" 265 "/>

After the command is finished, note the-title=kick1309005064 string in the output of the above command, which is added to the grub.conf file of the current system and will be seen when the system is restarted, as shown in:

650) this.width=650; "style=" background-image:none;padding-left:0px;padding-right:0px;padding-top:0px; "title=" Image "border=" 0 "alt=" image "Src=" Http://img1.51cto.com/attachment/201106/25/704299_1309008742Rx06.png "width=" 650 "height=" 395 "/>

Select kick1309005064 to proceed to the reinstallation process.

This article is from the "KINGDBA" blog, make sure to keep this source http://kingdba.blog.51cto.com/801693/1445103

Deploying Linux operating systems in bulk using cobbler

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.