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.
- 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:
- [Root@bogon yum.repos.d]# Cobbler Check
- The following is potential configuration items and that's want to fix:
- 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.
- 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.
- 3:selinux is enabled. Review the following wiki page for details on ensuring cobbler works correctly in your SELinux environment:
- Https://github.com/cobbler/cobbler/wiki/Selinux
- 4:change ' disable ' to ' no ' in/etc/xinetd.d/tftp
- 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.
- 6:change ' disable ' to ' no ' in/etc/xinetd.d/rsync
- 7:file/etc/xinetd.d/rsync does not exist
- 8:since Iptables May is running, ensure, 80/443, and 25151 are unblocked
- 9:debmirror package isn't installed, it'll be required to manage Debian deployments and repositories
- 10:ksvalidator is not found, install Pykickstart
- 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
- 12:fencing tools were not found, and is required to use the (optional) power management features. Install Cman or fence-agents to use them
- 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
- [Root@bogon ~]# Cobbler Report
- Distros:
- ==========
- Name:centos5.8-xen-x86_64
- Architecture:x86_64
- TFTP Boot Files: {}
- Breed:redhat
- Comment:
- Fetchable Files: {}
- INITRD:/var/www/cobbler/ks_mirror/centos5.8-x86_64/images/xen/initrd.img
- Kernel:/var/www/cobbler/ks_mirror/centos5.8-x86_64/images/xen/vmlinuz
- Kernel Options: {}
- Kernel Options (Post Install): {}
- Kickstart Metadata: {' tree ': ' http://@ @http_server @@/cblr/links/centos5.8-xen-x86_64 '}
- Management Classes: []
- OS Version:rhel5
- Owners: [' admin ']
- Red Hat Management Key: < >
- Red Hat Management Server: < >
- Template Files: {}
- Name:centos5.8-x86_64
- Architecture:x86_64
- TFTP Boot Files: {}
- Breed:redhat
- Comment:
- Fetchable Files: {}
- INITRD:/var/www/cobbler/ks_mirror/centos5.8-x86_64/images/pxeboot/initrd.img
- Kernel:/var/www/cobbler/ks_mirror/centos5.8-x86_64/images/pxeboot/vmlinuz
- Kernel Options: {}
- Kernel Options (Post Install): {}
- Kickstart Metadata: {' tree ': ' http://@ @http_server @@/cblr/links/centos5.8-x86_64 '}
- Management Classes: []
- OS Version:rhel5
- Owners: [' admin ']
- Red Hat Management Key: < >
- Red Hat Management Server: < >
- Template Files: {}
- Profiles
- ==========
- Name:centos5.8-xen-x86_64
- TFTP Boot Files: {}
- Comment:
- DHCP Tag:default
- Distribution:centos5.8-xen-x86_64
- Enable gpxe? : 0
- Enable PXE Menu? : 1
- Fetchable Files: {}
- Kernel Options: {}
- Kernel Options (Post Install): {}
- Kickstart:/VAR/LIB/COBBLER/KICKSTARTS/SAMPLE.KS Kickstart Path
- Kickstart Metadata: {}
- Management Classes: []
- Management Parameters: < >
- Name Servers: []
- Name Servers Search Path: []
- Owners: [' admin ']
- Parent Profile:
- Internal Proxy:
- Red Hat Management Key: < >
- Red Hat Management Server: < >
- Repos: []
- Server Override: < >
- Template Files: {}
- Virt Auto boot:1
- Virt bridge:xenbr0
- Virt cpus:1
- Virt Disk Driver Type:raw
- Virt File Size (GB): 5
- Virt Path:
- Virt RAM (MB): 512
- Virt TYPE:XENPV
- Name:centos5.8-x86_64
- TFTP Boot Files: {}
- Comment:
- DHCP Tag:default
- Distribution:centos5.8-x86_64
- Enable gpxe? : 0
- Enable PXE Menu? : 1
- Fetchable Files: {}
- Kernel Options: {}
- Kernel Options (Post Install): {}
- Kickstart:/VAR/LIB/COBBLER/KICKSTARTS/SAMPLE.KS
- Kickstart Metadata: {}
- Management Classes: []
- Management Parameters: < >
- Name Servers: []
- Name Servers Search Path: []
- Owners: [' admin ']
- Parent Profile:
- Internal Proxy:
- Red Hat Management Key: < >
- Red Hat Management Server: < >
- Repos: []
- Server Override: < >
- Template Files: {}
- Virt Auto boot:1
- Virt bridge:xenbr0
- Virt cpus:1
- Virt Disk Driver Type:raw
- Virt File Size (GB): 5
- Virt Path:
- Virt RAM (MB): 512
- Virt TYPE:KVM
- Systems
- ==========
- Repos
- ==========
- Images
- ==========
- Mgmtclasses:
- ==========
- Packages
- ==========
- Files
- ==========
- [Root@bogon ~]# Cobbler distro List
- Centos5.8-x86_64
- 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 ...