• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号
您的位置:首页 > 程序设计 >Android > 自动化运维之cobbler批量部署操作系统(一)

自动化运维之cobbler批量部署操作系统(一)

作者:网友 字体:[增加 减小] 来源:互联网 时间:2017-05-26

网友通过本文主要向大家介绍了cobbler部署,cobbler,cobbler是什么意思,apple cobbler,cobbler安装等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com

自动化运维之cobbler批量部署操作系统(一)


注:本文只介绍cobbler简单的安装和使用,进阶操作以后有时间再进行整理。
cobbler装机系统是较早前kickstart的升级版,优点比较容易配置,还自带web界面比较易于管理,不过安装cobbler-web时提示如下:
Error: Package: cobbler-web-2.6.11-1.el6.noarch (epel)
Requires: Django >= 1.4
鉴于安装Django比较麻烦,我就没有使用cobbler-web的功能。

环境:centos6.4
IP:192.168.1.105
yum源:
CentOS 5 x86_64
rpm -ivh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
CentOS6 x86_64:
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
CentOS6 i386:
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm

步骤:
1.
  1. yum install cobbler httpd rsync tftp-server xinetd dhcp python-ctypes -y
2.
  1. cobbler check 检验cobbler,根据提示一步步解决问题
[root@bogon yum.repos.d]# cobbler check
httpd does not appear to be running and proxying cobbler, or SELinux is in the way. Original traceback:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/cobbler/cli.py", line 252, in check_setup
s.ping()
File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib64/python2.6/xmlrpclib.py", line 1243, in request
headers
ProtocolError:

由第一行得知httpd没有启动,selinux没有关闭,所以照着提示做即可。
/etc/init.d/httpd restart && setenforce 0(或者直接更改配置文件)

然后再次运行cobbler check,提示如下:

  1. [root@bogon yum.repos.d]# cobbler check
  2. The following are potential configuration items that you may want to fix:

  3. 1 : The 'server' field in /etc/cobbler/settings must be set to something other than localhost, or kickstarting features will not work. This should be a resolvable hostname or IP for the boot server as reachable by all machines that will use it.
  4. 2 : For PXE to be functional, the 'next_server' field in /etc/cobbler/settings must be set to something other than 127.0.0.1, and should match the IP of the boot server on the PXE network.
  5. 3 : SELinux is enabled. Please review the following wiki page for details on ensuring cobbler works correctly in your SELinux environment:
  6. https://github.com/cobbler/cobbler/wiki/Selinux
  7. 4 : change 'disable' to 'no' in /etc/xinetd.d/tftp
  8. 5 : some network boot-loaders are missing from /var/lib/cobbler/loaders, you may run 'cobbler get-loaders' to download them, or, if you only want to handle x86/x86_64 netbooting, you may ensure that you have installed a *recent* version of the syslinux package installed and can ignore this message entirely. Files in this directory, should you want to support all architectures, should include pxelinux.0, menu.c32, elilo.efi, and yaboot. The 'cobbler get-loaders' command is the easiest way to resolve these requirements.
  9. 6 : change 'disable' to 'no' in /etc/xinetd.d/rsync
  10. 7 : file /etc/xinetd.d/rsync does not exist
  11. 8 : since iptables may be running, ensure 69, 80/443, and 25151 are unblocked
  12. 9 : debmirror package is not installed, it will be required to manage debian deployments and repositories
  13. 10 : ksvalidator was not found, install pykickstart
  14. 11 : The default password used by the sample templates for newly installed machines (default_password_crypted in /etc/cobbler/settings) is still set to 'cobbler' and should be changed, try: "openssl passwd -1 -salt 'random-phrase-here' 'your-password-here'" to generate new one
  15. 12 : fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them

  16. Restart cobblerd and then run 'cobbler sync' to apply changes.
除了第9.10.12这三个不用特别关注外,其他都需要修改,根据提示很简单。

3.
修改/etc/cobbler/dhcp.template ,根据实际情况配置即可,也不难。

4.
导入镜像
cobbler import --path=/media/CentOS_5.8_Final --name=CentOS5.8 --arch=x86_64
cobbler profile edit --name=centos5.4-i686-x86_64 --kickstart=kickstart路径
导入完成后使用
cobbler report查看一下

  1. [root@bogon ~]# cobbler report
  2. distros:
  3. ==========
  4. Name : CentOS5.8-xen-x86_64
  5. Architecture : x86_64
  6. TFTP Boot Files : {}
  7. Breed : redhat
  8. Comment :
  9. Fetchable Files : {}
  10. Initrd : /var/www/cobbler/ks_mirror/CentOS5.8-x86_64/images/xen/initrd.img
  11. Kernel : /var/www/cobbler/ks_mirror/CentOS5.8-x86_64/images/xen/vmlinuz
  12. Kernel Options : {}
  13. Kernel Options (Post Install) : {}
  14. Kickstart Metadata : {'tree': 'http://@@http_server@@/cblr/links/CentOS5.8-xen-x86_64'}
  15. Management Classes : []
  16. OS Version : rhel5
  17. Owners : ['admin']
  18. Red Hat Management Key : <<inherit>>
  19. Red Hat Management Server : <<inherit>>
  20. Template Files : {}

  21. Name : CentOS5.8-x86_64
  22. Architecture : x86_64
  23. TFTP Boot Files : {}
  24. Breed : redhat
  25. Comment :
  26. Fetchable Files : {}
  27. Initrd : /var/www/cobbler/ks_mirror/CentOS5.8-x86_64/images/pxeboot/initrd.img
  28. Kernel : /var/www/cobbler/ks_mirror/CentOS5.8-x86_64/images/pxeboot/vmlinuz
  29. Kernel Options : {}
  30. Kernel Options (Post Install) : {}
  31. Kickstart Metadata : {'tree': 'http://@@http_server@@/cblr/links/CentOS5.8-x86_64'}
  32. Management Classes : []
  33. OS Version : rhel5
  34. Owners : ['admin']
  35. Red Hat Management Key : <<inherit>>
  36. Red Hat Management Server : <<inherit>>
  37. Template Files : {}


  38. profiles:
  39. ==========
  40. Name : CentOS5.8-xen-x86_64
  41. TFTP Boot Files : {}
  42. Comment :
  43. DHCP Tag : default
  44. Distribution : CentOS5.8-xen-x86_64
  45. Enable gPXE? : 0
  46. Enable PXE Menu? : 1
  47. Fetchable Files : {}
  48. Kernel Options : {}
  49. Kernel Options (Post Install) : {}
  50. Kickstart : /var/lib/cobbler/kickstarts/sample.ks kickstart路径
  51. Kickstart Metadata : {}
  52. Management Class
分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • 自动化运维之cobbler批量部署操作系统(一)

相关文章

  • 2017-05-26Drawable资源的初步使用
  • 2017-05-26AsyncTask源码探究,asynctask源码
  • 2017-05-26高仿it之家新闻客户端源码,高仿it之家源码
  • 2017-05-26ARM汇编中LDR伪指令和LDR指令
  • 2017-05-26eclipse安装genymotion插件。,eclipsegenymotion
  • 2017-05-26手机安全卫士——缓存清理,安全卫士缓存清理
  • 2017-05-26Android 手机卫士--导航界面1的布局编写,android卫士
  • 2017-05-26GridView嵌套在ScrollView里只有一行的问题,gridviewscrollview
  • 2017-05-26接口回调封装,回调封装
  • 2017-05-26Android自定义ViewGroup打造各种风格的SlidingMenu

文章分类

  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号

最近更新的内容

    • VS2015墙内创建ionic2,vs2015墙ionic2
    • Android 开源库和项目 2,android开源库项目
    • Android的Message Pool是什么——源码角度分析,androidpool
    • Android之ViewTreeObserver
    • 微信支付,信支付
    • Amazon Alexa登录授权(Android),amazonandroid
    • android开发中遇到的问题汇总【九】
    • 切换网站主域名经验总结
    • Android中TextView添加删除线,androidtextview
    • android历史

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有