X

How To Install Apache CloudStack Management Server on CentOS 6.5

As the latest technology is cloud computing. So now I have to show you can install Apache CloudStack management Server in CentOS 6.5. Apache CloudStack is very strong cloud computing system. Now follow this step by step installation process.

Install CentOS 6.5 on your virtual environment.
Prepare NFS Server For CloudStack Management Server

CloudStack Management Server installation system requirements on CentOS 6.5.

CloudStack Management Server requirements:

ClounStack management server and storage must fulfill below requirements.

  • Operating system [CentOS 6.5]
  • 64-bit x86 [Maximum core for more best preference]
  • 4GB memory [Used maximum RAM for best performance]
  • 250 GB of local disk [Recommended Disk Space 500GB]
  • At least 1 NIC [Local LAN]
  • Configure IP address [Static IP address]
  • Fully qualified domain name [e.g. CloudST-CentOS.local       CloudST-CentOS]

CloudStack Host/Hypervisor System Requirements:

  • Must be support HVM [Intel-VT or AMD-V enabled]
  • 64-bit x86 CPU [Maximum core for more best preference]
  • Hardware virtualization support required [Software executed on these virtual machines]
  • 4 GB of memory [Must be increase your RAM]
  • 36 GB of local disk [Must be increase your local disk]
  • At least 1 NIC [configure two NIC such as LAN and WAN]
  • Installed hypervisor software [e.g. Xen Server or another virtualization]
  • When installed hypervisor software, then can’t create or running any vm.

Now  have to show step by step configure cloudStack management server on CentOS 6.5.

Step #01: Must be configure static ip address.

[root@CloudST-CentOS ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0

Change hostname open hosts file command line. Example : CloudST-CentOS.local       CloudST-CentOS

[root@CloudST-CentOS ~]# vi /etc/hosts

All config change then reboot your machine.

Step #02: Install ntp server via command line.

[root@CloudST-CentOS ~]# yum -y install ntp

Check config ntpd service using command below.

[root@CloudST-CentOS ~]# chkconfig ntpd on

Service ntpd start using command below.

[root@CloudST-CentOS ~]# service ntpd start

Step #03: Add CloudStack RPM package repository for updates when the installation process ruining.

[root@CloudST-CentOS ~]# vi /etc/yum.repos.d/cloudstack.repo

Insert below lines into cloudstack.repo file

[cloudstack]
name=cloudstack
baseurl=http://cloudstack.apt-get.eu/centos/6/4.9/
enabled=1
gpgcheck=0

Add the public key to the trusted keys.

[root@CloudST-CentOS ~]# wget -O – http://cloudstack.apt-get.eu/release.asc|apt-key add –

Step #04: Configure NFS for manage primary and secondary storage. Install command below:

[root@CloudST-CentOS ~]#  yum -y install nfs-utils

Create two directory for primary and secondary storage. Example command below:

[root@CloudST-CentOS ~]# mkdir -p /mnt/primary /mnt/secondary

Now permanent mount into exports file. Open exports file

[root@CloudST-CentOS ~]#  vi /etc/exports

Insert below lines into exports file.

/mnt/secondary 10.44.0.0/16(rw,async,no_root_squash,no_subtree_check)
/mnt/primary 10.44.0.0/16(rw,async,no_root_squash,no_subtree_check)

Step #05: Configure firewall for incoming NFS connections.

[root@CloudST-CentOS ~]#  vi /etc/sysconfig/iptables

Insert all below lines into iptables file.

#Apache CloudStack
-A INPUT -s 10.44.0.0/16 -p udp -m state --state NEW -m udp --dport 111 -j ACCEPT
-A INPUT -s 10.44.0.0/16 -p tcp -m state --state NEW -m tcp --dport 111 -j ACCEPT
-A INPUT -s 10.44.0.0/16 -p tcp -m state --state NEW -m tcp --dport 2049 -j ACCEPT
-A INPUT -s 10.44.0.0/16 -p tcp -m state --state NEW -m tcp --dport 32803 -j ACCEPT
-A INPUT -s 10.44.0.0/16 -p udp -m state --state NEW -m udp --dport 32769 -j ACCEPT
-A INPUT -s 10.44.0.0/16 -p tcp -m state --state NEW -m tcp --dport 892 -j ACCEPT
-A INPUT -s 10.44.0.0/16 -p udp -m state --state NEW -m udp --dport 892 -j ACCEPT
-A INPUT -s 10.44.0.0/16 -p tcp -m state --state NEW -m tcp --dport 875 -j ACCEPT
-A INPUT -s 10.44.0.0/16 -p udp -m state --state NEW -m udp --dport 875 -j ACCEPT
-A INPUT -s 10.44.0.0/16 -p tcp -m state --state NEW -m tcp --dport 662 -j ACCEPT
-A INPUT -s 10.44.0.0/16 -p udp -m state --state NEW -m udp --dport 662 -j ACCEPT
-A FORWARD -j REJECT --reject-with icmp-host-prohibited

 iptables service restart command
[root@CloudST-CentOS ~]# service iptables restart

RPC bind service start

[root@CloudST-CentOS ~]# service rpcbind start

Check config RPC bind  on

[root@CloudST-CentOS ~]# chkconfig rpcbind on

Service NFS start

[root@CloudST-CentOS ~]# service nfs start

Check config NFS on

[root@CloudST-CentOS ~]# chkconfig nfs on

Step #06: Install mysql db service with command line.

[root@CloudST-CentOS ~]# yum -y install mysql-server

Open my.cnf file vi /etc/my.cnf

Insert all below lines mysqld section

innodb_rollback_on_timeout=1
innodb_lock_wait_timeout=600
max_connections=350
log-bin=mysql-bin
binlog-format = 'ROW'

Now start mysql service command below.

[root@CloudST-CentOS ~]# service mysqld start

Check config mysql on

[root@CloudST-CentOS ~]# chkconfig mysqld on

Step #07: Edit mysql repo file for update from source. Open vi /etc/yum.repos.d/mysql.repo

Insert all below lines into mysql.repo file.

[mysql-connectors-community]
name=MySQL Community connectors
baseurl=http://repo.mysql.com/yum/mysql-connectors-community/el/$releasever/$basearch/
enabled=1
gpgcheck=1

Now add mysql public key from command below.

[root@CloudST-CentOS ~]#  rpm --import http://repo.mysql.com/RPM-GPG-KEY-mysql

Install mysql connector python command below.

[root@CloudST-CentOS ~]#  yum install mysql-connector-python

Step #08: Now main installation command on CloudStack Management Server

[root@CloudST-CentOS ~]# yum -y install cloudstack-management

If you show error message below:

Trying other mirror.
To address this issue please refer to the below knowledge base article
https://access.redhat.com/articles/1320623
If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

Solution : rm -rf /var/cache/yum/*

Then again start your installation command

[root@CloudST-CentOS ~]# yum -y install cloudstack-management

After CloudStack Management server installation complete then setup cloud database command.

[root@CloudST-CentOS ~]#  cloudstack-setup-databases cloud:passw0rd@localhost --deploy-as=root

Check successfully install your Cloud Management system command below.

[root@CloudST-CentOS ~]# cloudstack-setup-management

All  are ok then finish installation process from terminal. Next step goto your browser and type your Cloud srver IP address and default port like as below.

http://Your_Server_IP:8080/client/

 

CloudStack Management Server default user name and password:

User name : admin
Password : password

If face any problem then see my YouTube video and Subscribe my channel. Please subscribe my channel for more update.

0 0 votes
Article Rating
Admin: I am system administrator as Windows and Linux platform. I have 4 years skilled from the professional period. I have to configure Linux based system such as an Asterisk VOIP system, Network monitoring tools (ZABBIX), Virtualization (XEN Server), Cloud computing (Apache CloudStack) etc. Now share my professional skill each interested person. Thanks to all.
Leave a Comment