Quick and Easy Apache CloudStack deployments using cldstk-deploy.


CloudStack Deploy is a utility for making Apache CloudStack (ACS) and KVM installations quick, easy and painless whether you’re deploying to a single server or many. Meant to be reusable so you can deploy Apache CloudStack more than once after you’ve downloaded the RPMS and systemtemplates locally with cldstk-deploy.

What’s new with cldstk-deploy

The main focus has been on improving the installation and making it easier to get a Apache Cloudstack environment up and running.

  • Apache CloudStack 4.4 Deployment Support
  • Fixed bugs here and there
  • ACS 4.4 Systemtemplate preseed uses systemvm64template-4.4.0-6-kvm.qcow2.bz2

Now you can deploy 4.2, 4.3 and 4.4 versions of Apache CloudStack using cldstk-deploy in minutes.
Quickly setup environments for:

  • Testing Apache Cloudstack upgrades
  • Training
  • Demos
  • Labs
  • And more…

Let’s get into a bit more detail

All-In-One:

It seemed that the all-in-one type deployment could be made easier so now it’s the first question your prompted to answer. If you choose ‘y’ then you only need to input the server name once for the installation portion. No more providing the same server name multiple times. Example below:

Cloudstack Deployment: Answer the questions below....
Install all-in-one?[Y/n]: y
All-in-one Server[dns/ip]: cldstkkvm01
Install System Templates?[Y/n]: y
NFS Server[dns/ip]: 192.168.78.148
NFS Path[/nfsdirpath]: /mnt/volume1/secondary
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
ansible hosts file successfully writing to disk.....
vars_file successfully writing to disk.....
Create Basic Zone?[Y/n]: n
Start installation now?[Y/n]: y

Basic Zone Configuration:

Now you can have cldstk-deploy setup a basic zone. Just provide the needed information for your basic zone then after cldstk-deploy has finished deploying Cloudstack it will setup the basic zone for you as well. This way you do not have to login into the management portal and manually create the zone.

Create Basic Zone?[Y/n]: y
Basic Zone Name: MyZone
External DNS: 192.168.78.2
Internal DNS: 192.168.78.2
Gateway: 192.168.78.2
NetMask: 255.255.255.0
Hypervisor type only support KVM at this time.
Pod Name: MyPod
Pod Start IP: 192.168.78.200
Pod End IP: 192.168.78.210
Guest Start IP: 192.168.78.211
Guest End IP: 192.168.78.220
Cluster Name: MyCluster
Host DNS/IP (separated by comma): cldstkkvm01
Host User: root
Host Password:
Enter the secondary and primary storage mount points.
Example: nfs://192.168.78.148/mnt/volume1/secondary
Secondary Storage: nfs://192.168.78.148/mnt/volume1/secondary
Primary Storage: nfs://192.168.78.148/mnt/volume1/primary
Start installation now?[Y/n]: y

Changed Web Server Port to 8080

I’ve done a lot of testing but I love to get feedback, good or bad. I hope people like the tool and what it does. It is the quickest way that I’ve seen to get a Cloudstack environment up and running. Now with the core things in place and working that I wanted, I can focus on cleaning up the code now.

Get it at Github. cldstk-deploy

8 Comments

Add yours
  1. supunr

    Hi I would like to know, do we need to setup an NFS secondary storage mount point in a separate VM when using this method. Followed your zero to cloudstack youtube video and I got stuck in that step . But i couldn’t find setting up NFS properly. If I need to setup, i would like to know the correct steps involved.

    Thank you

  2. supunr

    When running the installation, got the following error under Task [Seed secondary storage],
    ————————————————————————————————————————————————-
    stdout: Insufficient free disk space for local temporary folder /usr/share/cloudstack-common/scripts/storage/secondary: avail=1597480k req=5120000k
    Installation failed
    FATAL: all hosts have already failed — aborting
    ————————————————————————————————————————————————-
    Would like to know what is the cause of this error and what needs to be done in order to fix this.

    Highly appreciate your help
    Regards

  3. supunr

    Once we have completed the installation part by running all the steps ( with the command: python cldstk-deploy.py), do we need to run “python cldstk-deploy.py -s” to start the server and what is the correct link to access the browser?

Comments are closed.