To install Cygwin, you download and run the setup.
-> ensure that you choose mkisofs and git.
NB: When you open a Cygwin shell, the Windows environment variables, including PATH, are imported into the shell environment. When we install the following items, we will update the Windows environment variables.
Eclipse is available from http://www.eclipse.org/downloads/
Apache Tomcat is the open source web server and servlet container that hosts CloudStack's management server.
You can download Tomcat from http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.33/bin/apache-tomcat-6.0.33.exe
To inform the Cygwin environment of where Tomcat is, update your Windows environment variables.
NB: Test your environment variables by opening a Cygwin shell and typing 'which Tomcat6'. This should return the path to the Tomcat executable.
Download the self-installing exe from http://dev.mysql.com/downloads/mysql/5.0.html#downloads
*The most recent 5.1.x is recommended; however, developers are also using 5.5
*Check the box that asks whether you want to include mysql bin directory in the PATH.
-> create a cloudstack-oss directory, cd into it and fire:
-> git clone ssh://<username>@git.cloud.com/var/lib/git/cloudstack-oss
-> tomcat_home=C:\Tomcat 6.0
-> 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.
I installed mine under :
C:\Program Files\Java\jdk1.7.0_02\
Step 10) Install ant for Windows. Follow the instructions on this link if you're using Win 7 :
-> http://madhukaudantha.blogspot.com/2010/06/installing-ant-for-windows-7.html
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) Issue the following command to build the mgmt server and start it up:
ant clean-all build-all deploy-server deploydb
ant debug
Step 13) Open the mgmt server console using http://localhost:8080 and configure it as required.
Step 14) 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 clean-all build-all deploy-server
and debug