Apache CloudStack - The Open Source Cloud Computing Management Software.

Preamble:

Apache CloudStack is an open source Cloud Computing Management Software for creating, managing, and deploying Infrastructure Cloud services. It makes use of existing hypervisor technologies such as KVM, VMware, vSphere, and XenServer/XCP for its virtualization layer. In addition to its RESTful API, Apache CloudStack also supports the Amazon Web Services API and the Open Cloud Computing Interface.
In this article we will deploy Apache CloudStack in a Lab Environment where we can safely test the ins and outs of this software before deploying it into production.

alt text

Requirements:

Since we will be deploying Apache CloudStack for educational and testing purposes we wil use the minimal requirements needed. In a typical Lab environment we will need 02 servers running the minimal installation of CentOS 6.5. It is also recommended to have a Fully Qualified Domain Name either set up locally, or from a Domain Name Service Provider.

Deployment Plan:

Compute Node Specifications:
8GB RAM / 4 CPUs
60 GB SSD or HD
IP ADDRESS: 104.131.81.162
FQDN: drive.geanttechnology.com
Management Node Specifications :
4GB RAM / 2CPUs
80 GB SSD or HD
IP ADDRESS: 104.131.55.101
FQDN: cloudstack.geanttechnology.com

Setting Up the NFS Server

We assumed that you have a freshly installed server running CentOS 6.5 minimal.
To start things off we will start deploying a shared storage on the Management Node using the NFS Technology. Note that here the Management Node will also be our NFS Server: cloudstack.geanttechnology.com

  • Run the following to install the NFS Server and other packages we would need:
1
sudo yum update
1
sudo yum install vim
1
sudo yum install nfs*
1
sudo chkconfig nfs on
1
sudo service rpcbind start
1
sudo service nfs start
  • Run the following to configure a mount point:
1
sudo mkdir /nfsshare
1
sudo vim /etc/exports

and paste in the following: /nfsshare *(rw,sync,no_root_squash)

Finally initialize the mount point by running the following:

1
sudo /usr/sbin/exportfs -av

Setting Up the NFS Client

We assumed that you have a freshly installed server running CentOS 6.5 minimal on the Compute Node. Note that here the Compute Node will also be the NFS Client: drive.geanttechnology.com

  • Run the following to install the NFS Client and other packages we would need:
1
sudo yum update
1
sudo yum install vim
1
sudo yum install nfs*
1
sudo chkconfig nfs on
1
sudo service rpcbind start
1
sudo service nfs start
  • Mounting the Shared point on the NFS Client:
1
sudo showmount -e cloudstack.geanttechnology.com

The above command will ensure that the node can communicate with the NFS Server running on cloudstack.geanttechnology.com

Next, let’s continue with the set up:

1
sudo mkdir /mnt/nfsshare
1
sudo mount -t nfs 104.131.55.101:/nfsshare /mnt/nfsshare

Note: We used the Management Node IP address (104.131.55.101). Make sure you use yours.

To mount the NFS mount point permanently on the system run:

1
sudo vim /etc/fstab

And paste in the following: 104.131.55.101:/nfsshare /mnt/nfsshare nfs defaults 0 0

Note: We used the Management Node IP address (104.131.55.101). Make sure you use yours.

Deploying Cloudstack

On the Compute Node (drive.geanttechnology.com) run the following to set up CloudStack:

1
sudo yum install git
1
cd /opt/
1
sudo git clone https://github.com/thehyperadvisor/cldstk-deploy.git
1
cd cldstk-deploy
1
sudo python cldstk-deploy.py setup all
1
sudo python cldstk-deploy.py get rpmversion=4.4
1
sudo python cldstk-deploy.py get systemtemplate=4.4

Launch the deployment of CloudStack by running the following:

1
sudo python cldstk-deploy.py

Then follow the wizard.

  • It will ask you for a password to access the Management Node:
  • Install all-in-one?[Y/n]: n
  • Install Primary Database Server?[Y/n]: y
  • Db Server[dns/ip]: 104.131.55.101
  • Configure Database Replica?[Y/n]: y
  • DB Replica Server[dns/ip]: 104.131.81.162
  • Install Primary Management Server?[Y/n]: y
  • Server[dns/ip]: 104.131.55.101
  • Install additional Management servers?[Y/n]: n
  • Install KVM Hosts?[Y/n]: y
  • Comma separated list: drive.geanttechnology.com
  • Install System Templates?[Y/n]: y
  • NFS Server[dns/ip]: 104.131.55.101
  • NFS Path[/nfsdirpath]: /nfsshare
  • Change install type to “Internet”?[Y/n]: n
  • Which version to install[4.2, 4.3, 4.4]?: 4.4
  • Add ssh rsa keys to ~/.ssh/known_hosts?[Y/n]: y
  • Create Basic Zone?[Y/n]: n
  • Start installation now?[Y/n]: y

Note: We used the Management Node IP address (104.131.55.101), and the Compute Node IP address (104.131.81.162). Make sure you use yours.

Finally go to http://cloudstack.geanttechnology.com or http://104.131.55.101 and you will see the login interface of Cloudstack.

Comments