科布ler无人值班守护安装,cobbler无人值班守护

一、Cobbler简介

  Cobbler 是二个系统运维服务(boot
server),能够经过网络运行(PXE)的不二法门用来飞快安装、重装物理服务器和设想机,帮助安装分裂的
Linux 发行版和
Windows。该工具使用python开拓,小巧轻巧(才15k行代码),使用轻便的一声令下就能够形成PXE网络安装意况的配备,同不常间还足以处理DHCP,DNS,以及yum包镜像。

  Cobbler 使用命令行格局管理,也提供了依据 Web
的分界面管理工科具(cobbler-web),还提供了API接口,可以方便二次开辟使用。

  Cobbler是较早前的kickstart的升级换代版,优点是比较轻松配置,还自带web分界面前蒙受比便于管理。

一、Cobbler简介

  Cobbler 是叁个系统运转服务(boot
server),可以通过网络运营(PXE)的主意用来异常快安装、重装物理服务器和虚构机,支持安装区别的
Linux 发行版和
Windows。该工具使用python开采,小巧轻松(才15k行代码),使用简单的通令就能够到位PXE网络安装情状的布局,同不时候还能管理DHCP,DNS,以及yum包镜像。

  Cobbler 使用命令生势势管理,也提供了基于 Web
的分界面管理工科具(cobbler-web),还提供了API接口,能够低价一次开采使用。

  Cobbler是较早前的kickstart的升高版,优点是比较便于配置,还自带web分界面临比易于管理。

Cobbler(补鞋匠)是通过将DHCP、TFTP、DNS、HTTP等服务开展合併,创设二个宗旨管理节点,其得以兑现的功能有布置服务,创制存款和储蓄库,解压缩操作系统媒介,代理或合併一个安排管理体系,调控电源管理等。
Cobbler的最终指标是落实无需举行人工干预就能够安装机器。

一、Cobbler简介

  Cobbler 是八个系统运行服务(boot
server),可以经过互连网运维(PXE)的章程用来飞速安装、重装物理服务器和虚构机,辅助安装分裂的
Linux 发行版和
Windows。该工具使用python开垦,小巧轻松(才15k行代码),使用轻松的授命就可以产生PXE网络安装情况的配备,同不平日间还足以管理DHCP,DNS,以及yum包镜像。

  Cobbler 使用命令行格局管理,也提供了基于 Web
的界面管理工科具(cobbler-web),还提供了API接口,能够实惠二次开垦使用。

  Cobbler是较早前的kickstart的晋级版,优点是相比便于配置,还自带web界面对比易于管理。

Cobbler集成的服务:

PXE、DHCP、rsync、HTTP、DNS、Kickstart、IPMI

Cobbler集成的服务:

PXE、DHCP、rsync、HTTP、DNS、Kickstart、IPMI

  pxe概述
  预运维推行景况(Preboot
eXecution
Environment,PXE,也被誉为预施行遇到)是让Computer通过网卡独立地行使数据设备(如硬盘)或许设置操作系统

Cobbler集成的服务:

PXE、DHCP、rsync、HTTP、DNS、Kickstart、IPMI

Cobbler专业流程

澳门金沙国际 1

Cobbler职业流程

澳门金沙国际 2

    PXE Client发送广播包央求DHCP分配IP地址DHCP
    Server回复央求,给出IP地址以及Boot
    Server的地址PXE下载指点文件实践辅导程序

Cobbler专门的职业流程

澳门金沙国际 3

二、系统环境

服务端Centos 7.4

关门防火墙

SElinux=disabled

阿里的epel源

二、系统遇到

服务端Centos 7.4

关门防火墙

SElinux=disabled

阿里的epel源

小结来讲,

二、系统蒙受

服务端Centos 7.4

关闭防火墙

SElinux=disabled

阿里的epel源

三、安装Cobbler并检查

yum install cobbler cobbler-web dhcp tftp-server system-config-kickstart
httpd

rpm -ql cobbler  查看配置文件

systemctl start cobblerd   启动Cobbler服务

systemctl start httpd  启动http服务

cobbler check   检查Cobbler配置

澳门金沙国际 4

八个三个搞定

1、2、Cobbler服务器的IP  /etc/cobbler/settings   384行和272行

sed -i ‘s/server: 127.0.0.1/server: 192.168.40.129/’
/etc/cobbler/settings

3、启动TFTP服务

systemctl start tftp.socket

4、联网后实践 cobbler get-loaders

澳门金沙国际,   
无法联网安装syslinux程序包,而后复制/usr/share/syslinux/{pxelinux.0,memu.c32}等公事至/var/lib/cobbler/loaders/目录中

7、实行“openssl passwd -1
生成密码,并用其替换/etc/cobbler/settings文件中default_password_crypted参数的值 
    101行

systemctl restart cobblerd    重启服务

cobbler sync  同步

三、安装Cobbler并检查

yum install cobbler cobbler-web dhcp tftp-server system-config-kickstart
httpd

rpm -ql cobbler  查看配置文件

systemctl start cobblerd   启动Cobbler服务

systemctl start httpd  启动http服务

cobbler check   检查Cobbler配置

澳门金沙国际 5

三个三个消除

1、2、科布ler服务器的IP  /etc/cobbler/settings   384行和272行

无人值班守护安装CentOS,Cobbler无人值班守护安装。sed -i ‘s/server: 127.0.0.1/server: 192.168.40.129/’
/etc/cobbler/settings

3、启动TFTP服务

systemctl start tftp.socket

4、联网后实行 cobbler get-loaders

   
不能够联网安装syslinux程序包,而后复制/usr/share/syslinux/{pxelinux.0,memu.c32}等文件至/var/lib/cobbler/loaders/目录中

7、试行“openssl passwd -1
生成密码,并用其替换/etc/cobbler/settings文件中default_password_crypted参数的值 
    101行

systemctl restart cobblerd    重启服务

cobbler sync  同步

  pxe客商端会调用网际公约(ip)、客户数量报合同(udp)、动态主机设定公约(DHCP)、Mini文件传输合同(TFTP)

三、安装Cobbler并检查

yum install cobbler cobbler-web dhcp tftp-server system-config-kickstart
httpd

rpm -ql cobbler  查看配置文件

systemctl start cobblerd   启动Cobbler服务

systemctl start httpd  启动http服务

cobbler check   检查Cobbler配置

澳门金沙国际 6

七个贰个减轻

1、2、Cobbler服务器的IP  /etc/cobbler/settings   384行和272行

sed -i ‘s/server: 127.0.0.1/server: 192.168.40.129/’
/etc/cobbler/settings

3、启动TFTP服务

systemctl start tftp.socket

4、联网后实施 cobbler get-loaders

   
不可能联网安装syslinux程序包,而后复制/usr/share/syslinux/{pxelinux.0,memu.c32}等公事至/var/lib/cobbler/loaders/目录中

7、试行“openssl passwd -1
生成密码,并用其替换/etc/cobbler/settings文件中default_password_crypted参数的值 
    101行

systemctl restart cobblerd    重启服务

cobbler sync  同步

四、配置Cobbler

四、配置Cobbler

  pxe顾客端(client)指机器在pxe运行进度中的剧中人物。贰个pxe客商端能够是一台服务器、笔记本Computer或然其余装有pxe运营代码的机器

四、配置Cobbler

1、配置DHCP(通过修改科布ler模版配置)

vim /etc/cobbler/settings     242行  manage_dhcp:  改为1

澳门金沙国际 7

vim /etc/cobbler/dhcp.template

澳门金沙国际 8

cobbler sync  同步

1、配置DHCP(通过改造Cobbler模版配置)

vim /etc/cobbler/settings     242行  manage_dhcp:  改为1

澳门金沙国际 9

vim /etc/cobbler/dhcp.template

澳门金沙国际 10

cobbler sync  同步

  PXE主若是通过广播的主意发送三个包,并请注获取贰个地点,而后交给TFTP程序下载七个带领文件。

1、配置DHCP(通过修改Cobbler模版配置)

vim /etc/cobbler/settings     242行  manage_dhcp:  改为1

澳门金沙国际 11

vim /etc/cobbler/dhcp.template

澳门金沙国际 12

cobbler sync  同步

2、导入镜像

mkdir /mnt/centos7

mount /dev/sr0 /mnt/centos7

澳门金沙国际 13

cobbler import –path=/mnt/centos7/ –name=centos7.4   
(将文件导入到/var/www/cobbler/ks_mirror)

#–path 镜像路线
# –name 为安装源定义多个名字
# –arch 指虞诩装源是33个人、陆十二个人、ia64, 这几天支持的选项有:
x86│x86_64│ia64

澳门金沙国际 14

cobbler sync  同步

2、导入镜像

mkdir /mnt/centos7

mount /dev/sr0 /mnt/centos7

澳门金沙国际 15

cobbler import –path=/mnt/centos7/ –name=centos7.4   
(将文件导入到/var/www/cobbler/ks_mirror)

#–path 镜像路线
# –name 为安装源定义叁个名字
# –arch 指虞升卿装源是三12个人、陆10个人、ia64, 这段时间支撑的选项有:
x86│x86_64│ia64

澳门金沙国际 16

cobbler sync  同步

cobbler和Kickstart批量装机软件

2、导入镜像

mkdir /mnt/centos7

mount /dev/sr0 /mnt/centos7

澳门金沙国际 17

cobbler import –path=/mnt/centos7/ –name=centos7.4   
(将文件导入到/var/www/cobbler/ks_mirror)

#–path 镜像路线
# –name 为安装源定义三个名字
# –arch 指定安装源是三十六个人、61人、ia64, 近期支撑的选项有:
x86│x86_64│ia64

澳门金沙国际 18

cobbler sync  同步

3、配置应答文件(暗许最小化安装)

 /var/lib/cobbler/kickstarts/  (应答文件私下认可地方)

 澳门金沙国际 19

 编辑profile,修改关联的ks文件澳门金沙国际 20

cobbler sync   同步

将享有服务重启一回

systemctl restart dhcpd

systemctl restart tftp.socket

systemctl restart httpd

systemctl restart cobbler

安装为开机运行

systemctl enable dhcpd

systemctl enable tftp.socket

systemctl enable httpd

systemctl enable cobbler

3、配置应答文件(默许最小化安装)

 /var/lib/cobbler/kickstarts/  (应答文件暗中同意地点)

 澳门金沙国际 21

 编辑profile,修改关联的ks文件澳门金沙国际 22

cobbler sync   同步

将具有服务重启三遍

systemctl restart dhcpd

systemctl restart tftp.socket

systemctl restart httpd

systemctl restart cobbler

设置为开机运维

systemctl enable dhcpd

systemctl enable tftp.socket

systemctl enable httpd

systemctl enable cobbler

 科布ler由python语言开垦,是对PXE和Kickstart以及DHCP的卷入。融入非常多特征,提供了CLI和Web的管制格局。越发有益的施行互连网安装。同不经常间,Cobbler也提供了API接口,使用任何语言也很轻易做扩张。它不紧可以设置物理机,同一时间也帮衬kvm、xen设想化、Guest
OS的装置。更加多的是它还是能够组成Puppet等集中国化学工业进出口总集团处理软件,落成自动化的管住。

3、配置应答文件(暗许最小化安装)

 /var/lib/cobbler/kickstarts/  (应答文件暗中同意地方)

 澳门金沙国际 23

 编辑profile,修改关联的ks文件澳门金沙国际 24

cobbler sync   同步

将装有服务重启三次

systemctl restart dhcpd

systemctl restart tftp.socket

systemctl restart httpd

systemctl restart cobbler

安装为开机运转

systemctl enable dhcpd

systemctl enable tftp.socket

systemctl enable httpd

systemctl enable cobbler

五、测量检验安装

澳门金沙国际 25

此处还须要手动选项,要自动化安装能够绑定mac地址,实现开机自动采取设置

澳门金沙国际 26

cobbler sync   同步

配置绑定mac地址和IP地址开机就活动选取设置了

澳门金沙国际 27

澳门金沙国际 28

五、测量试验安装

澳门金沙国际 29

此处还索要手动选项,要自动化安装能够绑定mac地址,达成开机自动选取设置

澳门金沙国际 30

cobbler sync   同步

布局绑定mac地址和IP地址开机就活动采取安装了

澳门金沙国际 31

澳门金沙国际 32

  Kickstart
是一种无人值班守护的设置格局,它的专门的学业规律是在装置进度中著录人工干预填写的各类参数,并扭转一个名字为ks.cfg的公文。我们能够省略了然为多少个自行安装应答配置管理程序。通过读取那一个布局文件,系统精晓怎么去分区,要安装什么包,配什么IP,优化什么内核参数等等 

五、测量检验安装

澳门金沙国际 33

此地还亟需手动选拔,要自动化安装能够绑定mac地址,实现开机自动选用安装

澳门金沙国际 34

cobbler sync   同步

布署绑定mac地址和IP地址开机就自动选取安装了

澳门金沙国际 35

澳门金沙国际 36

七、Cobbler的Web管理分界面

明确已设置科布ler-web

网址;

暗中同意客商密码:cobbler

澳门金沙国际 37

澳门金沙国际 38

/etc/cobbler/users.conf  Web服务授权配置文件

/etc/cobbler/users.digest  Web访问的客户名密码配置文件

htdigest /etc/cobbler/users.digest “Cobbler”
cobbler  在科布ler组增添cobbler客商,提醒输入2次密码确认 
 须求共同后重启httpd服务

七、Cobbler的Web管理分界面

规定已安装Cobbler-web

网址;

暗中认可顾客密码:cobbler

澳门金沙国际 39

澳门金沙国际 40

/etc/cobbler/users.conf  Web服务授权配置文件

/etc/cobbler/users.digest  Web访谈的客户名密码配置文件

htdigest /etc/cobbler/users.digest “Cobbler”
cobbler  在Cobbler组增添cobbler客商,提醒输入2次密码确认 
 必要一齐后重启httpd服务

 
一句话计算:科布ler补鞋匠是对Kickstart的包裹,简化安装步骤、使用流程,官方称为补鞋匠都能学会的批量装机。

七、Cobbler的Web管理分界面

鲜明已设置Cobbler-web

网址;

默许用户密码:cobbler

澳门金沙国际 41

澳门金沙国际 42

/etc/cobbler/users.conf  Web服务授权配置文件

/etc/cobbler/users.digest  Web访问的顾客名密码配置文件

htdigest /etc/cobbler/users.digest “Cobbler”
cobbler  在Cobbler组增加cobbler客商,提示输入2次密码确认 
 须求联合后重启httpd服务

八、目录、命令计算

配置文件目录
/etc/cobbler/settings        cobbler主配置文件
/etc/cobbler/iso/        iso模版配置文件
/etc/cobbler/pxe        pxe模版文件
/etc/cobbler/power        电源配置文件
/etc/cobbler/user.conf        web服务授权配置文件
/etc/cobbler/users.digest        web用户密码配置文件
/etc/cobbler/dhcp.template        dhcp服务配置模版
/etc/cobbler/dnsmasq.template        dns服务配置模版
/etc/cobbler/tftpd.template        tftp服务配置模版
/etc/cobbler/modules.conf        模版配置文件

数据目录
/etc/lib/cobbler/config/        存放distros、system、profiles等配置文件
/var/lib/cobbler/triggers/        用于存放用户定义的cobbler命令
/var/lib/cobbler/kickstart/        默认存放kickstart文件
/var/lib/cobbler/loaders/        存放各种引导程序

镜像目录
/var/www/cobbler/ks_mirror/        导入的发行版系统的所有数据
/var/www/cobbler/images/        导入发行版的kernel和initrd镜像用于远程网络启动
/var/www/cobbler/repo_mirror/        yum仓库存储目录

日记
/var/log/cobbler/installing        客户端安装日志
/var/log/cobbler/cobbler.log        cobbler日志

 

命令
cobbler        commands介绍
cobbler check        检查当前设置是否有问题
cobbler list        列出所有cobbler元素
cobbler report        列出元素的详细信息
cobbler sync        同步配置到数据目录,更改配置须此命令同步
cobbler reposync        同步yum仓库
cobbler distro        查看导入的发行版系统信息
cobbler system        查看添加的系统信息
cobbler profile        查看配置信息

管理distro
cobbler import --name=centos-6.9-x86_64 --path=/media/cdrom  --arch=x86_64

管理profile
cobbler profile add --name=centos-6.9-x86_64-basic --distro=centos-6.9-x86_64 --kickstart=/var/lib/cobbler/kickstarts/centos-6.9-x86_64.cfg

 

八、目录、命令总计

配置文件目录
/etc/cobbler/settings        cobbler主配置文件
/etc/cobbler/iso/        iso模版配置文件
/etc/cobbler/pxe        pxe模版文件
/etc/cobbler/power        电源配置文件
/etc/cobbler/user.conf        web服务授权配置文件
/etc/cobbler/users.digest        web用户密码配置文件
/etc/cobbler/dhcp.template        dhcp服务配置模版
/etc/cobbler/dnsmasq.template        dns服务配置模版
/etc/cobbler/tftpd.template        tftp服务配置模版
/etc/cobbler/modules.conf        模版配置文件

数据目录
/etc/lib/cobbler/config/        存放distros、system、profiles等配置文件
/var/lib/cobbler/triggers/        用于存放用户定义的cobbler命令
/var/lib/cobbler/kickstart/        默认存放kickstart文件
/var/lib/cobbler/loaders/        存放各种引导程序

镜像目录
/var/www/cobbler/ks_mirror/        导入的发行版系统的所有数据
/var/www/cobbler        导入发行版的kernel和initrd镜像用于远程网络启动
/var/www/cobbler/repo_mirror/        yum仓库存储目录

日记
/var/log/cobbler/installing        客户端安装日志
/var/log/cobbler/cobbler.log        cobbler日志

 

命令
cobbler        commands介绍
cobbler check        检查当前设置是否有问题
cobbler list        列出所有cobbler元素
cobbler report        列出元素的详细信息
cobbler sync        同步配置到数据目录,更改配置须此命令同步
cobbler reposync        同步yum仓库
cobbler distro        查看导入的发行版系统信息
cobbler system        查看添加的系统信息
cobbler profile        查看配置信息

管理distro
cobbler import --name=centos-6.9-x86_64 --path=/media/cdrom  --arch=x86_64

管理profile
cobbler profile add --name=centos-6.9-x86_64-basic --distro=centos-6.9-x86_64 --kickstart=/var/lib/cobbler/kickstarts/centos-6.9-x86_64.cfg

 

Cobbler
工作流程

八、目录、命令总计

配置文件目录
/etc/cobbler/settings        cobbler主配置文件
/etc/cobbler/iso/        iso模版配置文件
/etc/cobbler/pxe        pxe模版文件
/etc/cobbler/power        电源配置文件
/etc/cobbler/user.conf        web服务授权配置文件
/etc/cobbler/users.digest        web用户密码配置文件
/etc/cobbler/dhcp.template        dhcp服务配置模版
/etc/cobbler/dnsmasq.template        dns服务配置模版
/etc/cobbler/tftpd.template        tftp服务配置模版
/etc/cobbler/modules.conf        模版配置文件

数据目录
/etc/lib/cobbler/config/        存放distros、system、profiles等配置文件
/var/lib/cobbler/triggers/        用于存放用户定义的cobbler命令
/var/lib/cobbler/kickstart/        默认存放kickstart文件
/var/lib/cobbler/loaders/        存放各种引导程序

镜像目录
/var/www/cobbler/ks_mirror/        导入的发行版系统的所有数据
/var/www/cobbler/images/        导入发行版的kernel和initrd镜像用于远程网络启动
/var/www/cobbler/repo_mirror/        yum仓库存储目录

日记
/var/log/cobbler/installing        客户端安装日志
/var/log/cobbler/cobbler.log        cobbler日志

 

命令
cobbler        commands介绍
cobbler check        检查当前设置是否有问题
cobbler list        列出所有cobbler元素
cobbler report        列出元素的详细信息
cobbler sync        同步配置到数据目录,更改配置须此命令同步
cobbler reposync        同步yum仓库
cobbler distro        查看导入的发行版系统信息
cobbler system        查看添加的系统信息
cobbler profile        查看配置信息

管理distro
cobbler import --name=centos-6.9-x86_64 --path=/media/cdrom  --arch=x86_64

管理profile
cobbler profile add --name=centos-6.9-x86_64-basic --distro=centos-6.9-x86_64 --kickstart=/var/lib/cobbler/kickstarts/centos-6.9-x86_64.cfg

 

一、Cobbler简单介绍 科布ler 是贰个系统运营服务(boot
server),可以透过互连网运行(PXE)的措施用来非常的慢安装…

server端:

    第一步,启动Cobbler服务
    第二步,进行科布ler错误检查,奉行cobbler check命令
    第三步,进行配置同步,试行cobbler sync命令
    第四步,复制相关运行文件文件到TFTP目录中
    第五步,运营DHCP服务,提供地点分配
    第六步,DHCP服务分配IP地址
    第七步,TFTP传输运转文件
    第八步,Server端接收装置新闻
    第九步,Server端发送ISO镜像与Kickstart文件

Client端:

    第一步,客商端以PXE方式运行
    第二步,客商端获取IP地址
    第三步,通过TFTP服务器获取运转文件
    第四步,走入Cobbler安装选用分界面
    第五步,顾客端鲜明加载音讯
    第六步,依据安排消息企图安装系统
    第七步,加载Kickstart文件
    第八步,传输连串装置的别的文件
    第九步,实行安装系统

标准意况筹算:

 
1.网络意况:host-only、nat互联网,因为Cobbler必要用到本身的dhcp服务器,所认为了防止都在同八个互联网变成dhcp获取混乱,需求切换互联网!~ 

 
2.类似装置服务须求的情形打算:1,关闭iptables,selinux
2,配置静态IP、设置主机名 何况在hosts文件下绑定 3.时间同步
4.安顿本地iso镜像里的yum货仓,163源epel源 (安装软件)

cobbler server    ——-    client
                  192.168.100.22三分之一4 
————————————  装机时候由DHCP自动配置

一.  在cobbler server上安装cobbler

  yum install cobbler cobbler-web tftp*
rsync xinetd http* syslinux dhcp* pykickstart

[root@bokeyuan ~]``# yum install cobbler cobbler-web tftp* rsync xinetd http* syslinux dhcp* pykickstart

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

Package ``rsync``-3.0.9-17.el7.x86_64 already installed and latest version

Package 12:dhcp-common-4.2.5-47.el7.CentOS.x86_64 already installed and latest version

Package 12:dhcp-libs-4.2.5-47.el7.centos.x86_64 already installed and latest version

Package pykickstart-1.99.66.10-1.el7.noarch already installed and latest version

Resolving Dependencies

--> Running transaction check

---> Package cobbler.noarch 0:2.6.3-1.el6 will be installed

--> Processing Dependency: python-simplejson ``for
package: cobbler-2.6.3-1.el6.noarch

--> Processing Dependency: python-cheetah ``for
package: cobbler-2.6.3-1.el6.noarch

--> Processing Dependency: mod_wsgi ``for
package: cobbler-2.6.3-1.el6.noarch

--> Processing Dependency: PyYAML ``for
package: cobbler-2.6.3-1.el6.noarch

---> Package cobbler-web.noarch 0:2.6.3-1.el6 will be installed

--> Processing Dependency: mod_ssl ``for
package: cobbler-web-2.6.3-1.el6.noarch

--> Processing Dependency: Django ``for
package: cobbler-web-2.6.3-1.el6.noarch

---> Package dhcp.x86_64 12:4.2.5-47.el7.centos will be installed

---> Package httpcomponents-client.noarch 0:4.2.5-5.el7_0 will be installed

--> Processing Dependency: mvn(commons-logging:commons-logging) ``for
package: httpcomponents-client-4.2.5-5.el7_0.noarch

--> Processing Dependency: mvn(commons-codec:commons-codec) ``for
package: httpcomponents-client-4.2.5-5.el7_0.noarch

---> Package httpcomponents-core.noarch 0:4.2.4-6.el7 will be installed

---> Package httpd.x86_64 0:2.4.6-45.el7.centos will be installed

--> Processing Dependency: ``/etc/mime``.types ``for
package: httpd-2.4.6-45.el7.centos.x86_64

---> Package httpd-devel.x86_64 0:2.4.6-45.el7.centos will be installed

--> Processing Dependency: apr-util-devel ``for
package: httpd-devel-2.4.6-45.el7.centos.x86_64

--> Processing Dependency: apr-devel ``for
package: httpd-devel-2.4.6-45.el7.centos.x86_64

---> Package httpd-manual.noarch 0:2.4.6-45.el7.centos will be installed

---> Package httpd-tools.x86_64 0:2.4.6-45.el7.centos will be installed

---> Package syslinux.x86_64 0:4.05-13.el7 will be installed

---> Package tftp.x86_64 0:5.2-13.el7 will be installed

---> Package tftp-server.x86_64 0:5.2-13.el7 will be installed

---> Package xinetd.x86_64 2:2.3.15-13.el7 will be installed

--> Running transaction check

---> Package Django14.noarch 0:1.4.20-1.el6 will be installed

--> Processing Dependency: python(abi) = 2.6 ``for
package: Django14-1.4.20-1.el6.noarch

--> Processing Dependency: python-simplejson ``for
package: Django14-1.4.20-1.el6.noarch

---> Package PyYAML.x86_64 0:3.10-11.el7 will be installed

--> Processing Dependency: libyaml-0.so.2()(64bit) ``for
package: PyYAML-3.10-11.el7.x86_64

---> Package apache-commons-codec.noarch 0:1.8-7.el7 will be installed

---> Package apache-commons-logging.noarch 0:1.1.2-7.el7 will be installed

--> Processing Dependency: mvn(logkit:logkit) ``for
package: apache-commons-logging-1.1.2-7.el7.noarch

--> Processing Dependency: mvn(log4j:log4j) ``for
package: apache-commons-logging-1.1.2-7.el7.noarch

--> Processing Dependency: mvn(avalon-framework:avalon-framework-api) ``for
package: apache-commons-logging-1.1.2-7.el7.noarch

---> Package apr-devel.x86_64 0:1.4.8-3.el7 will be installed

---> Package apr-util-devel.x86_64 0:1.5.2-6.el7 will be installed

--> Processing Dependency: openldap-devel(x86-64) ``for
package: apr-util-devel-1.5.2-6.el7.x86_64

--> Processing Dependency: libdb-devel(x86-64) ``for
package: apr-util-devel-1.5.2-6.el7.x86_64

--> Processing Dependency: expat-devel(x86-64) ``for
package: apr-util-devel-1.5.2-6.el7.x86_64

---> Package cobbler.noarch 0:2.6.3-1.el6 will be installed

--> Processing Dependency: python-simplejson ``for
package: cobbler-2.6.3-1.el6.noarch

--> Processing Dependency: python-cheetah ``for
package: cobbler-2.6.3-1.el6.noarch

---> Package mailcap.noarch 0:2.1.41-2.el7 will be installed

---> Package mod_ssl.x86_64 1:2.4.6-45.el7.centos will be installed

---> Package mod_wsgi.x86_64 0:3.4-12.el7_0 will be installed

--> Running transaction check

---> Package Django14.noarch 0:1.4.20-1.el6 will be installed

--> Processing Dependency: python(abi) = 2.6 ``for
package: Django14-1.4.20-1.el6.noarch

--> Processing Dependency: python-simplejson ``for
package: Django14-1.4.20-1.el6.noarch

---> Package avalon-framework.noarch 0:4.3-10.el7 will be installed

--> Processing Dependency: xalan-j2 ``for
package: avalon-framework-4.3-10.el7.noarch

---> Package avalon-logkit.noarch 0:2.1-14.el7 will be installed

--> Processing Dependency: tomcat-servlet-3.0-api ``for
package: avalon-logkit-2.1-14.el7.noarch

--> Processing Dependency: jms ``for
package: avalon-logkit-2.1-14.el7.noarch

---> Package cobbler.noarch 0:2.6.3-1.el6 will be installed

--> Processing Dependency: python-simplejson ``for
package: cobbler-2.6.3-1.el6.noarch

--> Processing Dependency: python-cheetah ``for
package: cobbler-2.6.3-1.el6.noarch

---> Package expat-devel.x86_64 0:2.1.0-8.el7 will be installed

---> Package libdb-devel.x86_64 0:5.3.21-19.el7 will be installed

---> Package libyaml.x86_64 0:0.1.4-11.el7_0 will be installed

---> Package log4j.noarch 0:1.2.17-15.el7 will be installed

--> Processing Dependency: mvn(javax.mail:mail) ``for
package: log4j-1.2.17-15.el7.noarch

---> Package openldap-devel.x86_64 0:2.4.40-13.el7 will be installed

--> Processing Dependency: cyrus-sasl-devel(x86-64) ``for
package: openldap-devel-2.4.40-13.el7.x86_64

--> Running transaction check

---> Package Django14.noarch 0:1.4.20-1.el6 will be installed

--> Processing Dependency: python(abi) = 2.6 ``for
package: Django14-1.4.20-1.el6.noarch

--> Processing Dependency: python-simplejson ``for
package: Django14-1.4.20-1.el6.noarch

---> Package cobbler.noarch 0:2.6.3-1.el6 will be installed

--> Processing Dependency: python-simplejson ``for
package: cobbler-2.6.3-1.el6.noarch

--> Processing Dependency: python-cheetah ``for
package: cobbler-2.6.3-1.el6.noarch

---> Package cyrus-sasl-devel.x86_64 0:2.1.26-20.el7_2 will be installed

---> Package geronimo-jms.noarch 0:1.1.1-19.el7 will be installed

---> Package javamail.noarch 0:1.4.6-8.el7 will be installed

---> Package tomcat-servlet-3.0-api.noarch 0:7.0.69-10.el7 will be installed

---> Package xalan-j2.noarch 0:2.7.1-23.el7 will be installed

--> Processing Dependency: xerces-j2 ``for
package: xalan-j2-2.7.1-23.el7.noarch

--> Processing Dependency: osgi(org.apache.xerces) ``for
package: xalan-j2-2.7.1-23.el7.noarch

--> Running transaction check

---> Package Django14.noarch 0:1.4.20-1.el6 will be installed

--> Processing Dependency: python(abi) = 2.6 ``for
package: Django14-1.4.20-1.el6.noarch

--> Processing Dependency: python-simplejson ``for
package: Django14-1.4.20-1.el6.noarch

---> Package cobbler.noarch 0:2.6.3-1.el6 will be installed

--> Processing Dependency: python-simplejson ``for
package: cobbler-2.6.3-1.el6.noarch

--> Processing Dependency: python-cheetah ``for
package: cobbler-2.6.3-1.el6.noarch

---> Package xerces-j2.noarch 0:2.11.0-17.el7_0 will be installed

--> Processing Dependency: xml-commons-resolver >= 1.2 ``for
package: xerces-j2-2.11.0-17.el7_0.noarch

--> Processing Dependency: xml-commons-apis >= 1.4.01 ``for
package: xerces-j2-2.11.0-17.el7_0.noarch

--> Processing Dependency: osgi(org.apache.xml.resolver) ``for
package: xerces-j2-2.11.0-17.el7_0.noarch

--> Processing Dependency: osgi(javax.xml) ``for
package: xerces-j2-2.11.0-17.el7_0.noarch

--> Running transaction check

---> Package Django14.noarch 0:1.4.20-1.el6 will be installed

--> Processing Dependency: python(abi) = 2.6 ``for
package: Django14-1.4.20-1.el6.noarch

--> Processing Dependency: python-simplejson ``for
package: Django14-1.4.20-1.el6.noarch

---> Package cobbler.noarch 0:2.6.3-1.el6 will be installed

--> Processing Dependency: python-simplejson ``for
package: cobbler-2.6.3-1.el6.noarch

--> Processing Dependency: python-cheetah ``for
package: cobbler-2.6.3-1.el6.noarch

---> Package xml-commons-apis.noarch 0:1.4.01-16.el7 will be installed

---> Package xml-commons-resolver.noarch 0:1.2-15.el7 will be installed

--> Finished Dependency Resolution

Error: Package: Django14-1.4.20-1.el6.noarch (cobbler)

``Requires: python-simplejson

Error: Package: cobbler-2.6.3-1.el6.noarch (cobbler)

``Requires: python-simplejson

Error: Package: Django14-1.4.20-1.el6.noarch (cobbler)

``Requires: python(abi) = 2.6

``Installed: python-2.7.5-48.el7.x86_64 (@anaconda)

``python(abi) = 2.7

``python(abi) = 2.7

Error: Package: cobbler-2.6.3-1.el6.noarch (cobbler)

``Requires: python-cheetah

``You could try using --skip-broken to work around the problem

** Found 3 pre-existing rpmdb problem(s), ``'yum check'
output follows:

ipa-client-4.4.0-12.el7.centos.x86_64 has installed conflicts freeipa-client: ipa-client-4.4.0-12.el7.centos.x86_64

ipa-client-common-4.4.0-12.el7.centos.noarch has installed conflicts freeipa-client-common: ipa-client-common-4.4.0-12.el7.centos.noarch

ipa-common-4.4.0-12.el7.centos.noarch has installed conflicts freeipa-common: ipa-common-4.4.0-12.el7.centos.noarch

 报错搞定:提醒–skip-broken
,检查开掘本人yum源不全yum不能够安装上边多少个正视包。补全yum源化解

安装到位,运转软件

[root@bokeyuan ~]# systemctl restart cobblerd.service
[root@bokeyuan ~]# systemctl restart httpd.service
[root@bokeyuan ~]# systemctl enable
cobblerd.service  //开机自运转
Created symlink from
/etc/systemd/system/multi-user.target.wants/cobblerd.service to
/usr/lib/systemd/system/cobblerd.service.
[root@bokeyuan ~]# systemctl enable httpd.service  //开机自运行
Created symlink from
/etc/systemd/system/multi-user.target.wants/httpd.service to
/usr/lib/systemd/system/httpd.service.

怎么运转apache?血的训诫,排了十分久。不先运营apache
后续cobbler check 报python file 的谬误!!!

二.主导配置

[root@bokeyuan ~]``# cobbler check

The following are potential configuration items that you may want to fix:

 

1 : The ``'server' field ``in /etc/cobbler/settings
must be ``set
to something other than localhost, or kickstarting features will not work.  This should be a resolvable ``hostname
or IP ``for
the boot server as reachable by all machines that will use it.

2 : For PXE to be functional, the ``'next_server' field ``in
/etc/cobbler/settings must be ``set
to something other than 127.0.0.1, and should match the IP of the boot server on the PXE network.

3 : change ``'disable' to ``'no' in /etc/xinetd``.d``/tftp

4 : some network boot-loaders are missing from ``/var/lib/cobbler/loaders``, you may run ``'cobbler get-loaders'
to download them, or, ``if you only want to handle x86``/x86_64
netbooting, you may ensure that you have installed a *recent* version of the syslinux package installed and can ignore this message entirely.  Files ``in
this directory, should you want to support all architectures, should include pxelinux.0, menu.c32, elilo.efi, and yaboot. The ``'cobbler get-loaders'
command is the easiest way to resolve these requirements.

5 : ``enable and start rsyncd.service with systemctl

6 : debmirror package is not installed, it will be required to manage debian deployments and repositories

7 : The default password used by the sample templates ``for
newly installed machines (default_password_crypted ``in
/etc/cobbler/settings``) is still ``set to ``'cobbler'
and should be changed, try: ``"openssl passwd -1 -salt 'random-phrase-here' 'your-password-here'"
to generate new one

8 : fencing tools were not found, and are required to use the (optional) power management features. ``install
cman or fence-agents to use them

 

Restart cobblerd and ``then run ``'cobbler sync' to apply changes.

 一步步化解上述须要,部分必要可忽略。个体差别分歧每一种人供给数量也比不上,基本上大致

减轻急需1、2、7
# openssl passwd -1 -salt ‘werwqerwqr’ ‘123456’       
–123456为密码(那是自行安装顾客端系统成功后的root登入密码),werwqerwqr为随机字节困扰码(随意写)
$1$werwqerw$.prcfrYFbwuvkD8XspayN.

# vim /etc/cobbler/settings
384 server: 192.168.100.221   –换到cobbler服务器端的IP
272 next_server: 192.168.100.221   –同上
101 default_password_crypted: “$1$werwqerw$.prcfrYFbwuvkD8XspayN.” 
–把密码字符串换来你上边发生的字符串(此密码为客户机安装后的root登入密码)

杀鸡取卵急需3
# vim /etc/xinetd.d/tftp
        disable = no    –yes改为no

缓和须要5

#systemctl restart rsyncd.service

#systemctl enable  rsyncd.service

解决需求8
# yum install fence-agents

OK,剩下的供给像

4 : some network boot-loaders are missing from /var/lib/cobbler/loaders,
you may run ‘cobbler get-loaders’ to download them, or, if you only want
to handle x86/x86_64 netbooting, you may ensure that you have installed
a *recent* version of the syslinux package installed and can ignore
this message entirely.  Files in this directory, should you want to
support all architectures, should include pxelinux.0, menu.c32,
elilo.efi, and yaboot. The ‘cobbler get-loaders’ command is the easiest
way to resolve these requirements.
6 : debmirror package is not installed, it will be required to manage
debian deployments and repositories

(难题4方可接纳cobbler get-loaders化解,但须求有外网和外网的yum源
跳过,以往是NAT格局;难点6 是关于debian系统的,大家这里能够忽略)

最后# systemctl restart cobblerd.service 重起下cobbler补鞋匠服务!

三.导入centos7.3的iso镜像

自个儿的情形iso镜像挂载在/yum目录,此拷贝步骤时间较长

# cobbler import –path=/yum/ –name=centos7.3

# cobbler distro list   –导入成功后,确认导入的镜像名
  centos7.3-x86_64
# cobbler profile list   –导入成功后,确认暗中认可的profile名
  centos7.3-x86_64

[root@bokeyuan ~]# cobbler import --path=/yum/ --name=centos7.3
task started: 2017-09-03_175701_import
task started (id=Media import, time=Sun Sep  3 17:57:01 2017)
Found a candidate signature: breed=RedHat, version=rhel6
Found a candidate signature: breed=redhat, version=rhel7
Found a matching signature: breed=redhat, version=rhel7
Adding distros from path /var/www/cobbler/ks_mirror/centos7.3:
creating new distro: centos7.3-x86_64
trying symlink: /var/www/cobbler/ks_mirror/centos7.3 -> /var/www/cobbler/links/centos7.3-x86_64
creating new profile: centos7.3-x86_64
associating repos
checking for rsync repo(s)
checking for rhn repo(s)
checking for yum repo(s)
starting descent into /var/www/cobbler/ks_mirror/centos7.3 for centos7.3-x86_64
processing repo at : /var/www/cobbler/ks_mirror/centos7.3
need to process repo/comps: /var/www/cobbler/ks_mirror/centos7.3
looking for /var/www/cobbler/ks_mirror/centos7.3/repodata/*comps*.xml
Keeping repodata as-is :/var/www/cobbler/ks_mirror/centos7.3/repodata
*** TASK COMPLETE *** 

四.修改dhcp配置
# vim
/etc/cobbler/dhcp.template  –在此文件的第21行到第25行修改成你对号入座的网段和ip 
 

subnet 192.168.100.0 netmask 255.255.255.0 {
    option routers            192.168.100.221;
    option domain-name-servers 192.168.100.221;
    option subnet-mask        255.255.255.0;
    range dynamic-bootp        192.168.100.100 192.168.100.254;

–图形的操作进度这里大约后续还只怕有这一步 重要

# vim /etc/cobbler/settings 
 –再去修改这几个布局文件,改成dhcp服务由cobbler来治本
242 manage_dhcp: 1       –把0改为1

#  systemctl restart cobblerd.service  –保存后,再重启此服务

五.使用cobbler sync同步,并启动xinetd服务

上面包车型客车cobbler sync
很关键,要是那步报错必定要排出来,就经历来讲那步出错一般是IP配置出错,记得留神一点,个体差别不用就不详细表述~  

# cobbler sync

[root@bokeyuan ~]``# cobbler sync

task started: 2017-09-03_180107_sync

task started (``id``=Sync, ``time``=Sun Sep  3 18:01:07 2017)

running pre-``sync triggers

cleaning trees

removing: ``/var/www/cobbler/images/centos7``.3-x86_64

removing: ``/var/lib/tftpboot/pxelinux``.cfg``/default

removing: ``/var/lib/tftpboot/grub/images

removing: ``/var/lib/tftpboot/grub/efidefault

removing: ``/var/lib/tftpboot/images/centos7``.3-x86_64

removing: ``/var/lib/tftpboot/s390x/profile_list

copying bootloaders

trying hardlink ``/usr/share/syslinux/pxelinux``.0 -> ``/var/lib/tftpboot/pxelinux``.0

trying hardlink ``/usr/share/syslinux/menu``.c32 -> ``/var/lib/tftpboot/menu``.c32

trying hardlink ``/usr/share/syslinux/memdisk
-> ``/var/lib/tftpboot/memdisk

copying distros to tftpboot

copying files ``for distro: centos7.3-x86_64

trying hardlink ``/var/www/cobbler/ks_mirror/centos7``.3``/images/pxeboot/vmlinuz
-> ``/var/lib/tftpboot/images/centos7``.3-x86_64``/vmlinuz

trying hardlink ``/var/www/cobbler/ks_mirror/centos7``.3``/images/pxeboot/initrd``.img -> ``/var/lib/tftpboot/images/centos7``.3-x86_64``/initrd``.img

copying images

generating PXE configuration files

generating PXE menu structure

copying files ``for distro: centos7.3-x86_64

trying hardlink ``/var/www/cobbler/ks_mirror/centos7``.3``/images/pxeboot/vmlinuz
-> ``/var/www/cobbler/images/centos7``.3-x86_64``/vmlinuz

trying hardlink ``/var/www/cobbler/ks_mirror/centos7``.3``/images/pxeboot/initrd``.img -> ``/var/www/cobbler/images/centos7``.3-x86_64``/initrd``.img

Writing template files ``for centos7.3-x86_64

rendering TFTPD files

generating ``/etc/xinetd``.d``/tftp

processing boot_files ``for distro: centos7.3-x86_64

cleaning link caches

running post-``sync triggers

running python triggers from ``/var/lib/cobbler/triggers/sync/post/``*

running python trigger cobbler.modules.sync_post_restart_services

running shell triggers from ``/var/lib/cobbler/triggers/sync/post/``*

running python triggers from ``/var/lib/cobbler/triggers/change/``*

running python trigger cobbler.modules.scm_track

running shell triggers from ``/var/lib/cobbler/triggers/change/``*

*** TASK COMPLETE ***

# systemctl restart xinetd.service
# systemctl enable xinetd.service

六.新建另一个设想机 接纳互连网安装PXE
(有限协理平等私有网络,并且最棒2G内部存款和储蓄器,内部存款和储蓄器小的话会在设置时报空间缺乏的谬误),举办设置测量试验

澳门金沙国际 43   

设置实现后,退换boot指导

澳门金沙国际 44

更加多详细情况见请继续读书下一页的美丽内容
http://www.linuxidc.com/Linux/2017-09/146706p2.htm

澳门金沙国际 45

相关文章