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/01 Report--
This article mainly shows you "cobbler how to achieve automatic unattended installation", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "cobbler how to achieve automatic unattended installation" this article.
Cobbler Automation unattended installation root@localhost ~] # yum install epel-release-y # install Source package # # install essential components yum install-y\ cobbler\ # install cobbler\ cobbler-web\ # Management dhcp\ # # address allocation Service tftp-server\ # put the compression and boot file pykickstart\ # # kickstarthttpd\ developed by Python # # Network Service rsync\ # # remote synchronization Management xinetd # # the management platform starts configuring cobbler [root@localhost ~] # cd / etc/cobbler/ [root@localhost cobbler] # lsauth.conf import_rsync_whitelist pxe users.confcheetah_macros iso reporting users.digestcobbler_bash Ldap rsync.exclude versioncompletions modules.conf rsync.template zone.templatedhcp.template mongodb.conf secondary.template zone_templatesdnsmasq.template named.template settingsgenders.template power tftpd.template [root@localhost cobbler] # vim settings 278 next_server: 192.168.136.179 # # modify the address to server address 279 server: 192.168. 136.179 # # add server address 280manage_dhcp: 1 # # enable dhcp [root@localhost cobbler] # systemctl start httpd.service # # enable http service [root@localhost cobbler] # systemctl start cobblerd.service # # enable cobbler service [root@localhost cobbler] # systemctl stop firewalld.service # # close firewall [root@localhost cobbler] # setenforce 0 # # turn off enhanced optimization cobbler [root @ localhost cobbler] # cobbler check [root@ Localhost cobbler] # vim / etc/xinetd.d/tftpservice tftp {socket_type = dgram protocol = udp wait = yes user = root server = / usr/sbin/in.tftpd server_args =-s / var/lib/tftpboot disable = no # # here change to no per_source = 11 cps = 1002 flags = IPv4} [root@localhost cobbler] # systemctl enable rsyncd.service # # optimize the remote synchronization management service [root@localhost cobbler] # openssl passwd-1-salt 'abc123''abc123' # # set the administrator password Password: $1 $abc123ab$Z6awNYIN3LrF2YlvXPh6N. # # copy this paragraph is the encrypted ciphertext [root@localhost cobbler] # vim / etc/cobbler/settings101 default_password_crypted: "$1 $abc123ab$Z6awNYIN3LrF2YlvXPh6N." # # Line 101 copy the ciphertext of the password we just set here [root@localhost cobbler] # systemctl start rsyncd.service # # Startup Service [root@localhost cobbler] # systemctl restart xinetd.service configuration DHCP Service [root@localhost cobbler] # vim / etc/cobbler/dhcp.template subnet 192. 168.136.0 netmask 255.255.255.0 {# # modify the network segment option routers 192.168.136.1 of the local server Option domain-name-servers 192.168.136.1; option subnet-mask 255.255.255.0; range dynamic-bootp 192.168.136.100 192.168.136.254 # # address Pool [root@localhost cobbler] # cobbler sync # # synchronously generate dhcp configuration file (/ etc/dhcp/dhcp.conf) task started: 2019-11-15_154150_synctask started (id=Sync Time=Fri Nov 15 15:41:50 2019) running pre-sync triggerscleaning trees [root@localhost cobbler] # systemctl restart dhcpd.service # # start dhcp service [root@localhost cobbler] # systemctl start cobblerd.service # # start cobbler service [root@localhost cobbler] # systemctl start xinetd.service # # start management platform service mount image Generate the image into cobbler [root@localhost cobbler] # mount / dev/cdrom / mnt/ # # Mount the image to the mnt directory mount: / dev/sr0 write protection [root@localhost cobbler] # cd / mnt/ [root@localhost mnt] # lsCentOS_BuildTag GPL LiveOS RPM-GPG-KEY-CentOS-7EFI images Packages RPM-GPG-KEY-CentOS-Testing-7EULA isolinux repodata TRANS.TBL [root@localhost mnt] # cobbler import-- path=/mnt/-- name=Centos-7-x86_64-- arch=x86_64 will be mounted as read-only to import the image file to specify the path Generate name [root@localhost ks_mirror] # lsCentos-7-x86_64 config [root@localhost ks_mirror] # cobbler list # # View file information distros: Centos-7-x86_64profiles: Centos-7-x86_64systems:repos:images:mgmtclasses:packages:files: view compressed kernel and boot files [root@localhost ks_mirror] # yum install tree-y # # install tree tool [root@localhost ks_mirror] # tree / var/ Lib/tftpboot/images # # View compressed kernel and boot file / var/lib/tftpboot/images └── Centos-7-x86_64 ├── initrd.img # # boot file └── vmlinuz # # compressed kernel full restart service [root@localhost ks_mirror] # systemctl restart cobblerd.service [root@localhost ks_mirror] # systemctl restart dhcpd.service [root@localhost ks_mirror] # systemctl restart xinetd. Service [root@localhost ks_mirror] # systemctl restart httpd.service creates a virtual machine without a system Turn on the automatic installation system (character interface)
Installation graphical interface code: [root@localhost ~] # yum groupinstall "GNOME Desktop" code: [root@localhost ~] # yum groupinstall 'KDE Plasma Workspaces "- y code: [root@localhost ~] # yum groupinstall" X Window System "or" Graphical Administration Tools "uses cobbler's web management [root@localhost ks_mirror] # vim / etc/cobbler/modules.conf # # configuration module configuration file module = authn_configfile # # enabled by default [root@localhost ks_ Mirror] # htdigest-c / etc/cobbler/users.digest Cobbler adadmin # # create user password Adding password for adadmin in realm Cobbler.New password: # # enter password Re-type new password: [root@localhost ks_mirror] # systemctl restart cobblerd.service # # restart cobbler service [root@localhost ks_mirror] # systemctl restart httpd.service # # restart httpd service
Enable pam authentication, log in to [root@localhost ks_mirror] # vim / etc/cobbler/modules.conf # # modify the configuration file [authentication] module = authn_pam # # into the pam authentication module [authorization] module = authz_ownership # # specify access [root@localhost ks_mirror] # useradd webuser # # create the system user [root@localhost ks_mirror] # passwd webuser # # set the password and change the password of the user webuser. New password: invalid password: password less than 8 characters re-enter the new password: passwd: all authentication tokens have been successfully updated. [root@localhost ks_mirror] # vim / etc/cobbler/users.conf # # modify the users.conf file under cobbler [admins] admin = "" cobbler = "" webuser = "" # # add a user [root@localhost ks_mirror] # systemctl restart httpd.service # # restart the service [root@localhost ks_mirror] # systemctl restart cobblerd.service log in to the web management page
These are all the contents of the article "how to automate the unattended installation of cobbler". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.