Wednesday, September 3, 2014

How to install Cloudstack Management Server (4.0.2)


Overview
CloudStack is an open source software cloud controller for building private, public and hybrid IaaS environments. CloudStack lets you pool and manage compute, storage and network resources all from its inviting web interface. In this post I’ll show how to install the management server.
Lets take a look at the high level components of Cloudstack. It very simple consisting of these components:
  • Management Server: [cloud-client]
  • Mysql Server: [mysql-server]
  • Usage Server: [cloud-usage]
  • Agent(KVM): [cloud-agent]
Installed Packages:
  • cloud-python-4.0.2-1.el6.x86_64
  • cloud-scripts-4.0.2-1.el6.x86_64
  • cloud-deps-4.0.2-1.el6.x86_64
  • cloud-server-4.0.2-1.el6.x86_64
  • cloud-aws-api-4.0.2-1.el6.x86_64
  • cloud-client-4.0.2-1.el6.x86_64
  • cloud-utils-4.0.2-1.el6.x86_64
  • cloud-core-4.0.2-1.el6.x86_64
  • cloud-setup-4.0.2-1.el6.x86_64
  • cloud-client-ui-4.0.2-1.el6.x86_64
The components can be separated by Management Server and Agent where they would be installed as such.
  • Management Server: [cloud-client, mysql-server, cloud-awsapi, cloud-usage]
  • Agent Server: [cloud-agent]
Management Server Installation
This process outlines the steps for installing the Cloudstack management server on CentOS 6.x. The Cloudstack management server is supported on other versions of linux but they will not be covered in this document.
  1. Install the linux OS. I start off with CentOS 6.3 x64 minimal.
  2. Upgrade the linux OS [# yum update]
  3. Edit the SELinux configuration file, set “SELINUX=Permissive” [# vi /etc/selinux/config]
  4. Reboot
  5. Configure the cloudstack repo [# vi /etc/yum.repos.d/cloudstack.repo]
  6. Add lines to cloudstack.repo and save the file:
7.  [cloudstack]
8.  name=cloudstack
9.  baseurl=http://cloudstack.apt-get.eu/rhel/4.0/
10.enabled=1
gpgcheck=0
  1. Install Network Time Protocol (NTP) [# yum install ntp -y]
  2. Install Cloudstack components [# yum install cloud-client -y]
  3. Install MySQL server [# yum install mysql-server -y]
  4. Start ntp service [# service ntpd start]
  5. Start database service [# service mysqld start]
  6. Configure NTP service to run at startup [# chkconfig ntpd on]
  7. Configure MySQL service to run at startup [# chkconfig mysqld on]
  8. Setup MySQL password [# mysql_secure_installation]
  9. Use the following options below:
    • enter
    • new password
    • retype password
    • y
    • y
    • y
    • y
  10. Configure the MySQL database for Cloudstack. [# cloud-setup-databases cloud:Y0urPa$$w0rd@localhost --deploy-as=root:Y0urPa$$w0rd]
  11. Setup Cloudstack management [# cloud-setup-management]
  12. Browse to http://servername:8080/client
  13. Login with user:admin, passwd:password

No comments:

Post a Comment