Automated Operation Koriyuki Cobbler batch deployment operating system (i) _php tutorial

Source: Internet
Author: User
Tags rsync

Automated Operation Koriyuki Cobbler batch deployment operating system (i)


Note: This article only describes the simple installation and use of cobbler, advanced operation after the time to organize.
Cobbler installed system is an earlier kickstart upgrade version, the advantages are relatively easy to configure, but also comes with a web interface easier to manage, but the installation of Cobbler-web prompt as follows:
Error:package:cobbler-web-2.6.11-1.el6.noarch (Epel)
Requires:django >= 1.4
Given the hassle of installing Django, I didn't use the Cobbler-web feature.

Environment: centos6.4
ip:192.168.1.105
Yum Source:
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

Steps:
1.
 
  
  
2.
 
  
  
  1. Cobbler Check
[Root@bogon yum.repos.d]# Cobbler Check
HTTPD does not appear to be running and proxying cobbler, or SELinux are in the. Original Traceback:
Traceback (most recent):
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:

The first line learned that httpd did not start, SELinux is not closed, so follow the prompts to do.
/etc/init.d/httpd Restart && Setenforce 0 (or directly change configuration file)

Then run cobbler check again with the following prompts:

 
 
  1. [Root@bogon yum.repos.d]# Cobbler Check
  2. The following is potential configuration items and that's want to fix:

  3. 1:the ' server ' field in/etc/cobbler/settings must is set to something other than localhost, or kickstarting features WI ll not work. This should is a resolvable hostname or IP for the boot server as reachable by all machines that would use it.
  4. 2:for PXE to be functional, the ' next_server ' field in/etc/cobbler/settings must is 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. 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 is missing from/var/lib/cobbler/loaders, you could run ' cobbler get-loaders ' to download the M, or, if you are want to handle x86/x86_64 netbooting, your may ensure so you have installed a *recent* version of the Syslinux package installed and can ignore this message entirely. Files in this directory, should want to support all architectures, should include pxelinux.0, MENU.C32, Elilo.efi, and Yaboot. The ' Cobbler get-loaders ' command is the easiest-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 is running, ensure, 80/443, and 25151 are unblocked
  12. 9:debmirror package isn't installed, it'll be required to manage Debian deployments and repositories
  13. 10:ksvalidator is not found, install Pykickstart
  14. 11:the default password used by the sample templates for newly installed machines (default_password_crypted In/etc/cobb Ler/settings) is still set to ' cobbler ' and should be changed, try: "OpenSSL passwd-1-salt ' Random-phrase-here ' Your-pa Ssword-here ' "To generate new one
  15. 12:fencing tools were not found, and is 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.
In addition to section 9.10.12 these three not special attention, others need to change, according to the hint is very simple.

3.
Modify the/etc/cobbler/dhcp.template, according to the actual situation can be configured, it is not difficult.

4.
Import Mirror
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 path
Use after import is complete
Cobbler Report Review

 
 
  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: < >
  19. Red Hat Management Server: < >
  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: < >
  36. Red Hat Management Server: < >
  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 Path
  51. Kickstart Metadata: {}
  52. Management Classes: []
  53. Management Parameters: < >
  54. Name Servers: []
  55. Name Servers Search Path: []
  56. Owners: [' admin ']
  57. Parent Profile:
  58. Internal Proxy:
  59. Red Hat Management Key: < >
  60. Red Hat Management Server: < >
  61. Repos: []
  62. Server Override: < >
  63. Template Files: {}
  64. Virt Auto boot:1
  65. Virt bridge:xenbr0
  66. Virt cpus:1
  67. Virt Disk Driver Type:raw
  68. Virt File Size (GB): 5
  69. Virt Path:
  70. Virt RAM (MB): 512
  71. Virt TYPE:XENPV

  72. Name:centos5.8-x86_64
  73. TFTP Boot Files: {}
  74. Comment:
  75. DHCP Tag:default
  76. Distribution:centos5.8-x86_64
  77. Enable gpxe? : 0
  78. Enable PXE Menu? : 1
  79. Fetchable Files: {}
  80. Kernel Options: {}
  81. Kernel Options (Post Install): {}
  82. Kickstart:/VAR/LIB/COBBLER/KICKSTARTS/SAMPLE.KS
  83. Kickstart Metadata: {}
  84. Management Classes: []
  85. Management Parameters: < >
  86. Name Servers: []
  87. Name Servers Search Path: []
  88. Owners: [' admin ']
  89. Parent Profile:
  90. Internal Proxy:
  91. Red Hat Management Key: < >
  92. Red Hat Management Server: < >
  93. Repos: []
  94. Server Override: < >
  95. Template Files: {}
  96. Virt Auto boot:1
  97. Virt bridge:xenbr0
  98. Virt cpus:1
  99. Virt Disk Driver Type:raw
  100. Virt File Size (GB): 5
  101. Virt Path:
  102. Virt RAM (MB): 512
  103. Virt TYPE:KVM


  104. Systems
  105. ==========

  106. Repos
  107. ==========

  108. Images
  109. ==========

  110. Mgmtclasses:
  111. ==========

  112. Packages
  113. ==========

  114. Files
  115. ==========


 
  
  
  1. [Root@bogon ~]# Cobbler distro List
  2. Centos5.8-x86_64
  3. Centos5.8-xen-x86_64
5. The client is automatically installed using PXE network boot.




Add:
#重命名安装选项名字:
Cobbler profile Rename--name= ' old name ' –newname= ' new name '
#册除选项:
Cobbler profile Rename--name= ' old name '




















http://www.bkjia.com/PHPjc/1110194.html www.bkjia.com true http://www.bkjia.com/PHPjc/1110194.html techarticle Automated Operation Koriyuki Cobbler batch Deployment operating system (a) Note: This article only describes the cobbler simple installation and use, advanced operations have time to organize later. Cobbler installed system is ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.