Versions Compared

Key

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

...

NB: Test your environment variables by opening a Cygwin shell and typing 'which mvn'. This should return the path to the ant executable.

Step

...

8) Download cloudstack-oss source

From a Cygwin window:

Step

...

9) Edit the file cloudstack-oss/build/override/build-cloud.properties to include a tomcat_home variable:

              -> tomcat_home=C:\Tomcat 6.0

Step

...

10) Install "mkisofs" in windows if for any reason cygwin’s mkisofs isn’t picked up.

              -> http://svnpenn.blogspot.com/2011/06/mkisofs-for-windows_24.html

Copy over the above exe some place in C:\, and set the PATH env variable for Windows 7 to point to this directory.

Step 11) You will need to set a parameter DBROOTPW= in the build/override/replace.properties file. Here is how my file looks –

vijayendra1@sjcwvijayendra1 /cygdrive/c/Users/vijayendra1.CITRITE/My Documents/cloudstack/cloudstack-oss
$ cat build/override/replace.properties
DBUSER=cloud
DBPW=cloud
DBROOTPW=
MSLOG=vmops.log
APISERVERLOG=api.log
DBHOST=localhost
AGENTLOGDIR=logs
AGENTLOG=logs/agent.log
MSMNTDIR=/mnt
COMPONENTS-SPEC=components-premium.xml

vijayendra1@sjcwvijayendra1

Step 12) Build

Move to the base folder for the CloudStack source, and use the following commands:

mvn -deps

ant Issue the following command to build the mgmt server and start it up:            ant clean-all build-all deploy-server deploydb            ant

ant debug

Step 13) Verify

Open the mgmt server console using http://localhost:8080 and configure it as required.

h3 Step 14) Parting words

When you make changes to the code, and want to restart the mgmt. server, you should not recreate the mysql database, because that would wipe out the setup. So you make your code changes, and then do –

            ant ant clean-all build-all deploy-server            and

and debug

ant debug