cobbler全自动批量安装部署linux

1、安装cobbler

cobbler可以手动编译安装,也可以基于yum源的安装,如果使用yum源安装,则需要配置epel源epel源可以通过下载官网的epel源的目录来实现。由于cobbler是由python而写,所以还要安装python环境。

https://fedoraproject.org/wiki/EPEL

# yum -y install cobbler cobbler-web pykickstart debmirror httpd python

2、检查配置文件,需要在启动cobblerd和httpd服务的前提下检查

#service httpd start
#service cobblerd start
#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 : 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.
4 : change ‘disable‘ to ‘no‘ in /etc/xinetd.d/rsync
5 : comment out ‘dists‘ on /etc/debmirror.conf for proper debian support
6 : comment out ‘arches‘ on /etc/debmirror.conf for proper debian support
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. 

以上8个问题的解决方法

    1.修改/etc/cobbler/settings文件中的server参数的值为提供cobbler服务的主机对应的ip地址

      server: 192.168.13.8

    2.修改/etc/cobbler/settings文件的next_server参数的值为提供PXE服务的主机的ip

      next_server: 192.168.13.8

    3.如果当前节点可以访问互联网,执行“cobbler get-loaders”命令下载pxelinux.0,menu.c32,elibo.efi,yaboot文件,否则则需要安装syslinux程序 包,复制/usr/share/syslinux/中的pxelinux.0,menu.c32等文件至/var/lib/cobbler /loaders目录中

    4.将/etc/xinetd.d/rsync 中的disable改为no,或者执行 chkconfig rsync on

    5.注释/etc/debmirror.conf文件中的“@dists="sid";”一行

    6.注释/etc/debmirror.conf文件中的“@arches="i386";”一行

    7.执行“openssl passwd -1 -salt `pensshl rand -hex 4`”生成密码,并将密码串替换掉/etc/cobbler/settings中的default_password_crypted

      default_password_crypted: "$1$6a385fbf$iOHgbfJ0BJRQh78yAMA2L1"

    8.安装cam和fence-agents来实现电源管理

同步数据

时间: 2024-08-07 20:54:30

cobbler全自动批量安装部署linux的相关文章

Cobbler全自动批量安装部署Linux系统

前言:这篇文章是系统运维www.osyunwei.com的作品,我只是根据实践了一下,出于对原作者的尊重附原文链接如下: 原文链接:http://www.osyunwei.com/archives/7606.html 根据文章的说明是可以完成所属功能的,不过原文章有点小问题,在本文中我已经修改过了,仅供大家参考,有问题大家交流,E-mail:[email protected] 安装之前的一点说明 Cobbler服务器系统:CentOS5.10 64位 IP地址:192.168.21.128 需要

Kickstart+HTTP+DHCP+TFTP全自动批量安装部署Linux系统

说明: Kickstart服务器系统:CentOS 6.5 64位 IP地址:192.168.0.250 需要安装部署的Linux系统:CentOS 6.5 64位 eth0(第一块网卡,用于外网)IP地址段:60.28.x.x eth1(第二块网卡,用于内网)IP地址段:192.168.0.128 子网掩码:255.255.255.128 网关:192.168.0.250 DNS:114.114.115.115 8.8.4.4 所有服务器均支持PXE网络启动 实现目的:通过配置Kickstar

Cobbler全自动批量安装部署CentOS7操作系统

简介 Cobbler是一款自动化操作系统部署的实现工具,由Python语言开发,是对PXE的二次封装.融合多种特性,提供了CLI和Web的管理形式.同时,Cobbler也提供了API接口,方便二次开发使用.它不仅可以安装物理机,同时也支持kvm.xen虚拟化.Guest OS的安装.另外,它还能结合Puppet等集中化管理软件,实现自动化管理. 搭建步骤: 一.安装Cobbler环境 1.测试连接外网 [[email protected] ~]# ping -c 4 www.baidu.com

Linux 通过配置Cobbler服务器全自动批量安装部署

实现目的:通过配置Cobbler服务器,全自动批量安装部署Linux系统 安装centos 7唯一要变就是在网络类型里面选择使用网络地址NAT模式因为要实时在线下载 vim /etc/sysconfig/network-scripts/ifcfg-ens33 对网卡进行配置因为在这是DNS自动获取说有只需要激活网卡就好 ONBOOT=yes ONBOOT是指明在系统启动时是否激活网卡,只有在激活状态的网卡才能去连接网络,进行网络通讯 systemctl restart network.servi

Linux系统中Kickstart+HTTP+DHCP+TFTP全自动批量安装部署

说明: Kickstart服务器系统:CentOS 5.10 64位 IP地址:192.168.21.128 需要安装部署的Linux系统:CentOS 5.10 64位 eth0(第一块网卡,用于外网)IP地址段:192.168.21.160-192.168.21.200 eth1(第二块网卡,用于内网)IP地址段:10.0.0.160-10.0.0.200 子网掩码:255.255.255.0 网关:192.168.21.2 DNS:8.8.8.8 8.8.4.4 所有服务器均支持PXE网络

Cobbler实现自动化无人值守网络批量安装部署Linux系统

一.Cobbler(直译为补鞋匠) 使用 Cobbler,您无需进行人工干预即可安装机器.Cobbler 设置一个 PXE 引导环境(它还可使用 yaboot 支持 PowerPC),并控制与安装相关的所有方面,比如网络引导服务(DHCP 和 TFTP)与存储库镜像.当希望安装一台新机器时,Cobbler 可以: 1.使用一个以前定义的模板来配置 DHCP 服务(如果启用了管理 DHCP) 2.将一个存储库(yum 或 rsync)建立镜像或解压缩一个媒介,以注册一个新操作系统 3.在 DHCP

kvm cobbler无人值守批量安装操作系统

kvm cobbler无人值守批量安装操作系统 cobbler:一个自动网络安装系统的工具,集成PEX.dhcp.dns.tftpd.sync等服务.可以供大家管理安装操作系统 kvm:Linux系统自带的虚拟化软件,自行找资料学习. 环境描述: cobbler: 系统:CentOS_x86 6.8 网卡: eth0:vm1 (管理)10.10.100.131 ech1:NAT (上网)DHCP kvm: 系统:CentOS_x86 6.8 网卡: eth0:vm1 (管理)10.10.100.

cobbler 批量自动化部署 Linux 系统

实验介绍:Cobbler自动化部署linux系统,比PXE部署方式效率更高,因此在大多环境中,以cobbler 方式部署系统,更为方便:具体步骤如下所示: 若描述有误欢迎拍砖交流QQ:45223208 1.安装cobbler 和 DHCP服务: yum install cobbler -y yum install dhcp -y 2. 启动服务 systemctl start cobbler tftp httpd systemctl enable cobbler tftp httpd 3. 根据

Centos 6.4 ossec批量安装部署客户端

一.本文主要还是借鉴网上,自己做了小改动 server:192.168.153.172 client:192.168.153.173 192.168.153.174 二.服务器配置 服务器详细安装过程见http://whnba.blog.51cto.com/1215711/1633004 搭建ftp方便我们下载配置文件 [[email protected] ~]# yum -y install httpd [[email protected] ~]# service httpd start [[