1. Installation Preparation
Yum install-y Cobbler tftp dhcp httpd cman pykickstart debmirroryum install-y Ed Patch Perl perl-compress-zlib Perl-dige ST-SHA1 perl-lockfile-simple Perl-libwww-perlyum install-y syslinux
2. Start httpd and Cobbler
[[Email protected] ~]# service httpd start [[email protected] ~]# service Cobblerd start
3, Cobbler inspection
[[email protected] ~]# cobbler checktraceback (most recent call last): File "/usr/bin/cobbler", line 36, in <module> sys.exit (App.main ()) File "/usr/lib/python2.6/site-packages/cobbler/cli.py", line 655, in main rc = cli.run (SYS.ARGV) File "/ usr/lib/python2.6/site-packages/cobbler/cli.py ", line 270, in run Self.token = self.remote.login ("", self.shared_ Secret) 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 1253, in request return self._parse_response (H.getfile (), sock) File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response return u.close () file "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close Raise fault (**self._stack[0]) xmlrpclib. fault: <fault 1: "<class ' Cobbler.cexceptions.CX ';: ' login failed '" >
The Cobblerd service needs to be restarted here, and it will be OK to check again
[[email protected] ~]# service cobblerd restart
[[email protected] ~]# cobbler check
The following are potential configuration items that you may want to fix:
1 : the ' Server 'Fieldinch /etc/Cobbler/settings must beSetTo something other than localhost,or kickstarting features won't work. Thisshould be a resolvable hostname or IP forThe boot server as reachable by any machines that would use it. change the server in/etc/cobbler/setting to the address of the Cobbler host
-
2 : Span class= "PLN" > for PXE to be functional the ' next_server ' Field in / etc / cobbler / settings must be something other than 127.0 0.1 and should match the IP of the boot server on the PXE network
##
Change the next-server in/etc/cobbler/setting to the address of the Cobbler host
3 :Some network boot-loaders is missing from/var/Lib/Cobbler/Loaders,May Run' Cobbler get-loaders 'To download them,or, ifwant to handle x86/x86_64 netbooting,You may ensure so you have installed a*recent*version of the Syslinux package installed and can ignore this message entirely. Files inchThis 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.
##此处可通过命令cobbler get-loaders修复,需要联网下载
-
4 : Span class= "PLN" > change ' disable ' No ' in / etc / xinetd . d / rsync modify
/ etc / xinetd d / rsync in Disable is no
-
5 : Span class= "PLN" > comment out ' dists ' on / etc / debmirror conf for proper Debian support
6 : comment out ‘arches‘ on /etc/debmirror.conf for proper debian support ##注释掉
/ etc / Debmirror . lines beginning with @distshearches in Conf
7 : thedefault password used by the sample templates forNewly installed machines(default_password_cryptedinch /etc/Cobbler/Settings)is stillSet to' Cobbler 'And should be changed,Try: "OpenSSL passwd-1-salt ' random-phrase-here ' your-password-here '"To generate new one uses the OpenSSL passwd-1-salt ' OpenSSL rand-hex 4 ' your password ' and then replaces the generated password with the/etc/cobbler/setting file default_p The password behind the asswd_crypted
650) this.width=650; "Src=" http://linuxu.qiniudn.com/wp-content/uploads/2015/02/ Wpid-f740dca7f0a415e5b3b5d50c28b2e721_15366359.png "style=" font-family: ' Microsoft Yahei UI ', ' Microsoft Yahei ', SimSun, ' Segoe UI ', Tahoma, Helvetica, Sans-serif, ' Microsoft Yahei ', Georgia, Helvetica, Arial, Sans-serif, ' song Body ', Pmingli U, serif;font-size:10.5pt;line-height:1.5; "border=" 0 "/>
If the display is shown, it means everything is fine.
650) this.width=650; "Src=" http://linuxu.qiniudn.com/wp-content/uploads/2015/02/ Wpid-f740dca7f0a415e5b3b5d50c28b2e721_33973d79-4504-4ddd-9a32-4948f145eb15.png "style=" font-family: ' Microsoft Yahei UI ', ' Microsoft Yahei ', SimSun, ' Segoe UI ', Tahoma, Helvetica, Sans-serif, ' Microsoft Yahei ', Georgia, Helvetica, Ar Ial, Sans-serif, ' Arial ', PMingLiU, serif;font-size:10.5pt;line-height:1.5; "border=" 0 "/>650) this.width=650;" Src= " Http://linuxu.qiniudn.com/wp-content/uploads/2015/02/wpid-f740dca7f0a415e5b3b5d50c28b2e721_ 2c275129-9498-4429-9437-fe72e6b5b2f2.png "style=" font-family: ' Microsoft Yahei UI ', ' Microsoft Yahei ', SimSun, ' Segoe UI ', Tahoma, Helvetica, Sans-serif, ' Microsoft Yahei ', Georgia, Helvetica, Arial, Sans-serif, ' Arial ', PMingLiU, serif;font-s ize:10.5pt;line-height:1.5; "border=" 0 "/>i
Configure DNCP server, this is the simplest configuration, 172.16.30.6 is the native address
650) this.width=650; "Src=" http://linuxu.qiniudn.com/wp-content/uploads/2015/02/ Wpid-f740dca7f0a415e5b3b5d50c28b2e721_18119093.png "style=" font-family: ' Microsoft Yahei UI ', ' Microsoft Yahei ', SimSun, ' Segoe UI ', Tahoma, Helvetica, Sans-serif, ' Microsoft Yahei ', Georgia, Helvetica, Arial, Sans-serif, ' song Body ', Pmingli U, serif;font-size:10.5pt;line-height:1.5; "border=" 0 "/>
Start the DHCPD service
Sevice dhcpd Start
Import Disc Contents
[Email protected] ~]# Mkdir/media/cdrom
[Email protected] ~]# mount/dev/cdrom1/media/cdrom/
[Email protected] media]# Cobbler import–path=/media/cdrom/–name= ' centos6.6′
Synchronous
Cobbler Sync
New Virtual Machine test
650) this.width=650; "Src=" http://linuxu.qiniudn.com/wp-content/uploads/2015/02/ Wpid-f740dca7f0a415e5b3b5d50c28b2e721_c70dad9d-54e4-4500-8afe-cb8c7bd64319.png "border=" 0 "/>
Cobbler command
Cobbler distro list shows the current number of distributions, each of which can have multiple profiles, which can be added by Cobbler profile Add, and the name of the installation interface is the name of the profile. Different kickstart can be set to share a distro, each different kickstart can be installed for different purposes, you can use the following command to add different functions of the profile through different kickstart
Cobbler profile add–name= ' centos-web ' –distro= ' centos6.6-x86_64′–kickstart=/root/kickstart.cfg # #绝对路径
You can view the name of an existing distro by command cobbler distro list.
This article is from the "Linuxu" blog, make sure to keep this source http://linuxu.blog.51cto.com/9471357/1613456
Configuring Cobbler Batch installation system under Linux