Cobbler Installation and Configuration

Cobbler Installation and Configuration.

Prerequisites.

> Installed minimum CentOS 6.5 / RHEL 6.5 Bit 64 OS
> Internet should be enabled on Linux server to download packages
> Root or sudo access to install Cobbler packages.
> YUM Server configured properly to download the packages

Steps to install Cobbler Server. 

> Disable selinux settings.
Command: #vi /etc/selinux/config                       ----- Edit config file
SELINUX=disabled                                             ----- Disabled selinux
:wq                                                                         ----- Save file and exit

  
> Stop iptables service.
Command: #service iptables stop


 > Disable iptables service from boot option
Command: #chkconfig iptables off



> Stop ip6tables service.
Command: #service ip6tables stop


> Disable ip6tables service from boot option
Command: #chkconfig ip6tables off


> Download   epel-release-6-8.noarch.rpm
 URL: https://dl.fedoraproject.org/pub/epel/6/x86_64/


> Install epel-release-6-8.noarch.rpm
Command: #rpm -ivh epel-release-6-8.noarch.rpm


> Install Cobbler , Cobbler-web interface, DHCP Server, Kikstart and few more dependent packages.
Command: #yum install cobbler cobbler-web dhcp debmirror pykickstart system-config-kickstart dhcp mod_python tftp cman -y


> Edit TFTP server configuration.
Command: #vim /etc/xinetd.d/tftp


> change the settings in tftp file
disable = no
:wq   ----- save the file and exit


> Edit rsync file.
Command: #vim /etc/xinetd.d/rsync
disable = no
wait = no

:wq save seating and exit


> Configure DHCP Server
Command: #vim /etc/dhcp/dhcpd.conf


> Add the following lines ( As per following screenshot ) in dhcpd.conf file and change the IP address / Routers IP / IP Range and Netmask as per your lab requirement. 

:wq     Save teh file and exit



> Restart DHCP service
Command: #service dhcpd restart


> Restart http service
Command: #service httpd restart



> Restart TFTP service
Command: #service xinetd restart


> Restart Cobbler service.
Command: #service cobblerd restart


> On http server service in boot process
Command: #chkconfig httpd on


> On DHCP server service in boot process
Command: #chkconfig dhcpd on



> On TFTP server service in boot process
Command: #chkconfig xinetd on


> On Cobbler service in boot process
Command: #chkconfig cobblerd on


> Change root password for default kikstart files
Command: #openssl passwd -1


> Configure Cobbler settings 
Command: #vim /etc/cobbler/settings


> Change default_password_crypted: to new password.
manage_dhcp: 1
next_server: < Cobbler server IP>
server: <Cobbler server IP >

:wq   ----- Save file and exit


> Edit dhcp.template file
Command: #vim /etc/cobbler/dhcp.template



> Do the changes ( subnet / netmask / option routers / option domain-name-servers / option subnet-mask / range dynamic-bootp / next-server ) as per your lab requirement.


:wq  -----Save file and exit

> Edit modules.conf file
Command: #vim /etc/cobbler/modules.conf


> Do the following changes available in the screenhot in modules.conf file.


:wq    ----- Save the file and exit

> Setup the username and password for the cobbler web interface ( Username is cobbler )




> Download the required network boot loaders using the following command.
Command: #cobbler get-loaders


> Edit debmirror.conf file.
Command: #vim /etc/debmirror.conf


> Disable the following lines in debmirror.conf
#@dists="sid";
#@arches="i386"; 

:wq  ----- Save file and exit



> Restart DHCP / http, Cobbler and TFTP services.
Command: #service dhcpd restart
                    #service httpd restart
                    #service xinetd restart
                    #service cobblerd restart




> Check the cobbler setup
Command: #cobbler check
Message display No Configuration problems found. All systems go. Means Cobbler installed properly.


> Restart server if required.
Command :#init 6

> Copy CentOS or any other linux .iso file to Cobbler server.
I have used WinSCP application to copy CentOs 6.5 Bit 64.iso file to Cobbler server in /root directory.


> Go to /root directory where .iso file is stored, And mount .iso in /mnt directory
Command: #cd /root
                    #mount -o loop <linux.iso> /mnt/


> Import the ISO to Cobbler server.
Command: #cobbler import --path=/mnt/ --name=CentOS_6.5-x86-64


> Once .iso import to Cobbler server. Create a New Virtual Machine / Physical server and boot the server from network to install Operatin System from Cobbler server.

> Once machine boot from Network you will get the following Cobbler bootable screen.


EOF

Comments

Popular posts from this blog

KVM Live Migration without Shared Storage

Create CentOS 6 Local package and Group package Repository

Create Linux ( LUCI ) Cluster