cobbler

cobbler实现全自动化装机

[root@localhost ~]# yum -y install epel-release
[root@localhost ~]# yum install cobbler cobbler-web dhcp tftp-server pykickstart httpd rsync xinetd -y
[root@localname ~]# vim /etc/cobbler/settings
在这里插入图片描述在这里插入图片描述在这里插入图片描述

[root@localname ~]# systemctl start httpd.service

[root@localname ~]# systemctl start cobblerd.service
[root@localname ~]# systemctl stop firewalld.service
[root@localname ~]# setenforce 0
[root@localname ~]# cobbler check
[root@localname ~]# vim /etc/xinetd.d/tftp
在这里插入图片描述

[root@localname ~]# systemctl enable rsyncd.service
[root@localname ~]# systemctl restart cobblerd.service
[root@localname ~]# cobbler check
[root@localname ~]# openssl passwd -1 -salt ‘123’ ‘123’
$1 123 123 123nE5gIYTYiF1PIXVOFjQaW/
localname ~]# vim /etc/cobbler/settings
在这里插入图片描述

[root@localname ~]# vim /etc/cobbler/settings
[root@localname ~]# systemctl start rsyncd
[root@localname ~]# systemctl restart xinetd.service
[root@localname ~]# vim /etc/cobbler/dhcp.template
在这里插入图片描述

[root@localname ~]# cobbler sync
[root@localname ~]# cobbler get-loaders
[root@localname ~]# systemctl start dhcpd
[root@localname ~]# systemctl start cobblerd
[root@localname ~]# systemctl start xinetd
[root@localname ~]# mount /dev/sr0 /mnt
[root@localname ~]# cobbler import --path=/mnt --name=CentOS-7-x86_64 --arch=x86_64
[root@localname ~]# cd /var/www/cobbler/ks_mirror/
[root@localhost ks_mirror]# yum install tree -y[root@localhost ks_mirror]# tree /var/lib/tftpboot/images
[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

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值