Cobbler unattended installation and cobbler Unattended Installation

Source: Internet
Author: User

Cobbler unattended installation and cobbler Unattended Installation
I. Introduction to Cobbler

Cobbler is a boot server that can be used to quickly install and reinstall physical servers and virtual machines through network startup (PXE). It supports installing different Linux distributions and Windows. This tool is developed in python and is small and lightweight (only 15 K lines of code). You can use simple commands to configure the PXE network installation environment and manage DHCP, DNS, and yum package images.

Cobbler Uses command line management and provides a Web-based interface management tool (cobbler-web). It also provides API interfaces to facilitate secondary development and use.

Cobbler is an upgraded version of kickstart, which is easier to configure and easier to manage with its own web interface.

Services integrated by Cobbler:

PXE, DHCP, rsync, HTTP, DNS, Kickstart, IPMI

Cobbler Workflow

Ii. System Environment

Centos 7.4 on the server side

Disable Firewall

SElinux = disabled

Alibaba's epel Source

3. Install Cobbler and check

Yum install cobbler-web dhcp tftp-server system-config-kickstart httpd

Run rpm-ql cobbler to view the configuration file

Systemctl start cobblerd start the Cobbler Service

Systemctl start httpd start http service

Cobbler check Cobbler Configuration

One solution

1. 2. Cobbler Server IP/etc/cobbler/settings lines 384 and 272

Sed-I's/server: 127.0.0.1/server: 192.168.40.129/'/etc/cobbler/settings

3. Start the TFTP service

Systemctl start tftp. socket

4. Execute cobbler get-loaders after the network connection

You cannot install the syslinux package online, and then copy/usr/share/syslinux/{pxelinux.0, memu. c32} and other files to the/var/lib/cobbler/loaders/directory.

7. Execute "openssl passwd-1 to generate a password and replace it with the value of the default_password_crypted parameter in the/etc/cobbler/settings file in line 101.

Systemctl restart cobblerd restart service

Cobbler sync Synchronization

4. Configure Cobbler1 and DHCP (by modifying the Cobbler template configuration)

Vim/etc/cobbler/settings 242 line manage_dhcp: changed to 1

Vim/etc/cobbler/dhcp. template

Cobbler sync Synchronization

2. Import an image

Mkdir/mnt/centos7

Mount/dev/sr0/mnt/centos7

Cobbler import -- path =/mnt/centos7/-- name = centos7.4 (import the file to/var/www/cobbler/ks_mirror)

# -- Path: Image path
# -- Name defines a name for the installation Source
# -- Arch specifies that the installation source is 32-bit, 64-bit, and ia64. Currently, the following options are supported: x86 │ x86_64 │ ia64

Cobbler sync Synchronization

3. Configure the response file (the installation is minimized by default)

/Var/lib/cobbler/kickstarts/(default location of the response file)

 

Edit profile to modify the associated ks File

Cobbler sync Synchronization

Restart all services

Systemctl restart dhcpd

Systemctl restart tftp. socket

Systemctl restart httpd

Systemctl restart cobbler

Set to boot

Systemctl enable dhcpd

Systemctl enable tftp. socket

Systemctl enable httpd

Systemctl enable cobbler

V. test and install

You also need to manually choose here. To install it automatically, You can bind the mac address to enable automatic installation upon startup.

Cobbler sync Synchronization

Configure to bind the mac address and IP address. The installation is automatically selected upon startup.

7. Web management interface of Cobbler

Are you sure you have installed Cobbler-web

URL; https: // 192.168.40.129/cobbler_web

Default User Password: cobbler

/Etc/cobbler/users. conf Web Service Authorization configuration file

/Etc/cobbler/users. digest user name and password configuration file for Web Access

Htdigest/etc/cobbler/users. digest "Cobbler" cobbler adds a Cobbler user to the cobbler group, and prompts you to enter the two passwords for confirmation and restart the httpd service after synchronization.

8. Summary of directories and commands
Configuration file directory/etc/cobbler/settings cobbler main configuration file/etc/cobbler/iso template configuration file/etc/cobbler/pxe template file/etc/cobbler/power Supply configuration file/etc/cobbler/user. conf web Service Authorization configuration file/etc/cobbler/users. digest web user password configuration file/etc/cobbler/dhcp. template dhcp service configuration template/etc/cobbler/dnsmasq. template dns service configuration template/etc/cobbler/tftpd. template tftp service configuration template/etc/cobbler/modules. conf template configuration file data directory/etc/lib/cobbler/config/Stores distros, system, profiles, and other configuration files/var/lib/cobbler/triggers/stores user-defined cobbler commands /var/lib/cobbler/kickstart/the kickstart file is stored by default./var/lib/cobbler/loaders/the directory for storing various boot program images/var/www/cobbler/ks_mirror/the distribution of import all data of the version system/var/www/cobbler/images/import the released kernel and initrd images for remote network startup/var/www/cobbler/repo_mirror/yum warehouse storage directory Diary /var/log/cobbler/installing client Installation log/var/log/cobbler. log cobbler log

 

Cobbler commands, changing configuration requires this command to synchronize cobbler reposync synchronize yum repository cobbler distro view imported Release system Information cobbler system View added system information cobbler profile view configuration information management distrocobbler import -- name = centos-6.9-x86_64 -- path =/media/cdrom -- arch = x86_64 manage profilecobbler profile add -- name = centos-6.9-x86_64-basic -- distro = centos-6.9-x86_64 -- kickstart =/var/lib/cobbler/kickstarts/centos-6.9-x86_64.cfg

 

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.