cobbler安装操作系统(已验证)

部署准备:

  • 一台新的VMware虚拟机 没有安装任何软件
  • Cobbler服务器(我这里是Ctenos7)
[root@localhost ~]# cat /etc/redhat-release 
CentOS Linux release 7.7.1908 (Core)
[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens33 
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=5f232a0e-b6db-4251-8f1a-186dbe8a7c7e
DEVICE=ens33
ONBOOT=yes
[root@localhost ~]# reboot
[root@localhost ~]# yum install vim
[root@localhost ~]# yum install net-tools
  • 在虚拟机中网络连接改为NAT模式
  • 安装epel-release-latest-7.noarch软件包(Cobbler是由这个软件包提供服务得,源码包在准备前提供了连接。可以用共享或者其他工具存放到Linux中)
[root@localhost ~]# yum -y install epel-release

-因为后面需要用YUM安装服务,这里需要重新加载YUM仓库

[root@localhost dev]# yum list

安装cobbler cobbler-web dhcp tftp-sever pykickstart httpd rsync xinetd服务

[root@localhost ~]# yum install cobbler cobbler-web dhcp tftp-sever pykickstart httpd rsync xinetd -y

修改cobbler主配置文件

[root@localhost ~]# vim /etc/cobbler/settings

next_server:“虚拟机IP” #指定cobbler服务器地址

server:“虚拟机IP” #指定TFTP服务器地址(因为tftp在cobbler中,所以指向的地址都一样)

manage_dhcp: 1 / #让cobbler接管dhcp(1:开启 0:关闭)

永久关闭虚拟机防火墙

[root@localhost ~]# systemctl stop firewalld.service
[root@localhost ~]# systemctl status firewalld
[root@localhost ~]# systemctl disable firewalld.service

启动httpd服务并设置开机自启动

[root@localhost ~]# systemctl start httpd.service
[root@localhost ~]# systemctl status httpd.service
[root@localhost ~]# systemctl enable httpd.service

启动Cobblerd服务并设置开机自启动

[root@localhost ~]
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值