How To Install Apache CloudStack Management Server on CentOS 6.5

Spread the love

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.

 How To Install CloudStack Management Server 4.9 on Ubuntu 14.04

 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.

[[email protected] ~]#   vi /etc/sysconfig/network-scripts/ifcfg-eth0

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

[[email protected] ~]#  vi /etc/hosts

All config change then reboot your machine.

Step #02: Install ntp server via command line.

[[email protected] ~]#  yum -y install ntp

Check config ntpd service using command below.

[[email protected] ~]#  chkconfig ntpd on

Service ntpd start using command below.

[[email protected] ~]#  service ntpd start

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

  [[email protected] ~]# vi /etc/yum.repos.d/cloudstack.repo

Insert below lines into cloudstack.repo file


Add the public key to the trusted keys.

[[email protected] ~]#  wget -O –|apt-key add –

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

[[email protected] ~]#   yum -y install nfs-utils

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

[[email protected] ~]#  mkdir -p /mnt/primary /mnt/secondary

Now permanent mount into exports file. Open exports file

[[email protected] ~]#   vi /etc/exports

Insert below lines into exports file.


Step #05: Configure firewall for incoming NFS connections.

[[email protected] ~]#   vi /etc/sysconfig/iptables

Insert all below lines into iptables file.

#Apache CloudStack
-A INPUT -s -p udp -m state --state NEW -m udp --dport 111 -j ACCEPT
-A INPUT -s -p tcp -m state --state NEW -m tcp --dport 111 -j ACCEPT
-A INPUT -s -p tcp -m state --state NEW -m tcp --dport 2049 -j ACCEPT
-A INPUT -s -p tcp -m state --state NEW -m tcp --dport 32803 -j ACCEPT
-A INPUT -s -p udp -m state --state NEW -m udp --dport 32769 -j ACCEPT
-A INPUT -s -p tcp -m state --state NEW -m tcp --dport 892 -j ACCEPT
-A INPUT -s -p udp -m state --state NEW -m udp --dport 892 -j ACCEPT
-A INPUT -s -p tcp -m state --state NEW -m tcp --dport 875 -j ACCEPT
-A INPUT -s -p udp -m state --state NEW -m udp --dport 875 -j ACCEPT
-A INPUT -s -p tcp -m state --state NEW -m tcp --dport 662 -j ACCEPT
-A INPUT -s -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
[[email protected] ~]#  service iptables restart

RPC bind service start

[[email protected] ~]#  service rpcbind start

Check config RPC bind  on

[[email protected] ~]#  chkconfig rpcbind on

Service NFS start

[[email protected] ~]#  service nfs start

Check config NFS on

[[email protected] ~]#  chkconfig nfs on

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

[[email protected] ~]#  yum -y install mysql-server

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

Insert all below lines mysqld section

binlog-format = 'ROW'

Now start mysql service command below.

[[email protected] ~]# service mysqld start

Check config mysql on

[[email protected] ~]#  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.

name=MySQL Community connectors

Now add mysql public key from command below.

[[email protected] ~]#  rpm --import

Install mysql connector python command below.

[[email protected] ~]#  yum install mysql-connector-python

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

[[email protected] ~]# 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
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

[[email protected] ~]#  yum -y install cloudstack-management

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

[[email protected] ~]#  cloudstack-setup-databases cloud:[email protected] --deploy-as=root

Check successfully install your Cloud Management system command below.

[[email protected] ~]#  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.




CloudStack Management Server default user name and password:

User name : admin
Password : password

  • Author Posts
Author Details
Network Administrator
I am system administrator as Windows and Linux platform. I have 2 years skilled from 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.

Related Topics

Leave a Reply

Be the First to Comment!

Notify of