Wednesday, September 4, 2013

Running the cloudstack in simulator

Running the cloudstack in simulator:


1. If you are new to cloudstack checkout out cloudstack code using the below link.

    #git clone https://git-wip-us.apache.org/repos/asf/cloudstack.git


2. To set up Cloudstack development environment refer the below link

https://cwiki.apache.org/confluence/display/CLOUDSTACK/Setting+up+CloudStack+Development+Environment

3. If you already have cloudstack, build the cloudstack using the below commands (If you are in ubuntu build in root prompt)

# mvn -Pdeveloper -Dsimulator clean install

# mvn -Pdeveloper -pl developer -Ddeploydb
# mvn -Pdeveloper -pl developer -Ddeploydb-simulator

start the cloudstack MS:

#mvn -pl client jetty:run -Dsimulator

4. Unset the MAVEN_OPTS
#unset MAVEN_OPTS

5. Set up zone using the simulator.
#mvn -Pdeveloper,marvin.setup -Dmarvin.config=setup/dev/advanced.cfg -pl :cloud-marvin integration-test







2 comments:

  1. NOw use the below command to setup advaced zone(step 5)
    nosetests -V --with-marvin --marvin-config=setup/dev/advanced.cfg --deploy

    ReplyDelete
  2. if the management server fail start with an error "fail to bind with ip 0.0.0.0

    set:

    export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=500m -Djava.net.preferIPv4Stack=true "
    and rerun
    mvn -pl client jetty:run -Dsimulator

    ReplyDelete