Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Code Block
$ service mysql start

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.

Code Block

$ apt-get install openjdk-6-jdk

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

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

Code Block

$ find / | grep bin/javac

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

Code Block

$ export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64

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.

Code Block

$ apt-get install sudo

Install uuidgen

Used by script that seeds system VMs

Code Block

$ apt-get install uuid-runtime

Install mkisofs

Used to create ISOs

Code Block

$ apt-get install genisoimage
...
$ sudo ln -s /usr/bin/genisoimage /usr/bin/mkisofs

Install python setuptools

Code Block

$ apt-get install python-setuptools

Build CloudStack

Go to your repository:

Code Block
$ mvn clean
$ mvn clean install -P developer,systemvm
$ mvn -P developer -pl developer -Ddeploydb     # Set up database (Note: If there is a password set for db then please make sure to update the password in utils/conf/db.properties)
$ mvn -pl :cloud-client-ui jetty:run            # Run the management server on port 8080

...

Code Block
$ yum install git ant ant-devel java-1.6.0-openjdk java-1.6.0-openjdk-devel mysql mysql-server tomcat6 mkisofs gcc python MySQL-python openssh-clients wget

...

Code Block
$ ssh-keygen -t rsa -q

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:

Code Block

export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64

Configure MySQL

Start the MySQL service:

...