Cobbler安装配置概要1.docxVIP

  • 2
  • 0
  • 约7.78千字
  • 约 9页
  • 2017-07-02 发布于湖北
  • 举报
Cobbler安装配置概要1

Cobbler自动化安装服务器系统配置一、系统要求推荐用CentOS,CentOS就是红帽子的重编译版本,CentOS5对应RHEL5,CentOS6对应RHEL6。重要的是,它完全免费,不要任何授权,安装即可使用全部功能,和RHEL一模一样,无任何限制。二、软件安装CentOS系统采用极简安装(Basic)即可,Cobbler安装完成之前请先将服务器连到互联网,因为很多软件包需要直接从互联网下载安装1、安装EPELrpm -Uvh/epel/6/x86_64/epel-release-6-8.noarch.rpm2、安装cobbler软件包yum -y install cobbler httpdxinetdtftp-servercmandebmirrorrsync?pykickstart?dnsmasq cobbler-web# cobbler的配置文件在/var/lib/cobbler/和/etc/cobbler下(不同版本可能不同)# xinetdtftp用来做tftp服务器,pxe启动需要。# httpd服务器主要存放ks文件和安装光盘。注意 /var/www/cobbler 目录必须具有足够容纳 Linux 安装文件的空间3、配置修改安装服务器操作系统的时候,系统默认机器名为localhost.localdomain,把把localhost修改为我们需要的机器名即可,如:db.localdomain3.1、修改/etc/hosts[root@db ~]# more /etc/hosts localhostdb.localdomain localhost4 localhost4.localdomain4::1 localhostdb.localdomain localhost6 localhost6.localdomain63.2、禁用Selinuxvi /etc/selinux/config把SELINUX=permissive改为SELINUX=disabled,并reboot一次3.3、禁用firewall/etc/init.d/iptables stopchkconfigiptables off3.4、/etc/xinetd.d/tftpdisable = yes3.5、/etc/xinetd.d/rsyncdisable = yes3.6、/etc/debmirror.conf把其中的如下2行注释:@dists=sid;@arches=i386;3.7、/etc/cobbler/settings找到default_password_crypted字段,将后面双引号内的加密密码重新生成并替换新密码的生成方法为:opensslpasswd -1 –salt ‘任意字符串’ ‘你自己的密码’如下几个参数全部修改为1manage_dhcp: 1manage_dns: 1manage_tftpd: 1manage_rsync: 1pxe_just_once: 1allow_dynamic_settings: 13.8、执行cobbler get-loaders[root@db ~]# cobbler get-loaderstask started: 2014-04-16_120352_get_loaderstask started (id=Download Bootloader Content, time=Wed Apr 16 12:03:52 2014)path /var/lib/cobbler/loaders/README already exists, not overwriting existing content, use --force if you wish to updatepath /var/lib/cobbler/loaders/COPYING.elilo already exists, not overwriting existing content, use --force if you wish to updatepath /var/lib/cobbler/loaders/COPYING.yaboot already exists, not overwriting existing content, use --force if you wish to updatepath /var/lib/cobbler/loaders/COPYING.syslinux already exists, not overwriting existing content, use --force if you wish to updatepath /var/lib/cobbler/loade

文档评论(0)

1亿VIP精品文档

相关文档