In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to automatically install the linux system based on cobbler, which has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
1. Install a component
Yum install epel-rpm-macros.noarch-y # install cobbler source yum install-y cobbler cobbler-web dhcp tftp-server pykickstart httpd rsync xinetdcobbler\ # install cobbler\ cobbler-web\ # provide web management dhcp\ # # address assignment service tftp-server\ # put the compression and boot file kickstarthttpd developed by Python\ # provide webrsync\ # remote synchronous management xinetd # # management platform
two。 Configure cobbler
Vim / etc/cobbler/settings # Open the configuration file and modify the following next_server: 10.1.1.1 # set the IP address for listening server: 10.1.1.1manage_dhcp: 1 # enable dhcpvim / etc/xinetd.d/tftp # configure tftp, enable tftp
Openssl passwd-1-salt '123456'' 123456' # use the ssl encrypted password [root@localhost ~] # openssl passwd-1-salt '123456' $123456' $1 $123456 $wOSEtcyiP2N/IfIl15W6Z0 # to copy the encrypted password generated by vim / etc/cobbler/settings # Open the cobbler configuration file, find the password option default_password_crypted:$1 $123456 $wOSEtcyiP2N/IfIl15W6Z0 # below, and paste the encrypted password just generated here, which is the default password installed on the root system.
3. Configure the DHCP service and start the service
Vim / etc/cobbler/dhcp.template # configure the dhcp service and modify the following
Systemctl restart syncd.service # first start the synchronization service cobbler sync # synchronize the configuration files just now, and start cobblerd dhcp and other services to each software systemctl restart cobblerd.service dhcpd.service httpd.service xinetd.service#.
4. Import the iso file to view the location of the system boot kernel
Mount / dev/cdrom / mnt # hangs in the iso file in the mnt directory
Cobbler import-- path=/mnt/-- name=Centos-7-x86_64-- arch=x86_64# indicates the path, and the saved name is copied to cobbler.
Cobbler list # View the images saved on the current system
The directory cd / var/www/cobbler/ks_mirror/ # is the bit where the image is stored.
# here you can see that the mirrored files are copied to this directory to manage the cd / var/lib/tftpboot/images # directory, which stores the microkernel that boots the system installation
Systemctl restart cobblerd.service dhcpd.service httpd.service xinetd.service # restart services again
5. Prepare a computer without a system and select a network card to start it.
# when this screen appears, it is successful, and the tea-making system can be installed automatically.
It has been installed, and the root password is "123456", which is the one encrypted with ssl before.
Log in to web Management
Https://192.168.1.111/cobbler_web # replace the middle IP with your own
6. Simply configure ks files and install using ks files
Cp anaconda-ks.cfg / var/lib/cobbler/kickstarts/center7.ks
# find an installed system, copy the ks file in the root directory to the directory where the ks is saved in cobbler, and the ks file configuration in the root directory is automatically generated after installing the system.
Vim / var/lib/cobbler/kickstarts/center7.ks # modify the ks file you just copied
# comment out cdrom and replace it with url-- url= http://192.168.1.111/cobbler/ks_mirror/Centos-7-x86_64/
Note that when the URL is accessed in the browser, make sure that the client can access the
Cobbler profile add-- name=CentOS7-- distro=Centos-7-x86_64-- kickstart=/var/lib/cobbler/kickstarts/center7.ks # adds a startup entry
# means to add a startup item named CentOS7, and the image file is Centos-7-x86_64,ks file and center7.ks file.
Cobbler list # View related data
# you can see here that there is an extra startup item. Select this newly added startup item during installation to call the ks file to complete the automatic installation.
# the system I installed before has a desktop, so it is also with a desktop in the ks configuration.
View, delete startup item
Cobbler profile list # only shows the startup item cobbler profile remove-- name=CentOS7 # Delete the startup item named CentOS7. Thank you for reading this article carefully. I hope the article "how to automatically install linux system based on cobbler" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.