Skip to end of metadata
Go to start of metadata

Ubuntu/Debian

Install tools and dependencies

Set up Maven (3.0.4):

Set up Tomcat:

Tomcat 6.0.35 has some known issue with CloudStack, please use Tomcat 6.0.33 from http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.33/bin

Configure MySQL

Start the MySQL service:

Configure Java

Verify that OpenJDK is fully installed. E.g. Debian 7.1 does net install does not have it, and Maven does not add it either.

NB: at time of writing, version 6 was in use

Maven finds the Java compiler via JAVA_HOME. Find compiler location:

Set JAVA_HOME to root of JDK containing this javac. e.g.

NB: If the next step works, add sure JAVA_HOME to your shell's .rc file.

Install Extra Tools

Sudo

Used by management server to elevate privileges when mounting NFS shares.

Install uuidgen

Used by script that seeds system VMs

Install mkisofs

Used to create ISOs

Install python setuptools

Build CloudStack

Go to your repository:

CentOS/RHEL/Fedora

Install tools and dependencies

Set up Maven (3.0.4):

Note: Tomcat 6.0.35 has some known issue with CloudStack, please use Tomcat
6.0.33 from http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.33/bin

Configure Environment

Set CATALINA_HOME to path where you extract/install tomcat, put them in your
.bashrc or .zshrc or .profile:

Fix permissions on CATALINA_HOME:

Generate you ssh keys, useful for ssh-ing to your hosts and vm etc.:

Set JAVA_HOME

To determine the correct value for JAVA_HOME. RHEL or CentOS installs OpenJDK 1.6 into either /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/ or /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/, depending on whether your system is a 32-bit or 64-bit architecture. The JAVA_HOME should point to the directory containing a bin/java executable.

For the user who will use OpenJDK, open the shell configuration file. For the Bash shell, this file is .bashrc.
At the bottom of the file, type the following line, replacing the hypothetical path with the actual path to use on your own system: export JAVA_HOME="/path/to/java/home". Save the file, and log out of and back into your session. If you have a 64-bit you would have following:

Configure MySQL

Start the MySQL service:

What next?

After you've successfully set up your development environment, get started on how to build CloudStack:

https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+on+master+branch

  • No labels