Friday, 27 February 2015

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

Monday, 23 February 2015

Install oVirt Engine Version 3.5

Install oVirt Engine.

Prerequisites. 

> Make sure Internet connectivity is available on management server.
> DNS Configured properly on management server and client machine.


Steps to install oVirt Engine ( Management Server ).

> Longing to CentOS server with root user and edit the hosts file to configure local DNS.
Command: #cd /etc
                    #vim hosts


 > In hosts file add the client machine and Management server Ip address and Host name entries

:wq       ------- Save file and exit vim editor..


> Download oVirt packages on Management server.
Command: #yum install http://plain.resources.ovirt.org/pub/yum-repo/ovirt-release35.rpm


> Press y to continue.


> Install ovirt-enging on Management Server.
Command: #yum -y install ovirt-engine


> Configure ovirt engine on Management Server.
Command: #engine-setup


> Press Enter to continue for default [Yes] option.


> Press Enter to continue for default [Yes] option.


> Press Enter to continue for default [Yes]  option.


> Press Enter to continue for default option.


> Press Enter to continue for default [Local] option.


> Press Enter to continue for default [Automatic] option.


> Type password for Engine admin user.


> Type yes and press Enter to continue.


> Press Enter to continue for default [Both] option.


> Press Enter to continue for default option.


> Press Enter to continue for default [Yes] option.


> Press Enter to continue for default [Automatic] option.


> Press Enter to continue for default [Yes] option.


> Press Enter to continue for default [/var/lib/exports/iso] option.


> Press Enter to continue for default option.


> Press Enter to continue for default [ISO_DOMAIN] option.


> Once the configuration finish you will get following configuration preview.
Press Enter to continue.


> Use http or https URLs to connect oVirt Engine. Find the following screen shots for more URL details.


> On any machine open Firefox browser and type the oVirt Engine URL to connect. Click on Administrator Portal to configure further KVM server settings.


> Type username admin and password < admin password > which was set at the time of installation.


> Following screen will open once you loging to oVirt Engine portal.




> Add KVM Host in oVirt Engine.
In oVirt Engine URL, Click on Hosts tab and than click on New tab.
Provide relative KVM Host server information in New Host window.
Note :- Make sure oVirt Engine client software configured on KVM Host before adding to oVirt Engine.
Once finish press OK to continue.


> Once KVM Host added in oVirt Engine, It will take time to initialize and install agent software on the Host.


EOF