Cobbler fully automated installation, Introduction, Web Interface Management "with Source package"

Source: Internet
Author: User
Tags rsync

Cobbler Introduction


Cobbler This English translation means that the shoemaker , why it is the shoemaker's meaning, very simple, because it is simple, even the shoemaker can learn to install the system.

Cobbler provides a fully automated, batch-based network installation environment for Linux systems by centralizing all the services involved in the deployment system.

Before learning Cobbler, you can look at the PXE unattended installation system.


Cobbler Features:

· Cobbler supports rapid deployment of multiple Linux operating systems, enabling unified management of PXE, DHCP, HTTP, TFTP, Kiskstart, yum repositories, power supplies, and more

· Cobbler provides customizable system deployment solutions for different user needs

· Cobbler provides command management and web interface management, which is convenient for cobbler administrators.


Deployment readiness:

· VMware Virtual Machines

· Cobbler Server (I'm Ctenos7 here)

• In the virtual machine, the network connection is changed to NAT mode and the IP address is: 192.168.106.131

· Cobbler Source package epel-release-latest-7.noarch.rpm Password: 9SXJ


Deployment start:

• Install the Epel-release-latest-7.noarch software package (cobbler is provided by this package, and the source package provides a connection before preparation. Can be stored in Linux with a share or other tool )

[Email protected] ~]# RPM-IVH epel-release-latest-7.noarch.rpm


• Mount your own image file into the/mnt directory

[Email protected] ~]# mount/dev/sr0/mnt


• The Yum repository needs to be reloaded because the Yum installation service is required later

[email protected] ~]# Yum list


• Install Cobbler cobbler-web dhcp tftp-sever pykickstart httpd rsync xinetd Service, these packages need to be installed Oh!

[[email protected] ~]# yum install cobbler cobbler-web dhcp tftp-sever pykickstart httpd rsync xinetd-y


· Modify the Cobbler master configuration file

[Email protected] ~]# vim/etc/cobbler/settings


next_server:192.168.106.131 #指定cobbler服务器地址

server:192.168.106.131 #指定TFTP服务器地址 (because TFTP is in cobbler, so it points to the same address)

Manage_dhcp:1 #把对dhcp管理服务开启 (1: Open 0: OFF)


• Start the httpd service, start the Cobblerd service, turn off the firewall, light ratio enhanced XXX

[Email protected] ~]# systemctl start Httpd.service

[Email protected] ~]# systemctl start Cobblerd.service

[Email protected] ~]# systemctl disable Firewalld.service

[Email protected] ~]# Setenforce 0


• Check settings for cobbler

[Email protected] ~]# Cobbler Check


1:selinux is enabled. Review the following wiki page for details on ensuring cobbler works correctly in your SELinux environment:

Https://github.com/cobbler/cobbler/wiki/Selinux

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

3:some network boot-loaders is missing from/var/lib/cobbler/loaders, you could run ' cobbler get-loaders ' to download the M, or, if you are want to handle x86/x86_64 netbooting, your may ensure so you have installed a *recent* version of the  Syslinux package installed and can ignore this message entirely. Files in this directory, should want to support all architectures, should include pxelinux.0, MENU.C32, Elilo.efi, and Yaboot. The ' Cobbler get-loaders ' command is the easiest-to resolve these requirements.

4:enable and start Rsyncd.service with Systemctl

5:debmirror package isn't installed, it'll be required to manage Debian deployments and repositories

6:the default password used by the sample templates for newly installed machines (default_password_crypted IN/ETC/COBBL Er/settings) is still set to ' cobbler ' and should be changed, try: "OpenSSL passwd-1-salt ' Random-phrase-here ' Your-pas Sword-here ' "To generate new one

7:fencing tools were not found, and is required to use the (optional) power management features. Install Cman or fence-agents to use them


• Next we need to make changes to the above check results. Modify the TFTP configuration file

[Email protected] ~]# vim/etc/xinetd.d/tftp

Disable = no#开启tftp服务


• Start the remote Synchronization service, restart the Cobbler service

[Email protected] ~]# Systemctl enable Rsyncd.service

[Email protected] ~]# systemctl restart Cobblerd.service


• Set the salt value encryption (that is, the password to the client root), a string of encrypted characters will be added to the Cobbler Master profile corresponding to the location

[email protected] ~]# OpenSSL passwd-1-salt ' abc123 ' abc123 '

$1$abc123$9v8z2./e/pzihxrvcy3ii0


• Copy the generated password into the following configuration file

[Email protected] ~]# vim/etc/cobbler/settings


default_password_crypted: "$1$abc123$9v8z2./e/pzihxrvcy3ii0"


• Restart XINETD Service

[Email protected] ~]# systemctl restart Xinetd.service


• Modify the DHCP templates that are managed by cobbler


Subnet 192.168.106.0 netmask 255.255.255.0 {#指定自己的网段

Option routers 192.168.106.1; #修改网关

Option Domain-name-servers 192.168.106.2; #修改DNS

Option Subnet-mask 255.255.255.0;

Range DYNAMIC-BOOTP 192.168.106.100 192.168.106.200; #修改地址池


• Synchronous generation of DHCP configuration files

[[email protected] ~]# Cobbler Sync


• Download boot operating system files


[Email protected] ~]# Cobbler Get-loaders


• In the process, we do not necessarily know that those services start, or modify the forgotten restart, simply restart all.

[[email protected] ~]# systemctl start dhcpd.service//Start DHCP

[[email protected] ~]# systemctl start cobblerd.service//Start Cobbler

[[email protected] ~]# systemctl start xinetd.service//Start TFTP


• Before we start, we attach the image file to the/mnt directory, and now we need to import the image file into the Cobbler default existing seat

[[email protected] ~]# Cobbler import--path=/mnt/--name=centos-7-x86_64--arch=x86_64//file large, need to wait


/var/www/cobbler/ks_mirror/centos-7-x86_64//Imported image file storage seat


• Use Cobbler list to view releases, and templates

[Email protected] ~]# Cobbler list

Distros:

Centos-7-x86_64


Profiles

Centos-7-x86_64



• A software tree can be installed to view the compressed kernel and boot files

[email protected] ~]# Yum install tree-y

[Email protected] ~]# tree/var/lib/tftpboot/images


• Add configuration to make cobbler Web-managed, so easy. Add a manager (Cbamin) to the specified path

[Email protected] ~]# htdigest-c/etc/cobbler/users.digest Cobbler Cbadmin

To verify an automated installation:

Restart all services and create a new Linux server in VMware. Such as:

There was hardly any accident when there was no problem.

To verify Web management:

Experimental success!





Cobbler fully automated installation, Introduction, Web Interface Management "with Source package"

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.