cobbler介绍与部署
cobbler介绍
Cobbler是一个Linux系统安装的服务,可以通过网络启动(PXE)的方式来快速安装、重装物理服务器和虚拟机,同时还可以管理DHCP,DNS等。
Cobbler可以使用命令行方式管理,也提供了基于Web的界面管理工具(cobbler-web),还提供了API接口,可以方便二次开发使用。
Cobbler是较早前的kickstart的升级版,优点是比较容易配置,还自带web界面比较易于管理。
官网:http://cobbler.github.io/
cobbler部署流程
第一个里程:安装cobbler
更改yum源
[root@Cobbler ~]# curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[root@Cobbler ~]# curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
[root@Cobbler ~]# yum -y install cobbler cobbler-web dhcp tftp-server pykickstart httpd python-django
第二个里程:安装软件
yum -y install cobbler cobbler-web dhcp tftp-server pykickstart httpd
ps:因为系统默认安装的django版本太低在,所以需要单独拿出来安装
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install django==1.8.9
systemctl start cobbler
systemctl start httpd
第三个里程:根据cobbler check命给出的提示一个一个进行修正
修改dhcp地址池
[root@Cobbler ks_mirror]# cat /etc/cobbler/dhcp.template
# ******************************************************************
# Cobbler managed dhcpd.conf file
#
# generated from cobbler dhcp.conf template ($date)
# Do NOT make changes to /etc/dhcpd.conf. Instead, make your changes
# in /etc/cobbler/dhcp.template, as /etc/dhcpd.conf will be
# overwritten.
#
# ******************************************************************ddns-update-style interim;allow booting;
allow bootp;ignore client-updates;
set vendorclass = option vendor-class-identifier;option pxe-system-type code 93 = unsigned integer 16;subnet 172.16.1.0 netmask 255.255.255.0 {option subnet-mask 255.255.255.0;range dynamic-bootp 172.16.1.100 172.16.1.254;default-lease-time 21600;max-lease-time 43200;next-server $next_server;class "pxeclients" {match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";if option pxe-system-type = 00:02 {filename "ia64/elilo.efi";} else if option pxe-system-type = 00:06 {filename "grub/grub-x86.efi";} else if option pxe-system-type = 00:07 {filename "grub/grub-x86_64.efi";} else if option pxe-system-type = 00:09 {filename "grub/grub-x86_64.efi";} else {filename "pxelinux.0";}}}
[root@Cobbler ~]# cobbler check
The following are potential configuration items that you may want to fix:
# 1与2需修改配置文件中的server与next_server,将其改成本机的IP地址即可,不能使用127.0.0.1
1 : The 'server' field in /etc/cobbler/settings must be set to something other tha
r kickstarting features will not work. This should be a resolvable hostname or IPserver as reachable by all machines that will use it.2 : For PXE to be functional, the 'next_server' field in /etc/cobbler/settings mus
mething other than 127.0.0.1, and should match the IP of the boot server on the PX
#将tftp配置文件中的disable=yes改成disable=no
3 : change 'disable' to 'no' in /etc/xinetd.d/tftp
#使用cobbler get-loaders命令即可
4 : Some network boot-loaders are missing from /var/lib/cobbler/loaders, you may r
t-loaders' to download them, or, if you only want to handle x86/x86_64 netbooting,e that you have installed a *recent* version of the syslinux package installed andis message entirely. Files in this directory, should you want to support all archuld include pxelinux.0, menu.c32, elilo.efi, and yaboot. The 'cobbler get-loaders'e easiest way to resolve these requirements.
#将rsyncd服务开启,将设置成开机启动
5 : enable and start rsyncd.service with systemctl
#忽略,历史遗留问题
6 : debmirror package is not installed, it will be required to manage debian deplo
ositories
#修改settings中的默认始初密码,使用命令chaenssl passwd -1 -salt,然后复制到配置文件中即可
7 : The default password used by the sample templates for newly installed machines
word_crypted in /etc/cobbler/settings) is still set to 'cobbler' and should be chaenssl passwd -1 -salt 'random-phrase-here' 'your-password-here'" to generate new o
#忽略,历史遗留问题
8 : fencing tools were not found, and are required to use the (optional) power man
es. install cman or fence-agents to use themRestart cobblerd and then run 'cobbler sync' to apply changes.
第四个里程:重启服务并载入修改好的配置
systemctl restart tftp.socket rsyncd.service cobblerd.service
cobbler sync
第五个里程:使用浏览器访问
https://10.0.0.203/cobbler_web
账号与密码:cobller
第六个里程:导入镜像文件
第七个里程:修改内核信息
第八个里程:添加自已写好的KS配置文件
# Cobbler for Kickstart Configurator for CentOS 7
install
url --url=$tree
text
lang en_US.UTF-8
keyboard us
zerombr
bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb quiet"
#Network information
$SNIPPET('network_config')
#network --bootproto=dhcp --device=eth0 --onboot=yes --noipv6 --hostname=CentOS7
timezone --utc Asia/Shanghai
authconfig --enableshadow --passalgo=sha512
rootpw --iscrypted $default_password_crypted
clearpart --all --initlabel
part /boot --fstype xfs --size 1024
part swap --size 1024
part / --fstype xfs --size 1 --grow
firstboot --disable
selinux --disabled
firewall --disabled
logging --level=info
reboot%pre
$SNIPPET('log_ks_pre')
$SNIPPET('kickstart_start')
$SNIPPET('pre_install_network_config')
# Enable installation monitoring
$SNIPPET('pre_anamon')
%end%packages
@^minimal
@compat-libraries
@core
@debugging
@development
bash-completion
chrony
dos2unix
kexec-tools
lrzsz
nmap
sysstat
telnet
tree
vim
wget
%end%post
systemctl disable postfix.service
%end
第九个里程:自定义系统(配置静态IP与主机名)
指定KS文件
设置主机名、DNS与网关
设置网卡IP地址,mac地址必须IP地址的MAC地址
再点击sync进行配置载入
转载于:https://www.cnblogs.com/yjiu1990/p/10668955.html
cobbler介绍与部署相关推荐
- Cobbler 3.x 部署实战
新钛云服已为您服务1338天 在大批量安装Linux服务器系统时,如果手动安装,则需要花费大量的时间,而使用PXE安装时,会相对轻松很多. Cobbler是一个将PXE整套流程合在一起的工具,可以帮我 ...
- Redis介绍及部署在CentOS7上(一)
0.Redis目录结构 1)Redis介绍及部署在CentOS7上(一) 2)Redis指令与数据结构(二) 3)Redis客户端连接以及持久化数据(三) 4)Redis高可用之主从复制实践(四) 5 ...
- Redis介绍及部署在CentOS7上(一) 1
0.Redis目录结构 1)Redis介绍及部署在CentOS7上(一) 2)Redis指令与数据结构(二) 3)Redis客户端连接以及持久化数据(三) 4)Redis高可用之主从复制实践(四) 5 ...
- Rsync下行同步+inotify实时同步介绍和部署
Rsync下行同步+inotify实时同步介绍和部署 一.Rsync 1.Rsync同步源 2.Rsync服务器 3.同步方式 二.配置rsync源 三.rsync命令 四.配置源的两种表示方法 1. ...
- docker原理介绍以及部署使用
docker原理介绍以及部署使用 1. docker简介 2. docker架构概念 3. docker安装部署 3.1 安装环境 3.2 安装步骤 4. docker使用 4.1 镜像管理 4.2 ...
- postgresql基本介绍以及部署使用
postgresql基本介绍以及部署使用 1. 基本介绍 1.1 基本信息 1.2 优势 2. 对比mysql和oracle 2.1 Postgresql VS Oracle 2.2 Postgres ...
- Ansible自动化运维工具介绍与部署
ansible自动化运维工具介绍与部署 文章目录 一.什么是自动化运维? 二.常用的自动化运维工具 2.1 Ansible 2.2 SaltStack 2.3 Puppet 2.4 三种自动化工具特点 ...
- 1、hadoop3.1.4简单介绍及部署、简单验证
Hadoop系列文章目录 1.hadoop3.1.4简单介绍及部署.简单验证 2.HDFS操作 - shell客户端 3.HDFS的使用(读写.上传.下载.遍历.查找文件.整个目录拷贝.只拷贝文件.列 ...
- 服务发现 注册中心 consul 的介绍、部署和使用
什么是服务发现 微服务的框架体系中,服务发现是不能不提的一个模块.我相信了解或者熟悉微服务的童鞋应该都知道它的重要性.这里我只是简单的提一下,毕竟这不是我们的重点.我们看下面的一幅图片: 图中,客户端 ...
最新文章
- LeetCode简单题之两个相同字符之间的最长子字符串
- 漫谈流式计算的一致性
- javascript基础 (2)
- GraphPad Prism 统计教程:简单线性回归原理
- 分布式工具的一次小升级⏫ 1
- broadcast receiver 接收设备重启意图( boot_completed Broadcast Intent)而重启定时器
- MVC项目实践,在三层架构下实现SportsStore-06,实现购物车
- 如何解决“企业内控”存在的形式化问题
- 格符\b的使用示例:每隔1秒消去1个字符
- 7.Swoole的自定义协议功能的使用
- QT creator 编辑器快捷键
- Microsoft SQL Server 2008 R2 Express
- 方舟手游非官方服务器修改器,方舟非官方服务器作弊码 | 手游网游页游攻略大全...
- 谐波减速器的结构简图及传动比说明
- 百家号自媒体文章出现哪些因素会不推荐?
- Redis之持久化实操(Linux版)
- 摄像头的像素如何计算
- 《微型计算机原理与接口技术》复习笔记(三)
- 巧用 Docker Buildx 构建多种系统架构镜像
- softmax+cross-entropy的前向计算、反向传播的公式推导
热门文章
- Python bytes 函数 - Python零基础入门教程
- java 堆栈信息_每天学习一个命令:jstack 打印 Java 进程堆栈信息
- matlab变量由非标量,matlab中的if语句
- 头部外伤指什么_什么是颅骨缺损?
- dell t40 固态系统盘_笔记本怎么安装固态硬盘 笔记本安装固态硬盘教程【详解】...
- 安徽关节式焊接机器人_上下料机器人的重要性体现在哪里?它有哪些优势?
- 只能获取fixed语句初始值_因用了Insert into select语句,美女同事被开除了!
- 安全模式 提权_记一次渗透挖洞提权实战
- 《软件需求分析(第二版)》第 2 章——客户眼中的需求 重点部分总结
- java8 Optional正确使用姿势