如何安装Cobbler

发布时间:2021-10-29 11:02:58 作者:小新
来源:亿速云 阅读:188

小编给大家分享一下如何安装Cobbler,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!

简介

Cobbler 是一个免费开源系统安装部署软件,用于自动化网络安装操作系统;基于Python开发,是对 PXE 的二次封装,提供了 CLI 和 Web  的管理形式,也提供了API接口,方便二次开发使用。

它不仅可以安装物理机,同时也支持虚拟化、GuestOS的安装。另外,Cobbler还能结合 Puppet 等集中化管理软件,实现自动化管理。

Cobbler各组件关系:

如何安装Cobbler

安装过程:

cobbler由epel源提供,故此需要事先配置指向 epel 的 yum 源;cobbler 会把依赖的服务一并安装,如  tftp-server、httpd;还需要安装 dncp、rsync 等。

[root@node0 ~]# yum install cobbler pykickstart debmirror dhcp rsync cman fence-agents  [root@node0 ~]# service httpd start  [root@node0 ~]# chkconfig tftp on  [root@node0 ~]# chkconfig rsync on
  1. [root@node0 ~]# vim /etc/cobbler/settings  

  2. server: 192.168.1.4  

  3. next_server: 192.168.1.4  

  4.  

  5. [root@node0 ~]# cobbler get-loaders  

  6.  

  7. [root@node0 ~]# vim /etc/debmirror.conf  

  8. #@dists="sid";  

  9. #@arches="i386";  

  10.  

  11. [root@node0 ~]# openssl passwd -1 -salt `openssl rand -hex 4`  

  12. $1$ca6a7d72$KDte4ZK00OCLiK4PLE4tp0  

  13. [root@node0 ~]# vim /etc/cobbler/settings  

  14. default_password_crypted: "$1$ca6a7d72$KDte4ZK00OCLiK4PLE4tp0"  

  15.  

  16. [root@node0 ~]# service cobblerd start  

  17. [root@node0 ~]# chkconfig cobblerd on  

  18. [root@node0 ~]# cobbler sync 

[root@node0 ~]# cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf  [root@node0 ~]# vim /etc/dhcp/dhcpd.conf  subnet 192.168.1.0 netmask 255.255.255.0 {  range 192.168.1.1 192.168.1.100;  option routers 192.168.1.1;  next-server 192.168.1.4;  filename "pxelinux.0";  }  [root@node0 ~]# service dhcpd start  [root@node0 ~]# chkconfig dhcpd on
[root@node0 ~]# mount /mnt/hgfs/lin/CentOS-6.7-x86_64-bin-DVD1.iso /mnt/cdrom/  [root@node0 ~]# cobbler import --name=CentOS-6.7-x86_64 --path=/mnt/cdrom/ --kickstart=/root/anaconda-ks.cfg  task started: 2016-03-08_203724_import  task started (id=Media import, time=Tue Mar 8 20:37:24 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/CentOS-6.7-x86_64:  skipping import, as distro name already exists: CentOS-6.7-x86_64  No distros imported, bailing out  !!! TASK FAILED !!!
root@node0 ~]# cobbler distro list CentOS-6.7-x86_64

如何安装Cobbler

如何安装Cobbler

以上是“如何安装Cobbler”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注亿速云行业资讯频道!

推荐阅读:
  1. Cobbler自动化无人值守安装(实战!)
  2. cobbler安装报错——Exception occured: <class 'cobbler.ce

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

cobbler

上一篇:ASP.NET页面优化的方法

下一篇:Mysql数据分组排名实现的示例分析

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》