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 architecture 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]
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 & cloud-system-iso]
Installed Packages:
- cloud-python-4.0.2-1.el6.x86_64
- cloud-utils-4.0.2-1.el6.x86_64
- cloud-deps-4.0.2-1.el6.x86_64
- cloud-agent-libs-4.0.2-1.el6.x86_64
- cloud-scripts-4.0.2-1.el6.x86_64
- cloud-core-4.0.2-1.el6.x86_64
- cloud-agent-4.0.2-1.el6.x86_64
Host Server Installation
This process outlines the steps for installing the Cloudstack KVM virtualization host 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:
-
Install Network Time Protocol (NTP) [
# yum install ntp -y
] -
Install Cloudstack components [
# yum install cloud-agent -y
] - Modify the libvirtd configuration [
# vi /etc/libvirt/libvirtd.conf
]- listen_tls = 0
- listen_tcp = 1
- tcp_port = 16059
- auth_tcp = “none”
- mdns_adv = 0
- Also edit [
# vi /etc/sysconfig/libvirtd
]- LIBVIRTD_ARGS=“-listen”
-
Append the below section into [
# vi /etc/cgconfig.conf
] -
Restart cgconfig service [
# service cgconfig restart
] -
Restart libvirtd service [
# service libvirtd restart
] -
Restart cloud-agent service [
# service cloud-agent start
] -
Start NTP service [
# service ntpd start
] -
Configure NTP service to run at startup [
# chkconfig ntpd on
]
[cloudstack] name=cloudstack baseurl=http://cloudstack.apt-get.eu/rhel/4.0/ enabled=1 gpgcheck=0
group virt { cpu { cpu.shares = 9216; } }
Cloudstack Host (Agent) Installation (4.0.2) originally appeared on theHyperadvisor by Antone Heyward
So .. what’s next ?
Check out my 4.1 management and post management install blog posts. More posts on CloudStack are coming soon.