Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Detailed illustration of cobbler automatic installation tutorial (with Epel source)

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Overview

Cobbler is an open source project developed using python, through the deployment of all the services involved in the system together, to provide a fully automated batch rapid establishment of Linux system network installation environment. Cobbler's birth, the threshold of Linux network installation system from college education or above, successfully reduced to junior high school below, even cobbler (cobbler Chinese translation) can learn. Cobbler uses command-line management, also provides a Web-based interface management tool (cobbler-web), and also provides an API interface, which can be easily used by secondary development.

The Cobbler architecture diagram is as follows:

Experimental environment

Redhat 7 operating system

Change the network card to vmnet 8 (can connect to the external network mode)

Change the IP address to dhcp mode (automatically obtain IP)

Cobbler source code package epel-release-latest-7.noarch.rpm put window shared folder

Link: https://pan.baidu.com/s/1dKSa-1YZ3bTikBnQI7jooA password: naul

Experimental purpose

Learn to install the cobbler environment and configure cobbler services.

Experimental procedure

First, install cobbler environment

1. Test whether the Linux 7 server can successfully connect to the public network

two。 Mount shared folders, mount CD files

3. Import epel source (package in shared file)

4. Install cobbler and related service packages

5. Start related services

6. Check cobbler configuration

Cobbler check / / check cobbler

In order to make it easier for you to understand, I sorted out the whole paragraph of the above picture as follows:

(1) Edit the / etc/cobbler/settings file, find the server option, and change it to the ip address of the service, that is, native ip. It cannot be 127.0.0.1.

(2) Edit the / etc/cobbler/settings file, find the next_server option, and change it to the local ip address, which cannot be 127.0.0.1.

(3) this article can be ignored.

(4) Edit the / etc/xinetd/tftp file and change the configuration of the disable field in the file from yes to no

(5) execute cobbler get-loaders, and the system will download the loader program automatically and complete the repair work of the prompt.

(6) start the rsyncd service using the systemctl command.

(7) installation of the debian system is not involved here and can be ignored.

(8) to modify the initial password of the cobbler user, you can use the following command to generate the password. And replace the password in the / etc/cobbler/settings file with the generated password

(9) prompt that the fence device was not found and can be ignored.

2. Configure cobbler service

1. Modify the cobbler main configuration file

Vim / etc/cobbler/settings

Server: 192.168.65.130

Pxe_just_once: 1

two。 Configure TFTP and Rsync

[root@localhost ~] # vim / etc/cobbler/settings

Manage_rsync: 1 / / manage tftp service. 1: start, 0: shut down

Systemctl restart xinetd.service / / restart the service

3. Download boot operating system files

Cobbler get-loaders / / download boot operating system files

Systemctl enable rsyncd.service / / Boot self-start

Systemctl start rsyncd.service / / start the service

4. Set the cobbler user's initial password

Vim / etc/cobbler/settings

5. Install cman to start the power management function

Yum install cman

6. Check cobbler

Cobbler check / / check the cobbler configuration and then do the rest

Remarks: 3, 7, 7, 9 items can be ignored.

7. Configure the DHCP service

Vim / etc/cobbler/settings

Dhcp service template controlled by vim / etc/cobbler/dhcp.template / / cobbler

Cobbler rsync / / after modifying the configuration file, you need to synchronize the configuration to make it effective.

Systemctl restart dhcpd.service / / start the dhcpd service

8. Import ISO image file

9. View the results of image import

Cobbler list / / View the import result

Cobbler distro list / / View the release version

Tree / var/lib/tftpboot/images / / View the kernel and initialization files in the tftp server shared directory

(if there is no tree, you need to install yum install tree first.)

10. Test installation

11. Without any action, wait for the automatic installation to complete (this system minimizes the installation)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report