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.
- Install the linux OS. I start off with CentOS 6.3 x64 minimal.
- Upgrade the linux OS [# yum update]
- Edit the SELinux configuration file, set “SELINUX=Permissive” [# vi /etc/selinux/config]
- Reboot
- Configure the cloudstack repo [# vi /etc/yum.repos.d/cloudstack.repo]
- 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
- Install Network Time Protocol (NTP) [# yum install ntp -y]
- Install Cloudstack components [# yum install cloud-client -y]
- Install MySQL server [# yum install mysql-server -y]
- Start ntp service [# service ntpd start]
- Start database service [# service mysqld start]
- Configure NTP service to run at startup [# chkconfig ntpd on]
- Configure MySQL service to run at startup [# chkconfig mysqld on]
- Setup MySQL password [# mysql_secure_installation]
- Use the following options below:
- enter
- new password
- retype password
- y
- y
- y
- y
- Configure the MySQL database for Cloudstack. [# cloud-setup-databases cloud:Y0urPa$$w0rd@localhost --deploy-as=root:Y0urPa$$w0rd]
- Setup Cloudstack management [# cloud-setup-management]
- Browse to http://servername:8080/client
- Login with user:admin, passwd:password
No comments:
Post a Comment