cobbler配置.docx

上传人:b****4 文档编号:2949642 上传时间:2022-11-16 格式:DOCX 页数:12 大小:407.37KB
下载 相关 举报
cobbler配置.docx_第1页
第1页 / 共12页
cobbler配置.docx_第2页
第2页 / 共12页
cobbler配置.docx_第3页
第3页 / 共12页
cobbler配置.docx_第4页
第4页 / 共12页
cobbler配置.docx_第5页
第5页 / 共12页
点击查看更多>>
下载资源
资源描述

cobbler配置.docx

《cobbler配置.docx》由会员分享,可在线阅读,更多相关《cobbler配置.docx(12页珍藏版)》请在冰豆网上搜索。

cobbler配置.docx

cobbler配置

Cobbler无人值守安装CentOS

原始系统:

Centos6.3-x86_64-minimal版本

系统更新后是centos6.7

1、更新系统

2、安装cobbler所需要的服务

3、配置epelyum源,使用阿里云yum源。

4、安装cobbler

5、关闭防火墙和selinux

临时关闭selinux

永久关闭可修改Selinux配置文件

6、启动cobbler

7、启动httpd服务

但是没有提示启动成功,这里需要修改配置文件,/etc/httpd/conf/httpd.conf,

添加ServerName80,打开端口,再重启ok。

8、检查cobbler配置,cobblercheck

出现报错,别急,需要重启cobbler就可以

重启后出现一堆提示:

[root@localhost~]#cobblercheck

Thefollowingarepotentialconfigurationitemsthatyoumaywanttofix:

1:

The'server'fieldin/etc/cobbler/settingsmustbesettosomethingotherthanlocalhost,orkickstartingfeatureswillnotwork.ThisshouldbearesolvablehostnameorIPforthebootserverasreachablebyallmachinesthatwilluseit.

编辑/etc/cobbler/setting文件,找到server选项,将ip127.0.0.1修改成本地ip。

2:

ForPXEtobefunctional,the'next_server'fieldin/etc/cobbler/settingsmustbesettosomethingotherthan127.0.0.1,andshouldmatchtheIPofthebootserveronthePXEnetwork.

编辑/etc/cobbler/setting文件,找到next_server选项,将ip127.0.0.1修改成本地ip.

3:

change'disable'to'no'in/etc/xinetd.d/tftp

编辑/etc/xinetd.d/tftp,将disable=yes改成no

4:

somenetworkboot-loadersaremissingfrom/var/lib/cobbler/loaders,youmayrun'cobblerget-loaders'todownloadthem,or,ifyouonlywanttohandlex86/x86_64netbooting,youmayensurethatyouhaveinstalleda*recent*versionofthesyslinuxpackageinstalledandcanignorethismessageentirely.Filesinthisdirectory,shouldyouwanttosupportallarchitectures,shouldincludepxelinux.0,menu.c32,elilo.efi,andyaboot.The'cobblerget-loaders'commandistheeasiestwaytoresolvetheserequirements.

经过网上查找,这个cobbler的一个bug,需要执行命令:

5:

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

编辑/etc/xinetd.d/rsync文件,将disable=yes改成no

6:

debmirrorpackageisnotinstalled,itwillberequiredtomanagedebiandeploymentsandrepositories

这个提示不用管,因为不用debian系统。

如用到debian,需要安装debmirror包

7:

ksvalidatorwasnotfound,installpykickstart

需要安装pykickstart

8:

Thedefaultpasswordusedbythesampletemplatesfornewlyinstalledmachines(default_password_cryptedin/etc/cobbler/settings)isstillsetto'cobbler'andshouldbechanged,try:

"opensslpasswd-1-salt'random-phrase-here''your-password-here'"togeneratenewone

修改cobbler用户的默认密码,其中“random-phrase-here”为干扰码

使用生成后的密码替换/etc/cobbler/settings中的密码

9:

fencingtoolswerenotfound,andarerequiredtousethe(optional)powermanagementfeatures.installcmanorfence-agentstousethem

安装fence-agents

Restartcobblerdandthenrun'cobblersync'toapplychanges.

重启cobblerd

执行命令:

cobblersync,让配置同步生效

9、挂载镜像

新建/iso目录用来放镜像

由于是虚拟机中实验,利用Xftp工具将镜像上传到/iso目录中。

给镜像755的权限

将镜像挂载到/mnt目录中

10、导入镜像

Cobbler会把要安装的iso镜像导入到源安装目录/var/www/cobbler/ks_mirror中。

命令说明:

cobblerimport--path=/mnt--name=CentOS5.8--arch=x86_64

可mancobbler查看import的配置说明

--path:

挂载点

--name:

给安装源定义名字,安装源名字唯一,不能重复

--arch:

指定安装源是32位还是64位,目前支持的选项有:

 x86│x86_64│ia64

查看导入的安装源列表:

11、配置dhcp服务

1、修改cobbler配置,让cobbler来管理dhcp服务,编辑文件/etc/cobbler/settings

将manage_dhcp:

0修改为1。

2、编辑/etc/cobbler/dhcp.template,此文件是cobbler管理dhcp的模板,

Ip地址根据自己环境来设定。

3、重启xinetd

4、同步cobbler配置

[root@localhost~]#cobblersync

taskstarted:

2015-09-20_040641_sync

taskstarted(id=Sync,time=SunSep2004:

06:

412015)

runningpre-synctriggers

cleaningtrees

removing:

/var/www/cobbler/images/CentOS5.8-xen-x86_64

removing:

/var/www/cobbler/images/CentOS5.8-x86_64

removing:

/var/lib/tftpboot/pxelinux.cfg/default

removing:

/var/lib/tftpboot/grub/grub-x86_64.efi

removing:

/var/lib/tftpboot/grub/grub-x86.efi

removing:

/var/lib/tftpboot/grub/efidefault

removing:

/var/lib/tftpboot/grub/images

removing:

/var/lib/tftpboot/images/CentOS5.8-xen-x86_64

removing:

/var/lib/tftpboot/images/CentOS5.8-x86_64

removing:

/var/lib/tftpboot/s390x/profile_list

copyingbootloaders

tryinghardlink/var/lib/cobbler/loaders/grub-x86_64.efi->/var/lib/tftpboot/grub/grub-x86_64.efi

tryinghardlink/var/lib/cobbler/loaders/grub-x86.efi->/var/lib/tftpboot/grub/grub-x86.efi

copyingdistrostotftpboot

copyingfilesfordistro:

CentOS5.8-xen-x86_64

tryinghardlink/var/www/cobbler/ks_mirror/CentOS5.8-x86_64/images/xen/vmlinuz->/var/lib/tftpboot/images/CentOS5.8-xen-x86_64/vmlinuz

tryinghardlink/var/www/cobbler/ks_mirror/CentOS5.8-x86_64/images/xen/initrd.img->/var/lib/tftpboot/images/CentOS5.8-xen-x86_64/initrd.img

copyingfilesfordistro:

CentOS5.8-x86_64

tryinghardlink/var/www/cobbler/ks_mirror/CentOS5.8-x86_64/images/pxeboot/vmlinuz->/var/lib/tftpboot/images/CentOS5.8-x86_64/vmlinuz

tryinghardlink/var/www/cobbler/ks_mirror/CentOS5.8-x86_64/images/pxeboot/initrd.img->/var/lib/tftpboot/images/CentOS5.8-x86_64/initrd.img

copyingimages

generatingPXEconfigurationfiles

generatingPXEmenustructure

copyingfilesfordistro:

CentOS5.8-xen-x86_64

tryinghardlink/var/www/cobbler/ks_mirror/CentOS5.8-x86_

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 医药卫生 > 基础医学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1