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

Install CentOS8 using cobbler

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

Share

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

Modify cobbler distro to support CentOS8cp / var/lib/cobbler/distro_signatures.json / var/lib/cobbler/distro_signatures.json.bak vi / var/lib/cobbler/distro_signatures.json # to find the rhel7 segment and add "rhel8": {"signatures": ["BaseOS"], "version_file": "(redhat | sl | slf | centos | vzlinux)-release- (?! notes) ([\\ w] * -) * 8 [\. -] + (. *)\\ .rpm" "version_file_regex": null, "kernel_arch": "kernel- (. *). Rpm", "kernel_arch_regex": null, "supported_arches": ["i386", "x86x64", "ppc", "ppc64", "ppc64le"], "supported_repo_breeds": ["rsync", "rhn", "yum"], "kernel_file": "vmlinuz (. *)" "initrd_file": "initrd (. *)\\ .img", "isolinux_ok": false, "default_kickstart": "/ var/lib/cobbler/kickstarts/sample_end.ks", "kernel_options": "", "kernel_options_post": "," boot_files ": []} # Save # restart cobblerd service cobblerd restart download CentOS8wget http://centos.ustc.edu.cn/centos/8.0.1905/isos/x86_64/CentOS-8-x86_64-1905-dvd1.iso mount download complete isomkdir-p / mnt/centosmount-t iso9660-r-o ro Loop / tmp/CentOS-8-x86_64-1905-dvd1.iso / mnt/centos create ks file and initialize shell file # cobbler server IP 192.168.2.56 Please modify to your own cobbler server address vim / var/lib/cobbler/kickstarts/CentOS8-x86_64.ks#Kickstart Configurator by Qist#platform=x86, AMD64 Or Intel EM64T#System languagelang en_US#System keyboardkeyboard us#Sytem timezonetimezone Asia/Shanghai#Root passwordrootpw-- iscrypted $default_password_crypted#rootpw-- iscrypted $1$ ops-node$7hqdpgEmIE7Z0RbtQkxW20#Use text mode installtext#Install OS instead of upgradeinstall#Use NFS installation Mediaurl-- url=$tree#System bootloader configuration#inst.dd modprobe.blacklist=iscibootloader-- location=mbr#Clear the Master Boot Recordzerombr#Partition clearing informationclearpart-- all-- initlabel#Disk partitioning information#autopartpart / boot-- fstype ext4-- size 5120#part swap-- size 16384part /-- fstype ext4-- size 51200 # part / home-- fstype ext4-- size 10240part / apps-- fstype xfs-- size 1-- grow#System authorization infomation#System authorization infomationauth-- useshadow-- enablemd5#Network information$SNIPPET ('network_config') # network-- bootproto=dhcp-- device=eth0-- onboot=on# Reboot after installationreboot#Firewall configurationfirewall-- disabled#SELinux configurationselinux-- disabled#Do not configure XWindowsskipx%pre$SNIPPET (' log_ks_pre') $SNIPPET ('kickstart_start') $SNIPPET (' pre_install_network_config') # Enable installation monitoring$SNIPPET Pre_anamon')% end#Package install information#autopart%packages@ base@ coresysstatiptrafncurses-develzlib-develnet-toolstreemailxwgettelnetbash-completion%end%postsystemctl disable postfix.servicemkdir-p / root/.sshwget-P / root/.ssh http://192.168.2.56/cobbler/ks_mirror/bash/authorized_keys # Public key cd / rootwget http://192.168.2.56/cobbler/ks_mirror/bash/CentOS8-x86_64.sh # installation completed execution of the shell file sh / root / CentOS8-x86_64.shsh rm-rf / root/*%end# create CentOS8-x86_64.sh# create shell storage directory mkdir-p / var/www/cobbler/ks_mirror/bash/ vim / var/www/cobbler/ks_mirror/bash/CentOS8-x86_64.sh #! / bin/bash## # set conf###set ulimitecho "ulimit-SHn 1024000" > > / etc/rc.localcat > > / etc/security/limits.conf > / etc/systemd/system.conf / etc/sysctl.confcat > > / etc/sysctl.conf > / etc/profile

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