网友通过本文主要向大家介绍了cobbler系统使用之二高级篇的补充篇---关于kickstart文件内容的配置说明等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
cobbler系统使用之二高级篇的补充篇---关于kickstart文件内容的配置说明
5、设定安装的kickstart文件
目的
测试ceph主机的安装的kickstart文件
磁盘配置
4块500G盘做了raid5,一块600G做了raid0raid5 上做了两个vg,给ceph虚拟出两块硬盘
ks文件中part部分配置
#partpart /boot --fstype="xfs" --size=500part pv.01 --maxsize=307200part pv.02 --growvolgroup centos pv.01volgroup ceph pv.02logvol / --fstype="xfs" --size=51200 --name=root --vgname=centoslogvol swap --fstype="swap" --size=8192 --name=swap --vgname=centoslogvol /cdc --vgname=centos --size=102400 --name=cdcvol --fstype=xfs
6、设置该机器的system
设置profile使用上面的ks文件
cobbler profile edit --name=CentOS_7.2_X86_64-x86_64 --kickstart=/var/lib/cobbler/kickstarts/ceph.ks根据mac地址设置
cobbler system add --name=ceph --mac=00:22:19:69:58:27 --ip-address=192.168.1.241 --subnet=255.255.255.0 \ --gateway=192.168.1.254 --interface=em1 --static=1 --profile=CentOS_7.2_X86_64-x86_64
补充 dns设置
cobbler system edit --name=ceph --name-servers="192.168.1.230 8.8.8.8"确认
cobbler system list ceph h210 h230 h240
cobbler配置更新
cobbler sync
7、在241上安装koan,自动重装
先安装epel仓库
yum install -y epel-release再安装koan
yum install -y koan
8、在241上确认koan能访问cobbler服务器上的新配置
koan --display --server=192.168.1.164 --profile=CentOS_7.2_X86_64-x86_64- looking for Cobbler at http://192.168.1.164:80/cobbler_api- reading URL: http://192.168.1.164/cblr/svc/op/ks/profile/CentOS_7.2_X86_64-x86_64install_tree: http://192.168.1.164/cblr/links/CentOS_7.2_X86_64-x86_64 name : CentOS_7.2_X86_64-x86_64 distro : CentOS_7.2_X86_64-x86_64 kickstart : http://192.168.1.164/cblr/svc/op/ks/profile/CentOS_7.2_X86_64-x86_64 ks_meta : tree=http://@@http_server@@/cblr/links/CentOS_7.2_X86_64-x86_64 install_tree : http://192.168.1.164/cblr/links/CentOS_7.2_X86_64-x86_64 kernel : /var/www/cobbler/ks_mirror/CentOS_7.2_X86_64/images/pxeboot/vmlinuz initrd : /var/www/cobbler/ks_mirror/CentOS_7.2_X86_64/images/pxeboot/initrd.img kernel_options : ks=http://192.168.1.164/cblr/svc/op/ks/profile/CentOS_7.2_X86_64-x86_64 ksdevice=link kssendmac lang= text repos : virt_ram : 512 virt_disk_driver : raw virt_type : kvm virt_path : virt_auto_boot : 1