Cobbler Basic Installation

Source: Internet
Author: User

Epel Source Installation
RPM-IVH epel-release-6-8.noarch.rpm
Yum-y Install cobbler httpd rsync tftp-server xinetd dhcp cobbler-web koan pykickstart* fence-agents* debmirror syslinux
$$$$$$$$$$$ Start Cobbler Service
/etc/init.d/cobblerd start
$$$$$$$$ Start httpd Service
/ETC/INIT.D/HTTPD start
$$$$$$$$$$ detection
Cobbler Check
$$$$$$$$$$$$$ Question 1:
Traceback (most recent):
File "/usr/bin/cobbler", line $, in <module>
Sys.exit (App.main ())
File "/usr/lib/python2.6/site-packages/cobbler/cli.py", line 657, in main
rc = Cli.run (SYS.ARGV)
File "/usr/lib/python2.6/site-packages/cobbler/cli.py", line +, 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 '" >
$$$$$$$$$$$$ Workaround:
Service Cobblerd Restart
Cobbler Get-loaders
$$$$$$$$$$$$$$$$$$$ Question 2:
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: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.
4:you need to set some SELinux content rules to ensure cobbler works correctly in your SELinux environment, run the Follo Wing
/usr/sbin/semanage fcontext-a-T public_content_t "/tftpboot/.*" && \
/usr/sbin/semanage fcontext-a-T public_content_t "/var/www/cobbler/images/.*"
5:change ' disable ' to ' no ' in/etc/xinetd.d/rsync
Change ' disable ' to ' no ' in/etc/xinetd.d/tftp
6:comment out ' dists ' on/etc/debmirror.conf-proper Debian support
Comment out ' arches ' on/etc/debmirror.conf-proper Debian support
7:since Iptables May is running, ensure, he, and 25151 are unblocked
8:the default Pass<a href= "http://www.it165.net/edu/ebg/" target= "_blank" class= "keylink" >word</a> used By the sample templates for newly installed machines (default_pass<a href= "http://www.it165.net/edu/ebg/" target= "_ Blank "class=" Keylink ">word</a>_crypted in/etc/cobbler/settings) is still set to ' cobbler ' and should ' changed ' , try: "OpenSSL passwd-1-salt ' random-phrase-here ' your-password-here '" to generate new one
Restart Cobblerd and then run ' Cobbler Sync ' to apply changes.
9,debmirror package isn't installed, it'll be required to manage Debian deployments and repositories
$$$$$$$$$$$$$$$$$$$$$ above this message to the effect is:
1, edit the/etc/cobbler/settings file, locate the server: option, modify to the appropriate IP address, this instance configuration IP is: 192.168.10.1
2, edit the/etc/cobbler/settings file, locate the next_server: option, modify to the appropriate IP address, this instance configuration IP is: 192.168.10.1
The settings for the 4,selinux. If the above has been turned off, SELinux will be out of control, selinux settings. If it's already closed, SELinux's out of control.
3, perform cobbler get-loaders, the system will automatically download loader program, complete the repair work of prompt 4.
5. Edit the/etc/xinetd.d/tftp file to change the configuration of the Disable field in the file from Yes to No
Edit the/etc/xinetd.d/rsync file to change the configuration of the Disable field in the file from Yes to No
6. Annotate dists and arches in the/etc/debmirror.conf file
7, open the 69,80,25151 port in Iptables. If it is only used in the internal environment, it is recommended to turn off the firewall directly
9, suggesting that Debmirror is not installed. If you are not installing a system such as Debian, this hint can be ignored if you need to install it:
Http://rpmfind.net/linux/rpm2html/search.php?query=debmirror
CentOS 6 uses the Rhel 5 package to do so.
8, modify the default password for the cobbler user, you can use the following command to generate the password and replace the password in/etc/cobbler/settings (default_password_crypted:) with the generated password. Generate Password command:
OpenSSL passwd-1-salt ' user ' password '
where "Random-phrase-here" is the interference code
$$$$$$$$$$$$$$$$$$$$$ Solutions:
1.vim/etc/cobbler/settings
server:192.168.1.20
2.vim/etc/cobbler/settings
next_server:192.168.1.20
3. Cobbler Get-loaders
4.vim/etc/sysconfig/selinuc
Selinux=disabled
5. Vim/etc/xinetd.d/rsync
Disable = no
Vim/etc/xinetd.d/tftp
Disable = no
Service xinetd Start
6.vim/etc/debmirror.conf
# @dists = "Sid";
# @arches = "i386";
7./etc/init.d/iptables Stop or
Iptables-f
Iptables-x
/etc/init.d/iptables Save
8. OpenSSL passwd-1-salt ' Maishujie ' 123456 '
$1$maishujie$mqapdf9cdu.snuvbg/ju70
Vim/etc/cobbler/settings
default_password_crypted: "$1$maishujie$mqapdf9cdu.snuvbg/ju70"
9. Ignore
If you encounter other problems, resolve them according to the error message
/etc/init.d/cobbler restart
Cobbler Sync
Cobbler Check
Show no configuration problems found. All systems go. and for normal

$$$$$$$$$$$$$$ Query Boot Port netstat-ntulp
##################### #cobbler的使用
Vim/etc/cobbler/settings
Mange_dhcp:1
Mange_tftpd:1
Pxe_just_once:1

$$$$$$$$$$$$$$$$$$$$ Custom DHCP templates (Ifconfig eth0:0 192.168.10.254/24)
Vi/etc/cobbler/dhcp.template
Subnet 192.168.10.0 netmask 255.255.255.0 {
Option routers 192.168.10.254;
Option Domain-name-servers 202.106.0.20;
Option Subnet-mask 255.255.255.0;
Range DYNAMIC-BOOTP 192.168.10.100 192.168.10.200;
Default-lease-time 21600;
Max-lease-time 43200;
Next-server $next _server;
Class "Pxeclients" {
Match if substring (option vendor-class-identifier, 0, 9) = "Pxeclient";
If option Pxe-system-type = 00:02 {
FileName "Ia64/elilo.efi";
} else if option Pxe-system-type = 00:06 {
FileName "Grub/grub-x86.efi";
} else if option Pxe-system-type = 00:07 {
FileName "Grub/grub-x86_64.efi";
} else {
FileName "pxelinux.0";
}
}

}

$$$$$$$$$$$$$$$$ Restart Server/etc/init.d/cobbler restart
Cobbler Sync
more/etc/dhcp/dhcpd.conf Validation Template Updates
More/etc/xinetd.d/tftp

$$$$$$$$$$$ Building a Directory
Yum-y Install Lrzsz
Place iOS Files directory Mkdir-pv/data/iso
RZ Select ISO File upload
Mount Directory mkdir/data/sys/centos6.4_64
Mount Mount-o loop/data/iso/centos-6.4-x86_64-bin-dvd1.iso/data/centos6.4_64
KS File placement Directory mkdir/data/ks/centos6.4_64
RZ Select KS File Upload
$$$$$$$$$$$$ Importing installation files
Cobbler Import--path=/data/sys/centos6.4_64/--name=centos6.4_64--kickstart=/data/ks/centos6.4_64/ks.cfg--arch= x86_64
Show
Task Started:2015-08-14_010049_import
Task started (Id=media import, Time=fri 14 01:00:49 2015)
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/centos6.4_i386-x86_64:
Creating new distro:centos6.4-x86_64
Trying symlink:/var/www/cobbler/ks_mirror/centos6.4_i386-x86_64-/var/www/cobbler/links/centos6.4-x86_64
Creating new profile:centos6.4-x86_64
Associating repos
Checking for rsync repo (s)
Checking for portal repo (s)
Checking for Yum repo (s)
Starting Descent into/var/www/cobbler/ks_mirror/centos6.4_i386-x86_64 for centos6.4-x86_64
Processing repo at:/var/www/cobbler/ks_mirror/centos6.4_i386-x86_64
Need to process Repo/comps:/var/www/cobbler/ks_mirror/centos6.4_i386-x86_64
Looking for/var/www/cobbler/ks_mirror/centos6.4_i386-x86_64/repodata/*comps*.xml
Keeping Repodata As-is:/var/www/cobbler/ks_mirror/centos6.4_i386-x86_64/repodata
TASK Complete * * *
From the information shown above, cobbler copies the image to a local copy and places it under the Centos-6.0-i386 directory under/var/www/cobbler/ks_mirrors. A release version named Centos-6.0-i386 and a profile file named Centos-6.0-i386 are also created.

Service xinetd Restart
$$$$$$$$$$$$$$$ Synchronous Cobbler Configuration
# Cobbler Sync
Show
Ask Started:2011-08-11_170706_sync
Task started (Id=sync, Time=thu 11 17:07:06 2011)
Running Pre-sync triggers
Cleaning trees
Removing:/var/www/cobbler/images/centos-6.0-i386
Removing:/var/lib/tftpboot/pxelinux.cfg/default
Removing:/var/lib/tftpboot/grub/images
Removing:/var/lib/tftpboot/grub/grub-x86.efi
Removing:/var/lib/tftpboot/grub/efidefault
Removing:/var/lib/tftpboot/grub/grub-x86_64.efi
Removing:/var/lib/tftpboot/images/centos-6.0-i386
Removing:/var/lib/tftpboot/s390x/profile_list
Copying bootloaders
Trying Hardlink/var/lib/cobbler/loaders/grub-x86.efi-/var/lib/tftpboot/grub/grub-x86.efi
Trying Hardlink/var/lib/cobbler/loaders/grub-x86_64.efi-/var/lib/tftpboot/grub/grub-x86_64.efi
Copying distros
Copying files for distro:centos-6.0-i386
Trying Hardlink/var/www/cobbler/ks_mirror/centos-6.0-i386/images/pxeboot/vmlinuz-/var/lib/tftpboot/images/ Centos-6.0-i386/vmlinuz
Trying Hardlink/var/www/cobbler/ks_mirror/centos-6.0-i386/images/pxeboot/initrd.img-/var/lib/tftpboot/ Images/centos-6.0-i386/initrd.img
Trying Hardlink/var/www/cobbler/ks_mirror/centos-6.0-i386/images/pxeboot/vmlinuz-/var/www/cobbler/images/ Centos-6.0-i386/vmlinuz
Trying Hardlink/var/www/cobbler/ks_mirror/centos-6.0-i386/images/pxeboot/initrd.img-/var/www/cobbler/images /centos-6.0-i386/initrd.img
Copying images
Generating PXE configuration files
Rendering DHCP Files
Generating/etc/dhcp/dhcpd.conf
Cleaning link Caches
Generating PXE menu structure
Running Post-sync triggers
Running Python triggers from/var/lib/cobbler/triggers/sync/post/*
Running Python trigger cobbler.modules.sync_post_restart_services
RUNNING:DHCPD-T-Q
Received on stdout:
Received on stderr:
Running:/ETC/RC.D/INIT.D/DHCPD restart
Received on stdout:shutting down dhcpd: [OK]
Starting dhcpd: [OK]

Received on stderr:
Running Shell triggers from/var/lib/cobbler/triggers/sync/post/*
Running Python triggers from/var/lib/cobbler/triggers/change/*
Running Python trigger Cobbler.modules.scm_track
Running Shell triggers from/var/lib/cobbler/triggers/change/*
TASK Complete * * *
Cobbler automatically initializes the work, removes the existing startup items, and then copies the loader files according to the template. Then generate the PXE configuration file, generate the DHCP configuration file, and finally restart the DHCP service.
At this point, you can use the virtual machine to test the cobbler installation.

This article from "My Sky" blog, declined reprint!

Cobbler Basic Installation

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.