cobbler koan自动重装系统

Posted 程序员同行者

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了cobbler koan自动重装系统相关的知识,希望对你有一定的参考价值。

介绍
koan是kickstart-over-a-network的缩写,它是cobbler的客户端帮助程序,koan允许你通过网络提供虚拟机,也允许你重装已经存在的客户端。当运行时,koan会从远端的cobbler server获取安装信息,然后根据获取的安装信息进行安装。
1、在客户端安装koan
[[email protected] ~]# yum install -y koan
2、执行安装命令
[[email protected] ~]# koan --server=192.168.56.133 --list=profiles
- looking for Cobbler at http://192.168.56.133:80/cobbler_api
centos-7-x86_64
3、
在指定要重装的系统上执行要重装的哪个系统
[[email protected] ~]# koan --replace-self --server=192.168.56.133 --profile=centos-7-x86_64
- looking for Cobbler at http://192.168.56.130:80/cobbler_api
- reading URL: http://192.168.56.130/cblr/svc/op/ks/profile/CentOS-7-x86_64
install_tree: http://192.168.56.130/cblr/links/CentOS-7-x86_64
downloading initrd initrd.img to /boot/initrd.img_koan
url=http://192.168.56.130/cobbler/images/CentOS-7-x86_64/initrd.img
- reading URL: http://192.168.56.130/cobbler/images/CentOS-7-x86_64/initrd.img
downloading kernel vmlinuz to /boot/vmlinuz_koan
url=http://192.168.56.130/cobbler/images/CentOS-7-x86_64/vmlinuz
- reading URL: http://192.168.56.130/cobbler/images/CentOS-7-x86_64/vmlinuz
- [‘/sbin/grubby‘, ‘--add-kernel‘, ‘/boot/vmlinuz_koan‘, ‘--initrd‘, ‘/boot/initrd.img_koan‘, ‘--args‘, ‘"ksdevice=link lang= text net.ifnames=0 ks=http://192.168.56.130/cblr/svc/op/ks/profile/CentOS-7-x86_64 biosdevname=0 kssendmac "‘, ‘--copy-default‘, ‘--make-default‘, ‘--title=kick1489851371‘]
- [‘/sbin/grubby‘, ‘--update-kernel‘, ‘/boot/vmlinuz_koan‘, ‘--remove-args=root‘]
- reboot to apply changes
4、然后重启就会自动安装新系统了

修改安装引导界面提示符(小技巧)
[[email protected] ~]# vim /etc/cobbler/pxe/pxedefault.template

以上是关于cobbler koan自动重装系统的主要内容,如果未能解决你的问题,请参考以下文章

cobbler+koan

Linux自动化运维之Cobbler(自定义重装)

cobbler通过koan安装系统,VM安装失败

cobbler重装web

实战:Cobbler 无人值守自动部署系统

Cobbler自动化安装(linux)服务器