cobbler的搭建
install epel源
用的阿里云的epel源
https://mirrors.aliyun.com/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
yum install cobbler dhcp http -y
vim /etc/xinetd.d/tftp
service tftp
{
disable = no #默认是yes
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -B 1380 -v -s /var/lib/tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}
vim /etc/xinetd.d/rsync
service rsync
{
disable = no #默认是yes
flags = IPv6
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon
log_on_failure += USERID
}
vim /etc/httpd/conf/httpd.conf
ServerName 127.0.0.1:80
配置COBBLER
[root@localhost ~]# openssl passwd -1 -salt 'random-phrase-here' '123456' #生成root的密码
$1$random-p$mzxQ/Sx848sXgvfwJCoZM0
[root@localhost ~]# vim /etc/cobbler/settings
manage_dhcp: 1 ## 原为 0
manage_rsync: 1 ## 原为 0
next_server: 192.168.214.10 ## 本机 IP
server: 192.168.214.10 ## 本机 IP
default_password_crypted: "$1$random-p$mzxQ/Sx848sXgvfwJCoZM0" ## 生成的 root 密码
[root@localhost ~]# vim /etc/cobbler/dhcp.template
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 192.168.65.0 netmask 255.255.255.0 {
option routers 192.168.65.1;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.65.100 192.168.65.254;
default-lease-time 21600;
max-lease-time 43200;
next-server $next_server;
[root@localhost ~]# service httpd start
[root@localhost ~]# service xinetd start
[root@localhost ~]# service dhcpd start 提示失败,可以不用管
[root@localhost ~]# service cobblerd start
[root@localhost ~]# cobbler check #检查配置
Traceback (most recent call last):
File "/usr/bin/cobbler", line 36, in <module>
sys.exit(app.main())
File "/usr/lib/python2.6/site-packages/cobbler/cli.py", line 655, in main
rc = cli.run(sys.argv)
File "/usr/lib/python2.6/site-packages/cobbler/cli.py", line 270, in run
self.token = self.remote.login("", self.shared_secret)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request
return self._parse_response(h.getfile(), sock)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response
return u.close()
File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close
raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 1: "<class 'cobbler.cexceptions.CX'>:'login failed'">
[root@localhost ~]# cobbler get-loaders #解决方法
[root@localhost ~]# cobbler check ## 再次检查
The following are potential configuration items that you may want to fix:
1 : service dhcpd is not running
2 : debmirror package is not installed, it will be required to manage debian deployments and repositories
Restart cobblerd and then run 'cobbler sync' to apply changes.
## 1 :提示 dhcpd 没有运行,先不管
## 2 :提示 debmirror 没有安装。如果不是安装 debian 之类的系统,可以忽略此提示。
(如需安装,下载地址为:http://rpmfind.net/linux/rpm2html/search.php?query=debmirror)
[root@localhost ~]# cobbler sync #同步操作
[root@localhost ~]# mount /dev/cdrom /mnt #挂载镜像,导入安装源
[root@localhost ~]# cobbler import --path=/mnt/ --arch=x86_64 --name=Centos-6.8-minimal
[root@localhost ~]# cobbler list #查看profile文件
转载于:https://www.cnblogs.com/Neverstopfootsteps/p/8907437.html
cobbler的搭建相关推荐
- 运维攻城狮面试题汇总
面试题汇总 什么是运维?什么是游戏运维? 1)运维是指大型组织已经建立好的网络软硬件的维护,就是要保证业务的上线与运作的正常,在他运转的过程中,对他进行维护,他集合了网络.系统.数据库.开发.安全.监 ...
- 补鞋匠---Cobbler 服务器自动搭建
Cobbler 服务器自动搭建http://tshare365.com/archives/439.html 转载于:https://www.cnblogs.com/iiiiher/p/5744631. ...
- Cobbler自动装机服务搭建步骤
Cobbler自动装机服务搭建步骤 1.1.导入epel源 2.安装Cobbler以及其相关服务软件包 各软件作用如下 3.修改cobbler主配置文件 4.启动相关服务并关闭防火墙和selinux ...
- 搭建Cobbler无人值守安装服务器
Cobbler 介绍 Cobbler是一个Linux服务器快速网络安装的服务,而且在经过调整也可以支持网络安装windows. 该工具使用python开发,小巧轻便(才15k行python代码),可以 ...
- 基于Centos7.2搭建Cobbler自动化批量部署操作系统服务
1 Cobbler服务器端系统环境配置 1.1 系统基本环境准备 [root@cobbler-server ~]# cat /etc/redhat-release CentOS L ...
- CentOS7中搭建cobbler自动装机服务
一.实验环境一台centos7epel源网址 https://fedoraproject.org/wiki/EPEL?rd=Epel使用nat模式 二.实验步骤 1.下载epel源后进行文件夹挂载到l ...
- Centos7 使用cobbler搭建PXE网络装机服务器安装Centos、Windows、PE、自定义wim镜像
一.安装epel # 下载阿里epel源 curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo # ...
- 搭建 Cobbler 无人值守安装服务器
环境: CentOS 7 VMware Workstation Pro 14 介绍: Cobbler 的优点:自动管理各个服务器间的配置,更强大的管理功能.而且它还有 Web 管理界面,可以通过点一点 ...
- z8350键盘主机刷linux,自动化运维之系统篇:cobbler批量安装系统主机搭建
有没有想过安装系统跳过讨厌的选键盘,选鼠标,分区,配置网路,选择安装包. 大致介绍需要安装的服务有:DHCP,COBBLER. 相关目录: cobbler使用目录及文件cobbler相关配置文件/et ...
最新文章
- Simulink仿真---PMSM滞环电流控制仿真模型学习
- pytorch_lightning Default process group is not initialized
- POJ1703 Find them, Catch them 并查集
- 20145233 20145228《信息安全系统设计基础》第二次实验报告
- shell 函数的高级用法
- 轻松完成Birt报告
- sim7600ce 拨号上网测试_树莓派系列教程:通过SIM7600 4G模块NDIS拨号
- 使用pandas循环数据帧的最有效方法是什么? [重复]
- Chrome浏览器离线安装包下载
- js提取字符串中数字的三种方法
- windows远程桌面不能复制粘贴的解决办法
- WPF中的MVVM模式
- 孙子兵法的计是最早的SWOT分析,《孙子兵法》首先不是战法,而是不战之法。首先不是战胜之法,而是不败之法...
- NC 开发环境因电脑高分辨率导致系统文字、图标变小等。
- Codeforces 14E Camels (DP)
- 2022 高德地图的使用 获取当前城市
- 调查显示,41%的下一代家族企业接班人希望未来五年成为执行董事
- BMI(体重指数)计算C语言
- python爬取游戏数据,Python 爬虫之好游快爆游戏排行信息爬取
- 分布式事务、基于Best Efforts 1PC模式的事务
热门文章
- PHP留言并展示_留言页面展示功能
- JAVA面向对象OOP→构造方法、this、访问修饰符、static、方法重载、JVM内存分配、GC垃圾回收、包、样例代码
- JAVA数组、算法、递归
- SQL Server 更新数据表记录
- android滑动fragment,android中ViewPager结合Fragment进行无限滑动
- SQL面试题(1-10)oracle写的
- 特征根法--递推数列前4列
- [Python] np.ones_like(ndarray)和np.zeros_like(ndarray)
- java实现将图片读取成base64字符串,将base64字符串存储为图片。
- 《我在谷歌大脑见习机器学习的一年:Node.js创始人的尝试笔记》阅读笔记