In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Brief introduction of Cobbler automatic installation:
Cobbler is an open source project developed using Python, which provides a fully automatic network installation environment for batch and rapid establishment of Linux systems by centralizing all the services involved in deploying the system.
Cobbler provides PXE management, DHCP management, Yum source management, TFTP management, power management and other functions. In addition, it also supports command line management, web interface management, and provides API interface to facilitate secondary development.
Cobbler-related software packages are provided by the EPEL source. EPEL is a software repository project maintained by the Fedora team that provides REDHEL/Centos with no distribution packages by default. (EPEL: an additional software package for Enterprise Linux)
In addition to the EPEL source, the installation of Cobbler requires a network source that comes with centos to provide related dependency packages.
Cobbler automatic installation test deployment:
Experimental environment: choose to build cobbler service on CtenOS7 on 1.VMware virtual machine.
The network card mode is switched to NAT mode, and the IP address is 192.168.100.20.
Import the downloaded epel source package into the server and install it. **
Next, carry out the experimental operation: * *
1. First of all, modify the configuration of the network card, change it to DHCP custom to obtain IP, and automatically obtain the IP address of 192.168.21.135
two。 Then import the downloaded epel source package into the server and install it. As shown in the following figure:
3. Because the service needs to be installed with yum below, load the yum repository (yum list) here, and then install the various services. Yum install cobbler-web dhcp tftp-sever pykickstart httpd rsync xinetd-y
4. Enable the cobbler service to enable the Apche service, turn off the firewall, and turn off the enhanced * * to view the status of the cobbler service:
5.vim / etc/cobbler/settings # modify cobbler main configuration file
Next_server: 192.168.106.131 # specify the cobbler server address
Server:192.168.106.131 # specifies the TFTP server address (because tftp is in cobbler, it points to the same address)
Manage_dhcp: 1 # enable the dhcp management service (1: enable 0: disable)
6. Systemctl restart httpd.service restarts the httpd service after configuration
Systemctl restart cobblerd.service restarts the Cobblerd service
Systemctl status cobblerd.service # check whether the service is started
Systemctl disable firewalld.service # turn off the firewall
Systemctl stop firewalld.service # disable the firewall the next time you start
Setenforce 0 # turn off Enhancement * *
Cobbler check # check settings for cobbler
7. Next, we need to modify the above inspection results. First modify the tftp configuration file:
Vim / etc/xinetd.d/tftp
8.openssl passwd-1-salt '123123' '123123' # create the password of the installed user root is 123123
Vim / etc/cobbler/settings # copies the generated password to the following configuration file
Default_password_crypted: "$1 $123123$ MAV.kVI/b3swmFLErPD2b0."
9.vim / etc/cobbler/dhcp.template # modifies dhcp templates managed by cobbler
Subnet 192.168.21.0 netmask 255.255.255.0 {
Option routers 192.168.21.1
Option domain-name-servers 192.168.21.2
Option subnet-mask 255.255.255.0
Range dynamic-bootp 192.168.21.100 192.168.21.200
10.cobbler sync # helps generate DHCP configuration files synchronously
11.cobbler get-loaders # download boot operating system files
12.systemctl start dhcpd.service # start the DHCP service
Systemctl start cobblerd.service # start the cobbler service
Systemctl start xinetd.service # start the tftp service
/ var/log/cobbler/cobbler.log # location of the log file
Cobbler import-- path=/mnt/-- name=CentOS-7-x86_64-- arch=x86_64 # Import ISO image
Cobbler list / / View the import result
Cobbler distro list / / View the release version
13.yum install tree-y # installation command
Tree / var/lib/tftpboot/images # View kernel and boot file
At this point, the machine can be installed automatically, to ensure success, restart the service again.
14. We create a new virtual machine for verification without using image files. The network card is set to NAT mode.
Management of web for cobbler:
After the cobbler installation system is complete, we can also use the web interface to manage cobbler,cobbler web is a very friendly front end, just need to install cobbler web. We've installed it before.
Cobbler web supports multiple authentication methods, two of which are described below:
The first kind: WEB management
Htdigest-c / etc/cobbler/users.digest cobbler cbadmin # create a manager named cbadmin
Systemctl start cobblerd.service
Systemctl start httpd.service # restart the service
The second kind: PAM authentication
Vim / etc/cobbler/modules.conf
[authorization]
Module = authz_ownership
[authentication]
Module = authn_pam
Useradd webzhangsan # create user
Passwd webzhangsan
Vim / etc/cobbler/users.conf
[admins]
Admin = ""
Cobbler = ""
Webzhangsan = "" # add accessible users
Systemctl restart httpd.service
Systemctl restart cobblerd.service # restart the service
Visit https://192.168.21.135/cobbler_web
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.