Install Cloudstack Management Server.

Steps to Install Cloudstack Management Server in CentOS 6.6 -----

Prerequisites -----

>Sporting Linux OS vsersion :- CentOS 6.5 / 6.6, RHEL 6.5
>Install Cent OS 6.6 with minimum 1 GB RAM , 2 Core CPU and 30 GB HDD
>Configure one static IP address to server.
>Loging to linux server with root user.

Steps to Install -----

>Install FTP Server
Source :- /media/<CentOS DVD>/Packages
Command:-#rpm -ivh vsftpd-2.2.2-12.el6_5.1.x86_64.rpm


>Restart FTP Service.
Command:- #service vsftpd restart
                      #chkconfig vsftpd on         ----- Switch on ftp service permanently

>Create CentOS installable directory for YUM repository.
Command:-#mkdir /var/ftp/pub/cent66        ----- Create new cent66 directory in pub directory

>Copy all CentOS DVD contain to /var/ftp/pub/cent66 directory
Command:-#cp -vr /media/<CentOS DVD> /* /var/ftp/pub/cent66/

>Go to Packages directory.
Command:-#cd /var/ftp/pub/cent66/Packages

>Create repodata on linux installable directory.
Command:- #cd /var/ftp/pub     
                     #createrepo --database ./cent66     ----This command will create repolist on entire cent66 directory.

>create base.repo file in /etc/yum.repos.d directory.
Command:- #vim /etc/yum.repos.d/base.repo   and put the following contains in the file.



[Base]

Name=Centos 6.6

baseurl=file:///var/ftp/pub/cent66/

gpgcheck=0

enabled=1
:wq  ----- <Save the file and exit >

 >Check the YUM repository with the following command.
Command:-#yum repolist

>Now create YUM repository for the "Cloudstack Management Server"
Command:-#mkdir /cloudstack        ------ Create cloudstack directory in / partition

>Downlaod following cloudstack installable from URL :-



>Enable repodata on cloudstack directory.
Command:- #createrepo --database /cloudstack

 >Create cloudstack.repo file in /etc/yum.repos.d/ directory
Command:- #cd /etc/yum.repos.d/
                     #vim cloudstack.repo             ----- Put the following contains in the file.


[Cloudstack]

name=Cloudstack

baseurl=file:///cloudstack/

enabled=1

gpgcheck=0
:wq                               ------ Save and exit


>Configure local DNS server ( If DNS server is not available in local Network )
  Run the following command to check the local DNS.
Command:-#hostname         ----- Verify server hostname
                    #vim /etc/host    ----- Edit the host file and put the server hostname in the file. as per following screenshot.

Save and exit.

>Restart network service 
Command:-#service network restart

>Check the hostname of the server.
Command:-#hostname -fqdn       ----- To check fqdn record of the server.

>Install Cloudstack with local YUM repository 
Command:-#yum install cloudstack-management

>Install and configure My SQL Database.
Command:-#yum install mysql-server

>Edit My SQL configuration file and put the following configuration.
Command:-#vim my.conf     ----- Add the following contains below [mysqld] section.



innodb_rollback_on_timeout=1

innodb_lock_wait_timeout=600

max_connections=350

log-bin=mysql-bin

binlog-format = 'ROW'

Save the file and exit

>Restart My SQL server
Command:-#service mysqld restart
                    #chkconfig mysqld on        ------ On Mysql service permanently 

>Run the following command to secure your installation. You can answer "Y" to all questions.
Command:-#mysql_secure_installation


>Check whether SElinux is installed on server with the following command.
Command:- #rpm -qa | grep selinux








If command omited above result than change the configuration of selinux with the following commands.

 #vim /etc/selinux/config    ------ Change the following lines.



SELINUX=permissive                     


Save the file and exit.



>Set SElinux tp permissive starting immediately, without requiring a system reboot
Command:- #setenforce permissive


> Set up the database with the following command
Command:- #cloudstack-setup-databases  cloud:<dbpassword>@localhost  --deploy-as=root:<password>

> Now that the database is set up, you can finish configuring the OS for the Management Server. This command will set up iptables, sudoers, and start the Management Server.


Command:-#cloudstack-setup-management

>Access Cloudstack with the following http URL


http://<Management server IP or Hostname>:8080/client/


Default Username :- admin
Password :- password



 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