Versions Compared

Key

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

...

3. Download source codethe source build (replacing $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/, e.g /
    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.acs
    wget http://people.apache.org/~chipchilders/cloudstack/4.0
    .beta5
    /apache-cloudstack-$version-incubating-src.zip.md5
    wget http://people.apache.org/~chipchilders/cloudstack/4.0/apache-cloudstack-$version-incubating-src.zip
  • mkdir -p ~/cloudstack; cd ~/cloudstack
  • wget 
    .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.acs
    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
    .0.beta5
    /apache-cloudstack-$version-incubating-src.tar.gz.sha
    


    * install gpg (if needed): sudo apt-get install gpg
    * 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

4. Extract the source code and verify the contents: unzip apache-cloudstack-$version-incubating-src.zip

5. Compile

  • cd apache-cloudstack-$version-incubating-src
  • mvn -P deps
  • ant clean-all build-all

56. Deploy into DevCloud

  • ant rdeploy
  • ant rdeploydb

67. Start CloudStack management server

  • ant rdebug

78. Configure CloudStack management server

  • Access web UI: http://localhost:8080/client
  • Login with admin/password
  • Choose "I have used cloudstack before, skip this guide"
  • Click "Infrastrucre", click "zone", "add zone"
  • select "basic zone" during the add zone wizard.
  • type name "test cloud", dns1 "8.8.8.8", internal dns1 "10.0.2.3", hypervisor "Xenserver", select "local storage enabled", then click next.
  • skip "physical network setup" page
  • in "pod" page, type: reserved system gateway: 10.0.2.2, reserved system mask: 255.255.255.0, start reserved system ip: 10.0.2.200, end reserved system ip: 10.0.2.220
  • in "guest traffic" page, guest gateway: 10.0.2.2, netmask: 255.255.255.0, guest start ip: 10.0.2.100, guest end ip: 10.0.2.199
  • in "cluster" page, type cluster name: "test cloud"
  • in "host " page, host name: 10.0.2.15, user name: root, password: password
  • in "secondary storage" page, server: 10.0.2.15, path: /opt/storage/secondary
  • In "zone creation comple", select "yes" to enable zone.

89. Wait for secondary storage VM coming up.
910. Add new instance

  • In the first step of "Add instance " wizard ,  select template,
  • In step 2, select "tiny Linux"
  • In step 3, select "tinyOffering"
  • In step 4, select "No thanks"
  • Skip step 5 and 6.
  • Launch VM