Apache CloudStack 4.5.1

Rather than upgrade i have decided to rebuild my CloudStack to version 4.5.1 and thought i would document the installation process.

The Physical CloudStack Environment looks like this:

3 x KVM Nodes
1 x Management Node
1 x NFS Node
1 x Deployment Node


CloudStack Physical Diagram

And the Logical CloudStack Environment looks like this:

CloudStack Logical Diagram


CloudStack management http://stack.cloud-mate.org/client

Installation on all nodes

The first 7 steps need to be completed on all nodes. This is a fresh rebuild of all components, step by step:
1. install CentOS 6.5 Minimal
I like to set the hostname and IP Address during the installation this way i can confirm the network is working by selecting the “Connect automatically” option. With a terminal ping i can see the network come online when i hit the apply button.
setting IP Address at Install
2. Update CentOS
#yum -y update
3. Confirm networking is working, then
# chkconfig network on
# service network start
4. Set Hostname and Configure name resolution between all hosts –
# hostname –fqdn
then add entries to /etc/hosts
5. Set SELinux to be permissive
# setenforce 0
modify /etc/selinux/config
6. Install NTP
# yum -y install ntp
# chkconfig ntpd on
# service ntpd start
7. Configure the CloudStack Repository
create /etc/yum.repos.d/cloudstack.repo
[cloudstack] name=cloudstack

Installation of Management Server only

8. Install MySQL
# yum -y install mysql-server
9. modify /etc/my.cnf
Add this into the [mysqld] section
binlog-format = ‘ROW’
# service mysqld start
# chkconfig mysqld on
10. Install Management Server
# yum -y install cloudstack-management
# cloudstack-setup-databases cloud:password@localhost –deploy-as=root
# cloudstack-setup-management
11. Download and Install System Template
Because Secondary Storage is on another server we have to mount it now.
mkdir -p /mnt/secondary
mount -t nfs ip address:/mnt/sata/sata_nfs/secondary /mnt/secondary

12. Download the system template by typing:
/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt \
-m /mnt/secondary \
-u http://cloudstack.apt-get.eu/systemvm/4.5/systemvm64template-4.5-kvm.qcow2.bz2 \
-h kvm -F

12a. Once the template has downloaded successfully, you have to unmount the secondary storage and remove the directory.

umount /mnt/secondary
rmdir /mnt/secondary

Installation of KVM nodes Only

13. Install the CloudStack Agent
# yum -y install cloudstack-agent
14. KVM Configuration
modify /etc/libvirt/qemu.conf by uncommenting vnc_listen=
modify /etc/libvirt/libvirtd.conf

listen_tls = 0
listen_tcp = 1
tcp_port = “16509”
mdns_adv = 0
auth_tcp = “none”

modify /etc/sysconfig/libvirtd by uncommenting #LIBVIRTD_ARGS=”–listen”
# service libvirtd restart
15. Install OpenvSwitch and Configure http://cloud-mate.org/2015/06/installing-open-vswitch-centos-cloudstack/

And that completes the installation, now to the CloudStack Gui to configure a Zone: http://ipaddress:8080/client/

Reference http://cloudstack-installation.readthedocs.org/en/4.5/qig.html