task started: 2016-04-12_090326_import
task started (id=Media import, time=Tue Apr 12 09:03:26 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/rhel63:
creating new distro: rhel63-x86_64
trying symlink: /var/www/cobbler/ks_mirror/rhel63 -> /var/www/cobbler/links/rhel63-x86_64
creating new profile: rhel63-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/rhel63 for rhel63-x86_64
processing repo at : /var/www/cobbler/ks_mirror/rhel63
need to process repo/comps: /var/www/cobbler/ks_mirror/rhel63
looking for /var/www/cobbler/ks_mirror/rhel63/repodata/*comps*.xml
Keeping repodata as-is :/var/www/cobbler/ks_mirror/rhel63/repodata
processing repo at : /var/www/cobbler/ks_mirror/rhel63/HighAvailability
need to process repo/comps: /var/www/cobbler/ks_mirror/rhel63/HighAvailability
looking for /var/www/cobbler/ks_mirror/rhel63/HighAvailability/repodata/*comps*.xml
Keeping repodata as-is :/var/www/cobbler/ks_mirror/rhel63/HighAvailability/repodata
processing repo at : /var/www/cobbler/ks_mirror/rhel63/Server
need to process repo/comps: /var/www/cobbler/ks_mirror/rhel63/Server
looking for /var/www/cobbler/ks_mirror/rhel63/Server/repodata/*comps*.xml
Keeping repodata as-is :/var/www/cobbler/ks_mirror/rhel63/Server/repodata
processing repo at : /var/www/cobbler/ks_mirror/rhel63/LoadBalancer
need to process repo/comps: /var/www/cobbler/ks_mirror/rhel63/LoadBalancer
looking for /var/www/cobbler/ks_mirror/rhel63/LoadBalancer/repodata/*comps*.xml
Keeping repodata as-is :/var/www/cobbler/ks_mirror/rhel63/LoadBalancer/repodata
processing repo at : /var/www/cobbler/ks_mirror/rhel63/ScalableFileSystem
need to process repo/comps: /var/www/cobbler/ks_mirror/rhel63/ScalableFileSystem
looking for /var/www/cobbler/ks_mirror/rhel63/ScalableFileSystem/repodata/*comps*.xml
Keeping repodata as-is :/var/www/cobbler/ks_mirror/rhel63/ScalableFileSystem/repodata
processing repo at : /var/www/cobbler/ks_mirror/rhel63/ResilientStorage
need to process repo/comps: /var/www/cobbler/ks_mirror/rhel63/ResilientStorage
looking for /var/www/cobbler/ks_mirror/rhel63/ResilientStorage/repodata/*comps*.xml
Keeping repodata as-is :/var/www/cobbler/ks_mirror/rhel63/ResilientStorage/repodata
*** TASK COMPLETE ***
#查看cobbler导入结果cobbler distro list cobbler report
#验证ks有效性,剩下的就是PXE引导测试了cobbler validateks
cobbler-web#设置Web登录,cobbler 2.6以上版本已经无需修改sed -i 's/module = authn_denyall/module = authn_configfile/g' /etc/cobbler/modules.conf
#设置Cobbler Web登录用户登录密码htdigest /etc/cobbler/users.digest "Cobbler" cobbler
Changing password for user cobbler in realm Cobbler
New password:cobbler
Re-type new password:cobbler#cobbler_web登录地址,推荐使用命令行管理{IP}/cobbler_web
Cobbler相关选项说明#Cobbler 常用命令详解cobbler check
#检查cobbler配置 cobbler sync
#同步配置到dhcp/pxe和数据目录 cobbler list
#列出所有的cobbler元素 cobbler import
#导入安装的系统镜像 cobbler report
#列出各元素的详细信息 cobbler distro
#查看导入的发行版系统信息 cobbler profile
#查看配置信息 cobbler system #查看添加的系统信息 cobbler reposync
#同步yum仓库到本地#导入镜像文件命令:
cobbler import --path=镜像路径 -- name=安装引导名 --arch=32位或64位
参数:
path 是镜像所挂载的目录
name 是导入到cobbler里面显示的名字
arch 是32位系统还是64位系统
#导入kickstart文件命令:cobbler profile add --name=list名 --distro=镜像 --kickstart=路径
参数:
name是表示添加的ks 的名字,用cobbler report可以看到这个名字
distro 是用哪个镜像,list的distros里面选择一个,需要版本相对应
kickstart 是具体的 ks 文件路径#同步DHCP、HTTPD命令:cobbler sync
注,每次修改完dhcp.template之类的配置文件需要执行一次使其生效。
#查看Cobbler列表命令:cobbler list
注,列出Cobbler所有的元素。
#删除相关列表命令:cobbler distro/profile remove --name=要删除的引导文件名
删除指定 distro , 也就是镜像
删除指定的 profile 文件,也就是 ks
#Cobbler安装后目录说明cobbler配置文件目录/etc/cobbler:
/etc/cobbler/settings #cobbler主配置文件 /etc/cobbler/iso/
#iso模板配置文件 /etc/cobbler/pxe
#pxe模板文件 /etc/cobbler/power
#电源的配置文件 /etc/cobbler/users.conf
#Web 服务授权配置文件 /etc/cobbler/users.digest
#用于web访问的用户名密码配置文件 /etc/cobbler/dhcp.template
#DHCP服务的配置模板 /etc/cobbler/dnsmasq.template
#DNS服务的配置模板 /etc/cobbler/tftpd.template
#tftp服务的配置模板 /etc/cobbler/modules.conf
#Cobbler模块配置文件cobbler数据目录/var/lib/cobbler:
/var/lib/cobbler/config/ #用于存放distros、systems、profiles等信息配置文件 /var/lib/cobbler/triggers
#用于存放用户定义的cobbler 命令 /var/lib/cobbler/kickstarts/
#默认存放kickstart文件 /var/lib/cobbler/loaders
#存放的各种引导程序镜像数据目录/var/www/cobbler:
/var/www/cobbler/ks_mirror/
#导入的发行版系统的所有数据 /var/www/cobbler/images/
#导入发行版的Kernel和initrd镜像用于远程网络启动 /var/www/cobbler/repo_mirror/
#yum仓库存储目录日志目录 /var/log/cobbler/:
/var/log/cobbler/install.log
#客户端的安装系统日志 /var/log/cobbler/cobbler.log
#cobbler日志常见问题
#多查看错误日志less /var/log/cobbler/cobbler.log
#为cobbler-web重置用户密码htdigest /etc/cobbler/users.digest "Cobbler" cobbler
#添加新用户htdigest /etc/cobbler/users.digest "Cobbler" usernam
#DHCP多网卡环境可以指定网卡vi /etc/sysconfig/dhcpd
# Command line options hereDHCPDARGS=eth0
CentOS 6上安装Cobbler及常见参数详解(5)
内容版权声明:除非注明,否则皆为本站原创文章。