cobbler网络装机

Cobbler是一个Linux服务器安装的服务,可以通过网络启动(PXE)的方式来快速安装、重装物理服务器和虚拟机,同时还可以管理DHCPDNS等。

Cobbler可以使用命令行方式管理,也提供了基于Web的界面管理工具(cobbler-web),还提供了API接口,可以方便二次开发使用。
3、Cobbler是较早前的kickstart的升级版,优点是比较容易配置,还自带web界面比较易于管理。
4、Cobbler内置了一个轻量级配置管理系统,但它也支持和其它配置管理系统集成,如Puppet

设置CentOS 7.6 服务端

[root@localhost opt]# yum -y install epel*  安装软件源[root@localhost ~]# yum -y install cobbler    安装需要用到的软件[root@localhost ~]# yum -y install cobbler-web dhcp tftp-server pykickstart httpd rsync xinetd                安装所需软件[root@localhost ~]# cd /etc/cobbler  ===>进入该目录[root@localhost ~]# vim settings    ===>主配置文件(包含dhcp,tftp等等)......next_server: 192.168.136.10 ===>指向自己......server:  192.168.136.10 ===>指向自己......manage_dhcp: 1  ===>开启dhcp......[root@localhost cobbler]# systemctl start httpd  ===>启动服务[root@localhost cobbler]# systemctl start cobblerd.service   ===>启动服务[root@localhost cobbler]# systemctl stop firewalld   ===>关闭防火墙[root@localhost cobbler]# setenforce 0  ===>关闭核心防护[root@localhost cobbler]# cobbler check    ===>检测一下(下面的1-3项可以忽略不处理)1 : SELinux is enabled. Please review the following wiki page for details on ensuring cobbler works correctly in your SELinux environment:https://github.com/cobbler/cobbler/wiki/Selinux
2 : debmirror package is not installed, it will be required to manage debian deployments and repositories
3 : fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them[root@localhost cobbler]# vim /etc/xinetd.d/tftp   ===>修改tftp配置文件......disable                 = no.....[root@localhost cobbler]# systemctl enable rsyncd.service  ===>启用服务[root@localhost cobbler]# systemctl restart cobblerd.service     ===>重启一下服务[root@localhost cobbler]# cobbler check    ===>可以在检查一下还需要做哪些操作[root@localhost cobbler]# openssl passwd -1 -salt '123456' '123456'   ===>设置密码$1$123456$wOSEtcyiP2N/IfIl15W6Z0[root@localhost cobbler]# vim /etc/cobbler/settings  ===>修改主配置文件......default_password_crypted: "$1$123456$wOSEtcyiP2N/IfIl15W6Z0"   ===>管理员密码......[root@localhost cobbler]# systemctl start rsyncd  ===>启动服务[root@localhost cobbler]# systemctl start xinetd ===>启动服务[root@localhost cobbler]# cd /etc/cobbler/   ===>进入该目录[root@localhost cobbler]# ls
auth.conf               ldap            secondary.template
cheetah_macros          modules.conf    settings
cobbler_bash            mongodb.conf    tftpd.template
completions             named.template  users.conf
dhcp.template           power           users.digest
dnsmasq.template        pxe             version
genders.template        reporting       zone.template
import_rsync_whitelist  rsync.exclude   zone_templates
iso                     rsync.template[root@localhost cobbler]# vim dhcp.template  ===>修改配置文件......subnet  192.168.136.10 netmask 255.255.255.0 {......​     option routers              192.168.136.1;​     option domain-name-servers  192.168.136.2;......​     range dynamic-bootp        20.0.0.100 20.0.0.200;......[root@localhost cobbler]# cobbler sync    ===>进行同步[root@localhost cobbler]# cobbler get-loaders    ===>下载软件(需要联网)[root@localhost cobbler]# systemctl restart dhcpd  ===>开启服务[root@localhost cobbler]# systemctl restart cobblerd.service     ===>开启服务[root@localhost cobbler]# systemctl restart xinetd.service   ===>开启服务[root@localhost cobbler]# cobbler check  ===>重新在检测看一下
The following are potential configuration items that you may want to fix:1 : SELinux is enabled. Please review the following wiki page for details on ensuring cobbler works correctly in your SELinux environment:https://github.com/cobbler/cobbler/wiki/Selinux
2 : debmirror package is not installed, it will be required to manage debian deployments and repositories
3 : fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use themRestart cobblerd and then run 'cobbler sync' to apply changes.[root@localhost cobbler]# vim /var/log/cobbler/cobbler.log ===>日志文件所在位置[root@localhost cobbler]# mount /dev/cdrom /mnt  ===>挂载镜像文件mount: /dev/sr0 写保护,将以只读方式挂载[root@localhost cobbler]# cobbler import --path=/mnt/ --name=CentOS-7-x86_64 --arch=x86_64   ===>定义路径名字   将镜像文件导入[root@localhost cobbler]# cobbler list   ===>查看列表
distros:CentOS-7-x86_64profiles:CentOS-7-x86_64systems:repos:images:mgmtclasses:packages:files:[root@localhost cobbler]# yum -y install tree   ===>安装一下软件[root@localhost cobbler]# tree /var/lib/tftpboot/images    ===>查看内核文件跟引导程序[root@localhost cobbler]# systemctl restart cobblerd.service  ===>重新启动下服务[root@localhost cobbler]# systemctl restart dhcpd.service     ===>重新启动下服务[root@localhost cobbler]# systemctl restart xinetd.service    ===>重新启动下服务[root@localhost cobbler]# systemctl restart httpd.service     ===>重新启动下服务

在同一网段开始装机

添加管理用户用web访问

[root@localhost cobbler]# htdigest -c /etc/cobbler/users.digest Cobbler binbin
Adding password for binbin in realm Cobbler.
New password:          输入你的密码
Re-type new password:   输入你的密码
[root@localhost cobbler]# systemctl restart cobblerd.service   ===>重启启动服务
[root@localhost cobbler]# systemctl restart httpd.service  ===>重启服务
你的密码
Re-type new password:   输入你的密码
[root@localhost cobbler]# systemctl restart cobblerd.service   ===>重启启动服务
[root@localhost cobbler]# systemctl restart httpd.service  ===>重启服务

``

cobbler网络装机相关推荐

  1. 基于CentOS7操作cobbler批量装机-(centos7和redhat8)

    基于CentOS7操作cobbler批量装机-centos7和redhat8 1. cobbler简介 2. cobbler服务端部署 3. 客户端安装 4. 定制安装 5.命令方式和定制安装Cent ...

  2. Cobbler自动装机服务搭建步骤

    Cobbler自动装机服务搭建步骤 1.1.导入epel源 2.安装Cobbler以及其相关服务软件包 各软件作用如下 3.修改cobbler主配置文件 4.启动相关服务并关闭防火墙和selinux ...

  3. 手动装机太麻烦?别慌Cobbler自动装机来帮你

    Cobbler自动部署装机 一.Cobbler自动装机 装机步骤 1.导入epel源 2.安装相关服务软件包 3.修改cobbler主配置文件 4.启动相关服务并关闭防火墙 5.检查Cobbler设置 ...

  4. cobbler批量装机系统centos 6.4下安装配置

    最近笔者研究cobbler批量装机系统. cobbler装机系统是较早前kickstart的升级版,优点比较容易配置,还自带web界面比较易于管理,不足在于中文资料较少. 这里就详细的介绍下笔者亲自经 ...

  5. Linux PXE批量网络装机与Kickstart 无人值守安装

    Linux PXE批量网络装机与Kickstart 无人值守安装 一.PXE批量网络装机 二.PXE的三个优点 三.搭建PXE的先前条件 四.配置PXE装机服务器 1.安装并启用 TFTP 服务 2. ...

  6. linux 网络装机,如何搭建和配置PXE网络装机服务

    如何搭建和配置PXE网络装机服务 发布时间:2020-06-01 22:31:50 来源:亿速云 阅读:309 作者:鸽子 首先需要安装基于UDP协议的TFTP服务端,来进行后期的简单文件的网络传输, ...

  7. 自动服务器批量装机,PXE高效批量网络装机

    在大规模的Linux应用环境中,利用传统的光驱.U盘安装操作系统方式过于缓慢,如web群集,分布式计算等,需要为数十乃至上百台服务器裸机快速安装系统,这里就需要用到PXE网络装机以及实现无人值守自动安 ...

  8. CentOS7中搭建cobbler自动装机服务

    一.实验环境一台centos7epel源网址 https://fedoraproject.org/wiki/EPEL?rd=Epel使用nat模式 二.实验步骤 1.下载epel源后进行文件夹挂载到l ...

  9. PXE高效批量网络装机

    前言 目录 前言 1.1 PXE简介 1.2 PXE批量部署的优点 1.3 KickStart 概述 1.4  PXE服务器和客户机的工作过程: ​ 二.配置PXE装机服务器 2.1 搭建 PXE 远 ...

最新文章

  1. luogu P6113 【模板】一般图最大匹配(带花树)
  2. 独家|OpenCV1.10 使用OpenCV实现摄像头标定
  3. Web开发(一)·期末不挂之第一章·Web开发基础(不背就挂的基础知识)
  4. 设计模式--桥(Bridge)模式
  5. iOS逆向之深入解析MachO文件
  6. Delphi关于多线程同步的一些方法
  7. 前端学习(1526):heroes案例 效果演示
  8. CVPR 2020|不惧目标遮挡,英伟达提出全景感知的图像合成方法
  9. Annotation实战【自定义AbstractProcessor】
  10. Flutter 生命周期
  11. day14内置函数作业详解
  12. 炫酷报表制作工具:RDP报表工具
  13. Simulink汽车动力学仿真
  14. 北京市小牛电动车选购指南
  15. Android一键锁屏与抬手亮屏的实现
  16. DVWA靶场系列1-环境搭建
  17. OpenGPU.org域名已经被劫持
  18. 8psk星座图 matlab,两个8PSK信号叠加之后的星座图是怎么画的
  19. 如何查SCI、EI、SSCI检索?怎么开检索报告?
  20. 阿里云iot mqtt

热门文章

  1. RabbitMQ单机多实例配置
  2. 内联函数和编译器对Go代码的优化
  3. 牛赞:音视频前端跨平台技术应用
  4. GC之7大垃圾收集器详解(上)
  5. 前沿观察 | SageDB:一个自学成才的数据库
  6. F4V 封装格式详解(一)-------box
  7. Google Test
  8. c++无锁链表的实现
  9. undefined: resolver.BuildOption undefined: resolver.ResolveNowOption 报错的解决办法
  10. lua之弱引用table