cobbler 安装

centos 6.5

安装cobbler服务 进行远程安装服务器

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

rpm -ivh epel-release-6-8.noarch.rpm

安装服务

yum -y install cobbler cobbler-web tftp-server xinetd pykickstart dhcp

启动httpd cobblerd

cobbler check 报错:

xmlrpclib.Fault: <Fault 1: "<class ‘cobbler.cexceptions.CX‘>:‘login failed‘">

解决方式:

重启cobbler  cobbler get-loaders

正确:

The following are potential configuration items that you may want to fix:

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

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

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

4 : change ‘disable‘ to ‘no‘ in /etc/xinetd.d/tftp

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

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

7 : comment out ‘dists‘ on /etc/debmirror.conf for proper debian support

8 : comment out ‘arches‘ on /etc/debmirror.conf for proper debian support

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

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

Restart cobblerd and then run ‘cobbler sync‘ to apply changes.

1.更改 /etc/cobbler/settings:

server: 127.0.0.1   #ip 写本机的ip

next_server: 127.0.0.1 #对应的pxeip

2. 如果上步骤 执行过 cobbler get-loaders 那么这步可以忽略

将 pxelinux.0 menu.c32 复制到 /var/lib/cobbler/loaders目录下

3./etc/xinetd.d/rsync 中的 disable 改为 no

4. 注释/etc/dedmirror.conf

@dists=”sid"

@arches=”i386"

5.设置密码

执行“openssl passwd -1 -salt $(openssl rand -hex 4)”生成密码,并用其替换/etc/cobbler/settings文件中default_password_crypted参数

把系统盘放进来

mount /dev/cdrom /media

cobbler import --path=/media/ --name=Centos6-64

[[email protected] ~]# cobbler import --path=/media/ --name=Centos6.5-x86_64

task started: 2016-05-11_201208_import

task started (id=Media import, time=Wed May 11 20:12:08 2016)

Found a candidate signature: breed=redhat, version=rhel6

Found a matching signature: breed=redhat, version=rhel6

Adding distros from path /var/www/cobbler/ks_mirror/Centos6.5-x86_64:

creating new distro: Centos6.5-x86_64

trying symlink: /var/www/cobbler/ks_mirror/Centos6.5-x86_64 -> /var/www/cobbler/links/Centos6.5-x86_64

creating new profile: Centos6.5-x86_64

associating repos

checking for rsync repo(s)

checking for rhn repo(s)

checking for yum repo(s)

starting descent into /var/www/cobbler/ks_mirror/Centos6.5-x86_64 for Centos6.5-x86_64

processing repo at : /var/www/cobbler/ks_mirror/Centos6.5-x86_64

need to process repo/comps: /var/www/cobbler/ks_mirror/Centos6.5-x86_64

looking for /var/www/cobbler/ks_mirror/Centos6.5-x86_64/repodata/*comps*.xml

Keeping repodata as-is :/var/www/cobbler/ks_mirror/Centos6.5-x86_64/repodata

*** TASK COMPLETE ***

[[email protected] ~]# cobbler distro list

Centos6-64-x86_64

Centos6.5-x86_64

service cobblerd restart

cobbler sync

时间: 2024-08-15 19:51:06

cobbler 安装的相关文章

centos 7 下 cobbler 安装

一.cobbler 介绍: Cobbler 是一个系统启动服务(boot server),可以通过网络启动(PXE)的方式用来快速安装.重装物理服务器和虚拟机,支持安装不同的 Linux 发行版和 Windows.该工具使用python开发,小巧轻便(才15k行代码),使用简单的命令即可完成PXE网络安装环境的配置,同时还可以管理 DHCP,DNS,以及yum包镜像. Linux学习,http:// linux.it.net.cn Cobbler 使用命令行方式管理,也提供了基于 Web 的界面

pxe 简介以及 cobbler安装配置自动化

PXE(CentOS 6.7):准备环境: pxe简介: PXE(preboot execute environment,预启动执行环境)是由Intel公司开发的最新技术,工作于Client/Server的网络模式,支持工作站通过网络从远端服务器下载映像,并由此支持通过网络启动操作系统,在启动过程中,终端要求服务器分配IP地址,再用TFTP(trivial file transfer protocol)或MTFTP(multicast trivial file transfer protocol

自动装机之Cobbler安装部署

运维自动化安装方面,早期一般使用人工配置pxe+dhcp+tftp配合kickstart,现在开源工具就多了,如cobbler,OpenQRM和Spacewalk.本文重点介绍Cobbler. Cobbler介绍 Cobbler是一个快速网络安装linux的服务,而且在经过调整也可以支持网络安装windows.该工具使用python开发,小巧轻便(才15k行代码),使用简单的命令即可完成PXE网络安装环境的配置,同时还可以管理DHCP,DNS,以及yum包镜像. Cobbler支持命令行管理,w

Cobbler 安装教程

Cobbler 安装篇 简要说明: Cobbler集众家之长支持众多有服务,我在这里简单的说一下Cobbler集成了哪些服务, PXE 服务 DHCP服务管理 DNS服务管理 HTTP服务管理 TFTP服务管理 Kickstart服务 yum仓库管理 电源管理 -------------------------------------------------------------------------------------------------------------------- 安装

cobbler安装centos系统

整个安装系统的流程与pxe还是一样的,只不过由手动变成了自动,各个版本之间也更好管理. 这里还是centos系统的.cobbler的大致基础使用. 环境: 平台:VirtualBox 虚拟机 服务机:CentOS7 所安装的系统:CentOS7, CentOS6 cobbler里面有几个概念要首先了解一下: distro: 用来标识一个发行版.因为安装不同版本的系统起码要用不同的内核与initrd来启动安装程序.这个就是用来区分它们的.注意distro主要是来标识不同的内核与initrd,与整个

cobbler 安装搭建,详细

一. cobbler安装准备 1. 关闭iptables与selinux 1 # chkconfig iptables off 2 # vi /etc/selinux/config SELINUX=disabled 2. 安装源准备并安装cobbler软件 说明:基础源与epel源. rpm –ivh  http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm (要装32位机器可以打开网页选择合

cobbler 安装部署

最近机房要上线几个机柜的机器,必须实现自动化装机. 一.安装 系统环境是centos6.4,采用yum安装: rpm -Uvh http://mirrors.hustunique.com/epel/6/x86_64/epel-release-6-8.noarch.rpm yum -y install cobbler  cobbler-web  httpd rsync tftp-server xinetd dhcp python-ctypes debmirror pykickstart 二.配置

cobbler安装

自己创建yum仓库 # tar zxvf puppet-cobbler.tar.gz # rm -rf /root/repodata # yum install createrepo -y # createrepo /root/puppet-cobbler # ls /root/puppet-cobbler/repodata    //已经重新生成 有repodata的目录就可以作为yum的容器 一.安装配置cobbler 1.安装依赖 # vim /etc/yum.repos.d/cobble

cobbler安装linux系统(一)

SA们现在都知道运维自动化的重要性,尤其是对于在服务器数量按几百台.几千台增加的公司而言,单单是装系统,如果不通过自动化来完成,根本是不可想象的. 运维自动化安装方面,早期一般使用人工配置pxe+dhcp+tftp配合kickstart,现在开源工具就多了,如cobbler,OpenQRM和Spacewalk.本文重点介绍Cobbler. Cobbler是一个快速网络安装linux的服务,而且在经过调整也可以支持网络安装windows.该工具使用python开发,小巧轻便(才15k行代码),使用

cobbler安装(详细版)

1.系统环境 centos-6.4 ipaddr: 10.240.240.114 gateway:10.240.240.1 2.关闭selinux  (关闭完之后最好进行一次重启) sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config 关闭防火墙 chkconfig iptables off 3. 配置obbler yum源 rpm -Uvh 'http://mirrors.ustc.edu.cn/epel/6/i386/epel