cobbler部署以及使用
资源链接:https://pan.baidu.com/s/1yfVnuSgY5vOTh-B74tpVyw 网盘分享的文件在此
cobbler第一次操作history。
- echo "192.168.19.200 mirrors.aliyun.com" >>/etc/hosts
- curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
- curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
- yum install pykickstart
- ksvalidator anaconda-ks.cfg
- yum -y install cobbler cobbler-web dhcp tftp-server pykickstart httpd
- systemctl start cobblerd.service
- systemctl start httpd.service
- cobbler check
- openssl passwd - -salt 'random-phrase-here' ''
- cp /etc/cobbler/settings{,.ori}
- sed -i 's/server: 127.0.0.1/server: 172.16.1.202/' /etc/cobbler/settings
- sed -i 's/next_server: 127.0.0.1/next_server: 172.16.1.202/' /etc/cobbler/settings
- sed -i 's/manage_dhcp: 0/manage_dhcp: 1/' /etc/cobbler/settings
- sed -i 's/pxe_just_once: 0/pxe_just_once: 1/' /etc/cobbler/settings
- sed -ri "/default_password_crypted/s#(.*: ).*#\1\"`openssl passwd -1 -salt 'oldboy' '123456'`\"#" /etc/cobbler/settings
- sed -i 's#yes#no#' /etc/xinetd.d/tftp
- systemctl start rsyncd
- systemctl enable rsyncd
- systemctl enable tftp.socket
- systemctl start tftp.socket
- systemctl restart cobblerd.service
- cobbler check
- rz -E
- ls
- tar xfP cobbler_load_for_CentOS7.tar_\(\).gz
- cobbler check
- ps -ef|grep cobb
- systemctl start cobblerd.service
- systemctl start httpd.service
- history
- history >a.txt
1.
- echo "192.168.19.200 mirrors.aliyun.com" >>/etc/hosts
- curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
- curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
- yum install pykickstart
- ksvalidator anaconda-ks.cfg
加密拓展:
- yum -y install cobbler cobbler-web dhcp tftp-server pykickstart httpd
- systemctl start cobblerd.service
- systemctl start httpd.service
- cobbler check
别人遇到的问题:
应该是这样:
- cp /etc/cobbler/settings{,.ori}
- sed -i 's/server: 127.0.0.1/server: 172.16.1.202/' /etc/cobbler/settings
- sed -i 's/next_server: 127.0.0.1/next_server: 172.16.1.202/' /etc/cobbler/settings
- sed -i 's/manage_dhcp: 0/manage_dhcp: 1/' /etc/cobbler/settings
- sed -i 's/pxe_just_once: 0/pxe_just_once: 1/' /etc/cobbler/settings
- sed -ri "/default_password_crypted/s#(.*: ).*#\1\"`openssl passwd -1 -salt 'oldboy' '123456'`\"#" /etc/cobbler/settings
- sed -i 's#yes#no#' /etc/xinetd.d/tftp
- systemctl start rsyncd
- systemctl enable rsyncd
- systemctl enable tftp.socket
- systemctl start tftp.socket
- systemctl restart cobblerd.service
- tar xfP cobbler_load_for_CentOS7.tar.gz
- cobbler check
因为我是新开的测试机,所以ip与之前所用不同,所以我将ip修改为202结尾的
- sed -n "/168/p" /etc/sysconfig/network-scripts/ifcfg-eth[]
- sed -i "s#168#202#g" /etc/sysconfig/network-scripts/ifcfg-eth[]
- sed -n "/202/p" /etc/sysconfig/network-scripts/ifcfg-eth[]
- systemctl restart network
- cobbler check
下面是一个错误,没排出来,重装的
- sed -i.ori 's#192.168.1#172.16.1#g;22d;23d' /etc/cobbler/dhcp.template
- cobbler sync
可以登陆了,HTTP不可以登录,葛一恒的广告拦截软件拦截了也没出网页。
https://10.0.0.202/cobbler_web
账号密码默认均为cobbler
连接进入了:
给cobbler挂上镜像
- mount /dev/cdrom /mnt/
生成目录
- ls /var/www/cobbler/ks_mirror/CentOS7.-x86_64/
- df -h
- http://10.0.0.202/cblr/links/CentOS7.4-x86_64/
编辑:CentOS-7-x86_64.cfg
- # Cobbler for Kickstart Configurator for CentOS by Ma changwei
- install
- url --url=$tree
- text
- lang en_US.UTF-
- 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
- part swap --size
- part / --fstype xfs --size --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
- net.ifnames= biosdevname=
错误:
包组的配置文件出错或mac地址,ip地址等写错了
ip配错了
内存给小了,需要2G
cobbler部署以及使用的更多相关文章
- cobbler部署
1.cobbler介绍 Cobbler是一个快速网络安装linux的服务,而且在经过调整也可以支持网络安装windows.该工具使用python开发,小巧轻便(才15k行python代码),使用简单的 ...
- cobbler部署centos6与centos7系列
cobbler部署centos6与centos7系列 转载自:http://www.jianshu.com/p/a4bed77bf40d 版权声明:完全抄自 http://www.jianshu.co ...
- Cobbler部署之FAQ处理
Cobbler报错处理 通过cobbler check检查出现的报错 红色标注为报错关键信息 9.1 报错一 # cobbler check httpd does not appear to be r ...
- cobbler部署机器的默认密码
修改cobbler的默认密码: 用 openssl 生成一串密码后加入到 cobbler 的配置文件(/etc/cobbler/settings)里,替换 default_password_crypt ...
- cobbler部署安装CentOS6.8
Linux运维:cobbler : 矮哥linux运维群:93324526 学习cobbler的话,必须先搞懂kickstart,原理不是,不懂如何排错. kickstart部署请点击这里 1. Co ...
- Cobbler 部署
环境介绍 Cobbler 操作系统: Centos-7.2-x86_64 Cobbler服务器地址: 10.90.0.10 部署 Cobbler 安装 Centos epel 原 [root@node ...
- cobbler部署安装
挂载光驱 # mount /dev/cdrom /mnt/ 安装cobbler所需软件 # yum install cobbler cobbler-web dhcp tftp-server pykic ...
- cobbler部署错误总结
web 报错500 Internal Server Error解决方案 在安装使用Cobbler web界面的时候提示HTTP 500错误,也就是服务器内部错误,检查防火墙和selinux都是为关闭状 ...
- cobbler安装、部署、测试
cobbler功能介绍 官网:http://cobbler.github.io 安装 yum install -y httpd tftp dhcp cobbler cobbler-web pykick ...
随机推荐
- Sql Server 数据库扩展
1. 查询一个表的所有列名 ------查询一个表的所有列名 Select Name FROM SysColumns Where id=Object_Id('Sys_User') select t.c ...
- js中css样式兼容各个浏览器写法
在实际业务中往往需要在js中对dom添加一些样式,还需要对各个浏览器厂商的兼顾,看到一位大神写的一个方法很赞,做一个笔记 function prefixStyle(style){ var eleSty ...
- node.js学习之post文件上传 (multer中间件)
express为了性能考虑,采用按需加载的方式,引入各种中间件来完成需求, 平时解析post上传的数据时,是用body-parser. 但这个中间件有缺点,只能解析post的文本内容,(applica ...
- C++程序设计入门(上) 之对象和类
面向对象编程: 如何定义对象? 同类型对象用一 个通用的类来定义 class C { int p; int f(); }; C ca, cb; 一个类用变量来定义数据域,用函数定义行为. class ...
- Linux下onvi支持h265环境的的搭建:gsoap的安装及生产.c .h文件
1. 下载gsoap :http://www.genivia.com/products.html#notice,既Open Source gSOAP版本,并解压进入目录安装,configure后面 ...
- Hadoop源码学习笔记之NameNode启动场景流程一:源码环境搭建和项目模块及NameNode结构简单介绍
最近在跟着一个大佬学习Hadoop底层源码及架构等知识点,觉得有必要记录下来这个学习过程.想到了这个废弃已久的blog账号,决定重新开始更新. 主要分以下几步来进行源码学习: 一.搭建源码阅读环境二. ...
- JavaWeb基础—上传与下载
1.上传(不能使用BaseServlet): 上传的作用,略 上传的要求(对表单和Servlet都有要求): 1.必须使用表单,而不能是超链接,method="post" 文件明显 ...
- WPF DataGrid 样式分享
原文:WPF DataGrid 样式分享 隔行换色,鼠标单击,悬浮样式都有 先看效果: 代码: <DataGrid AutoGenerateColumns="False" N ...
- [2016北京集训试题6]网络战争-[最小割树(网络流)+kd-tree+倍增]
Description A 联邦国有 N 个州,每个州内部都有一个网络系统,有若干条网络线路,连接各个 州内部的城市. 由于 A 国的州与州之间的关系不是太好,每个州都只有首府建立了到别的州的网络.具 ...
- Caffe中Layer注册机制
Caffe内部维护一个注册表用于查找特定Layer对应的工厂函数(Layer Factory的设计用到了设计模式里的工厂模式).Caffe的Layer注册表是一组键值对(key, value)( La ...