...
To setup an environment for CloudStack, usually it will take a while, e.g install a hypervisor host, install Mysql server etc. Here we'll use DevCloud(http://wiki.cloudstack.org/display/COMM/DevCloud) to simplify the test procedure.
...
Note |
---|
...
Following steps are tested on Mint 13, should work on ubuntu 12.04. The same basic workflow should also work on Mac 10.7, with different specific commands for the prerequisite setup steps. |
1. Install devcloud
...
Code Block |
---|
sudo |
...
aptitude install openjdk-6-jdk ant |
...
sudo apt-get |
...
update sudo apt-get install python-software-properties |
...
sudo add-apt-repository ppa:natecarlson/maven3 |
...
sudo aptitude update |
...
sudo aptitude install maven3 |
...
Install JSch:
Code Block |
---|
wget http://downloads.sourceforge.net/project/jsch/jsch.jar/0.1.48/jsch-0.1.48.jar
sudo cp jsch-0.1.48.jar /usr/share/ant/lib/
|
...
...
Note |
---|
Replace $version with the correct detailed version string in any commands below |
...
. |
Download latest source code release from http://people.apache.org/~chipchilders/cloudstack/4.0/
Code Block |
---|
mkdir -p ~/cloudstack; cd ~/cloudstack
wget http://people.apache.org/~chipchilders/cloudstack/4.0/KEYS
wget http://people.apache.org/~chipchilders/cloudstack/4.0/apache-cloudstack-$version-incubating-src.zip
wget http://people.apache.org/~chipchilders/cloudstack/4.0/apache-cloudstack-$version-incubating-src.zip.asc
wget http://people.apache.org/~chipchilders/cloudstack/4.0/apache-cloudstack-$version-incubating-src.zip.md5
wget http://people.apache.org/~chipchilders/cloudstack/4.0/apache-cloudstack-$version-incubating-src.zip.sha
wget http://people.apache.org/~chipchilders/cloudstack/4.0/apache-cloudstack-$version-incubating-src.tar.gz
wget http://people.apache.org/~chipchilders/cloudstack/4.0/apache-cloudstack-$version-incubating-src.tar.gz.asc
wget http://people.apache.org/~chipchilders/cloudstack/4.0/apache-cloudstack-$version-incubating-src.tar.gz.md5
wget http://people.apache.org/~chipchilders/cloudstack/4.0/apache-cloudstack-$version-incubating-src.tar.gz.sha
|
...
Install gpg (if needed): sudo apt-get install gpg
...
Import keys: gpg --recv-keys CC56CEA8 DB3ECA42 2908DED2 6FE50F1C
...
Verify signatures and hash files:
Code Block |
---|
gpg --verify apache-cloudstack-$version-incubating-src.tar.gz.asc gpg --verify apache-cloudstack-$version-incubating-src.zip.asc gpg --print-md MD5 apache-cloudstack-$version-incubating-src.tar.gz | diff - apache-cloudstack-$version-incubating-src.tar.gz.md5 gpg --print-md MD5 apache-cloudstack-$version-incubating-src.tar.gz | diff - apache-cloudstack-$version-incubating-src.tar.gz.md5 gpg --print-md SHA512 apache-cloudstack-$version-incubating-src.tar.gz | diff - apache-cloudstack-$version-incubating-src.tar.gz.sha gpg --print-md SHA512 apache-cloudstack-$version-incubating-src.zip | diff - apache-cloudstack-$version-incubating-src.zip.sha |
...
Code Block |
---|
unzip apache-cloudstack-$version-incubating-src.zip |
OR
Code Block |
---|
tar xvfz apache-cloudstack-$version-incubating-src.tar.gz |
...
Code Block |
---|
cd apache-cloudstack-$version-incubating-src |
...
mvn -P |
...
deps ant clean-all build-all |
...
Code Block |
---|
ant rdeploy |
...
ant rdeploydb |
...
Code Block |
---|
ant rdebug |
...
...
...
This may take a bit...
At this point, it would be good to check that you can access the console of the newly created instance, followed by destroying the instance.
If we made it this far, the release has at least been reasonably "smoke tested".