Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Note: kindly consider a more modern appliance based CloudStack development with MonkeyBox.


If you're looking for a pre-configured CloudStack environment please refer to DevCloud.

This is a do-it-yourself guide to help you hack your own custom CloudStack development environment. JFYI, reverse-engineer DevCloud: /root/.bash_history and /home/devcloud/setup.sh

...

New to CloudStack? Checkout the n00b developer's guide: How to Contribute Contributing as a non-committer

Terms used throughout the guide:

...

For simplicity, in this guide we'll use the same kind of networking, IP ranges and filesystem paths as in DevCloud and create a non-monolithic setup:

...

Setting up CloudStack Development Environment

Setting up a CloudStack development environment on Mac OSX

Setting up Cloudstack dev environment on Windows

Setting up on Linux: Refer to INSTALL.txt in the root directory of the source code

...

        echo "/opt/storage/secondary *(rw,no_subtree_check,no_root_squash,fsid=0)" > /etc/exports

        fileSvr="http://nfs1download.labcloud.vmops.com/templates/devcloud/"

        wget $fileSvr/vmtemplatesdefaulttemplates/1/dc68eb4c-228c-4a78-84fa-b80ae178fbfd.vhd  -P /opt/storage/secondary/template/tmpl/1/1/

        wget $fileSvr/vmtemplatesdefaulttemplates/1/template.properties  -P /opt/storage/secondary/template/tmpl/1/1/

...

Optional: get a sample centos/vm template (~50MB) for testing on your host-os:

        wget http://nfs1.lab.vmops.com/templates/devcloud/vmtemplates/5/ce5b212e-215a-3461-94fb-814a635b2215.vhdImage Removedbhaisaab.org/vms/cent.vhd

A SSVM template is required in the secondary storage (chicken-egg problem), as CloudStack runs the SSVM from NFS and then SSVM then mounts the NFS as secondary storage, make sure the 'host' in global settings is correctly set to your management server IP and at port 8250 it is reachable.

Networking

We wish to use NAT as our default interface.

...

Read the README and INSTALL.txt. Grab the source code:
git clonehttpsclone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.gitgit pull -v # Have your master updated

...