挂载光驱

# mount /dev/cdrom /mnt/

安装cobbler所需软件

# yum install cobbler cobbler-web dhcp tftp-server pykickstart httpd -y

出现一下报错需要手动指定版本安装Django

cobbler-web-2.6.-.el6.noarch (epel)            Requires: Django >= 1.4

# pip install Django==1.5.

重启httpd服务

# /etc/init.d/httpd restart

启动cobbler

# /etc/init.d/cobblerd start

# cobbler check

 : 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.

 : 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.

 : 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., menu.c32, elilo.efi, and yaboot. The 'cobbler get-loaders' command is the easiest way to resolve these requirements.

 : change 'disable' to 'no' in /etc/xinetd.d/rsync

 : file /etc/xinetd.d/rsync does not exist

 : debmirror package is not installed, it will be required to manage debian deployments and repositories

 : 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

 : fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them

修改cobbler设置的配置

vim /etc/cobbler/settings

server: 10.0.0.7

next_server: 10.0.0.7

manage_dhcp: 

# openssl passwd - -salt 'oldboy' 'oldboy'

$$oldboy$fXF8f078vI9J/q9XyXA8e/

default_password_crypted: "$1$oldboy$fXF8f078vI9J/q9XyXA8e/"

修改xinetd 的rsync配置

# vim /etc/xinetd.d/rsync

disable=no

重启 xinetd

# /etc/init.d/xinetd restart

重启cobbler

# /etc/init.d/cobblerd restart

再次check一下

 : 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., menu.c32, elilo.efi, and yaboot. The 'cobbler get-loaders' command is the easiest way to resolve these requirements.

 : file /etc/xinetd.d/rsync does not exist #其实存在忽略

 : debmirror package is not installed, it will be required to manage debian deployments and repositories

 : fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them

其他几个可以忽略

更dhcp模板

# vim /etc/cobbler/dhcp.template

subnet 10.0.0.0 netmask 255.255.255.0 {

     option routers             10.0.0.2;

     option domain-name-servers 114.114.114.114;

     option subnet-mask         255.255.255.0;

     range dynamic-bootp        10.0.0.100 10.0.0.200;

同步配置 自动生成dhcpd.conf

# cobbler sync

# cat /etc/dhcp/dhcpd.conf

cobbler日志

[root@linux-node1 cobbler]# cd /var/log/cobbler/

[root@linux-node1 cobbler]# ls

anamon  cobbler.log  kicklog  syslog  tasks

导入镜像

# cobbler import --path=/mnt/  --name=CentOS-7.1-x86_64  --arch=x86_64

# cd  /var/www/cobbler/ks_mirror/

# ls

上传配置文件

# cd /var/lib/cobbler/kickstarts/

# rz

rz waiting to receive.

Starting zmodem transfer.  Press Ctrl+C to cancel.

Transferring cobbler-CentOS-7.1-x86_64.cfg...

  %        KB        KB/sec    ::        Errors  

改名

cd /var/lib/cobbler/kickstarts/

# mv cobbler-CentOS-7.1-x86_64.cfg CentOS-7.1-x86_64.cfg

# cobbler list

# cobbler profile report

# cobbler profile edit --help

设置cobbler的参数

#cobbler profile edit --name=CentOS-7.1-x86_64 --kickstart=/var/lib/cobbler/kickstarts/CentOS-7.1-x86_64.cfg   

删除一个错误的镜像

# cobbler profile remove --name=CentOS-7.1-CentOS-7.1-x86_64

更改网卡名为eth0

#  cobbler profile edit --name=CentOS-7.1-x86_64 --kopts='net.ifnames=0 biosdevname=0'

再次同步配置

# cobbler sync

电源固件开机

设置网卡启动 用加号控制 移到最上面 保存退出

修改Cobbler提示

# vim /etc/cobbler/pxe/pxedefault.template

MENU TITLE Cobbler By BenjaminYang | http://www.cnblogs.com/benjamin77/

同步cobbler

# cobbler sync

cobbler部署安装的更多相关文章

  1. cobbler部署安装CentOS6.8

    Linux运维:cobbler : 矮哥linux运维群:93324526 学习cobbler的话,必须先搞懂kickstart,原理不是,不懂如何排错. kickstart部署请点击这里 1. Co ...

  2. Cobbler自动化安装部署系统

    自动化安装部署 https://www.cnblogs.com/nulige/p/6796593.html PXE+Kickstart工作原理 pxe+kickstart工作流程 网卡上的pxe芯片有 ...

  3. 末学者笔记--Centos7系统部署cobbler批量安装系统

      [前言]: cobbler是一个可以实现批量安装系统的Linux应用程序.它有别于pxe+kickstart,cobbler可以实现同个服务器批量安装不同操作系统版本. 系统环境准备及其下载cob ...

  4. 基于CentOS7系统部署cobbler批量安装系统(week3_day5_part1)-技术流ken

    前言 cobbler是一个可以实现批量安装系统的Linux应用程序.它有别于pxe+kickstart,cobbler可以实现同个服务器批量安装不同操作系统版本. 系统环境准备及其下载cobbler ...

  5. centos7系统部署cobbler批量安装系统

    系统环境: 一.开启两个网卡.一个仅主机模式,一个桥接模式,主机模式对内提供cobbler服务 [root@localhost ~]# ip a 1: lo: <LOOPBACK,UP,LOWE ...

  6. 基于Centos7系统部署cobbler批量安装系统

    前言 cobbler是一个可以实现批量安装系统的Linux应用程序.它有别于pxe+kickstart,cobbler可以实现同个服务器批量安装不同操作系统版本 系统环境的准备及下载cobbler 一 ...

  7. 006-(成功环境记录)基于Centos7系统部署cobbler批量安装系统

    1.1 cobbler简介 Cobbler是一个Linux服务器安装的服务,可以通过网络启动(PXE)的方式来快速安装.重装物理服务器和虚拟机,同时还可以管理DHCP,DNS等. Cobbler可以使 ...

  8. Cobbler批量安装Ubuntu/CentOS系统

    2013-07-25    一.安装和修改cobbler配置 1. Cobbler不在CentOS的基本源中,需要导入EPEL源升级软件包, 确保epel-release包的版本为最新,当前最新版本为 ...

  9. cobbler部署

    1.cobbler介绍 Cobbler是一个快速网络安装linux的服务,而且在经过调整也可以支持网络安装windows.该工具使用python开发,小巧轻便(才15k行python代码),使用简单的 ...

随机推荐

  1. ExtJS6.0扩展日期选择控件为也可以选择时间

    PS:ExtJS自带的日期选择控件只能够选择日期,但是现在的需求需要精确到秒,所以在网上搜索了一些例子(大部分是4.0的)作为参考,然后改出了6.0可用的一个日期时间选择控件. 1.找到extjs6. ...

  2. Unity3D - UGUI实现Tab键切换输入框、按钮(按Tab键切换高亮显示的UI)

    1.在Hierarchy面板创建能被选中的UI(Button.InputField等). 2.在Canvas上创建C#脚本 TabCutPichon. 3.编写脚本. using System.Col ...

  3. 【SSH】——hql的使用方式及实现原理

    [含义] hql,即Hibernate Query  Language.它与我们熟知的sql很类似,它最大的特点就是对查询进行了面向对象的封装,下面会在具体例子中说明. sql查询的是数据库中的表或字 ...

  4. ARC075 E.Meaningful Mean(树状数组)

    题目大意:给定n和k,问an中有多少子区间的平均值大于等于k 很巧妙的一个式子,就是如果一个区间[l, r]满足条件 那么则有 sum[r] - sum[l-1] >= (r-l+1)*k 整理 ...

  5. 02.Java面向对象问题

    目录介绍 2.0.0.1 重载和重写的区别?重载和重写绑定机制有何区别?父类的静态方法能否被子类重写? 2.0.0.2 封装.继承.多态分别是什么? 2.0.0.3 接口和抽象类的区别是什么?接口的意 ...

  6. BZOJ 1030 文本生成器 | 在AC自动机上跑DP

    题目: http://www.lydsy.com/JudgeOnline/problem.php?id=1030 题解: 鸽 #include<cstdio> #include<al ...

  7. CF858F Wizard's Tour 解题报告

    题目描述 给定一张 \(n\) 个点 \(m\) 条边的无向图,每条边连接两个顶点,保证无重边自环,不保证连通. 你想在这张图上进行若干次旅游,每次旅游可以任选一个点 \(x\) 作为起点,再走到一个 ...

  8. water 解题报告

    water 题目描述 有一块矩形土地被划分成\(n\times m\)个正方形小块.这些小块高低不平,每一小块都有自己的高度.水流可以由任意一块地流向周围四个方向的四块地中,但是不能直接流入对角相连的 ...

  9. ExtJS 4.1 TabPanel动态加载页面并执行脚本【转】

    ExtJS 4.1 TabPanel动态加载页面并执行脚本 按照官方示例,可以动态加载页面,可是脚本不执行,于是查SDK.google,发现scripts需要设置为true,于是设置该属性,整个代码如 ...

  10. Why is the ibdata1 file continuously growing in MySQL?

    We receive this question about the ibdata1 file in MySQL very often in Percona Support. The panic st ...