设为首页 加入收藏

TOP

cobbler(五)
2023-07-23 13:34:36 】 浏览:71
Tags:cobbler
onfiguration bootloader --location=mbr # Partition clearing information clearpart --all --initlabel # Use text mode install text # Firewall configuration firewall --disable # Run the Setup Agent on first boot firstboot --disable # System keyboard keyboard us # System language lang en_US # Use network installation url --url=http://192.168.111.139/cblr/links/zxr-x86_64 # If any cobbler repo definitions were referenced in the kickstart profile, include them here. repo --name=source-1 --baseurl=http://192.168.111.139/cobbler/distro_mirror/zxr/AppStream repo --name=source-2 --baseurl=http://192.168.111.139/cobbler/distro_mirror/zxr/BaseOS # Network information network --bootproto=dhcp --device=eth0 --onboot=on # Reboot after installation reboot #Root password rootpw --iscrypted $1$19347$.N/4En3JI0k2gUp8mvULQ/ # SELinux configuration selinux --disabled # Do not configure the X Window System skipx # System timezone timezone America/New_York # Install OS instead of upgrade install # Clear the Master Boot Record zerombr # Allow anaconda to partition the system as needed autopart %pre set -x -v exec 1>/tmp/ks-pre.log 2>&1 # Once root's homedir is there, copy over the log. while : ; do sleep 10 if [ -d /mnt/sysimage/root ]; then cp /tmp/ks-pre.log /mnt/sysimage/root/ logger "Copied %pre section log to system" break fi done & # Enable installation monitoring %end %packages @^minimal-environment %post --nochroot set -x -v exec 1>/mnt/sysimage/root/ks-post-nochroot.log 2>&1 %end %post set -x -v exec 1>/root/ks-post.log 2>&1 # Start yum configuration curl "http://192.168.111.139/cblr/svc/op/yum/profile/zxr-x86_64" --output /etc/yum.repos.d/cobbler-config.repo # End yum configuration # Start post_install_network_config generated code # End post_install_network_config generated code # Start download cobbler managed config files (if applicable) # End download cobbler managed config files (if applicable) # Start koan environment setup echo "export COBBLER_SERVER=192.168.111.139" > /etc/profile.d/cobbler.sh echo "setenv COBBLER_SERVER 192.168.111.139" > /etc/profile.d/cobbler.csh # End koan environment setup $SNIPPET('redhat_register') # Begin cobbler registration # cobbler registration is disabled in /etc/cobbler/settings.yaml # End cobbler registration # Enable post-install boot notification # Start final steps curl "http://192.168.111.139/cblr/svc/op/autoinstall/profile/zxr-x86_64" -o /root/cobbler.ks # End final steps %end #如果是真实环境,那么部署就已经完成,如果是虚拟机就还需执行以下步骤 [root@localhost ~]# cd /usr/share/cobbler/bin/ [root@localhost bin]# ls migrate-data-v2-to-v3.py migrate-settings.sh mkgrub.sh settings-migration-v1-to-v2.sh [root@localhost bin]# bash mkgrub.sh [root@localhost bin]# cd /var/lib/cobbler/loaders/ [root@localhost loaders]# ll total 72 drwxr-xr-x. 2 root root 79 Sep 24 16:57 grub lrwxrwxrwx. 1 root root 31 Sep 24 16:57 ldlinux.c32 -> /usr/share/syslinux/ldlinux.c32 -rw-r--r--. 1 root root 26272 Sep 24 16:31 menu.c32 -rw-r--r--. 1 root root 42376 Sep 24 16:31 pxelinux.0 #进行同步 [root@localhost loaders]# cobbler sync #重启服务 [root@localhost loaders]# systemctl restart httpd cobblerd rsyncd dhcpd

进行测试

安装一个空壳centos8

首页 上一页 2 3 4 5 下一页 尾页 5/5/5
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Git:国内用命令行访问GitHub的方.. 下一篇进程间通信(IPC)

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目