In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Install a component
Yum install epel-rpm-macros.noarch-y # install epel source
Yum install-y cobbler cobbler-web dhcp tftp-server pykickstart httpd rsync xinetd
Cobbler\ # # install cobbler\
Cobbler-web\ # # provide web management
Dhcp\ # # address assignment service
Tftp-server\ # # put the compressed and boot files
Pykickstart\ # # kickstart developed by Python
Httpd\ # # provide web
Rsync\ # # remote synchronization 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.1
Manage_dhcp: 1 # enable dhcp
Vim / etc/xinetd.d/tftp # configure tftp and 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 following password option default_password_crypted:$1 $123456 $wOSEtcyiP2N/IfIl15W6Z0 # and paste the encrypted password just generated here, where is the default password installed on the root system Encrypted storage 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 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 # shows only startup items
Cobbler profile remove-- name=CentOS7 # removes the startup entry named CentOS7
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.