Changes between Version 7 and Version 8 of GENIEducation/HyperNets


Ignore:
Timestamp:
08/09/13 10:02:22 (6 years ago)
Author:
shuang@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIEducation/HyperNets

    v7 v8  
    1919 sudo apt-get install apache2
    2020}}}
    21  - 2.
     21 - 2. add a new user:
     22{{{
     23 sudo adduser hypernet (password is hypernet)
     24{{{
     25 - 3. install JDK:
     26{{{
     27 sudo apt-get install openjdk-7-jdk
     28}}}
     29 - 4. copy hypervisor source code as user "hypernet" in "hypernet's" home directory:
     30{{{
     31 su hypernet
     32 wget http://www.gpolab.bbn.com/experiment-support/HyperNet/Hypervisor.tar.gz
     33 tar xzvf Hypervisor.tar.gz
     34}}}
     35 - 5. set environment path: add the following line to ~/.bashrc (as user "hypernet")
     36{{{
     37 export CLASSPATH=.:~/PVNLibrary/*:$CLASSPATH
     38}}}
     39 then log out and log in again as user "hypernet" (you can do "echo $CLASSPATH" to confirm that the classpath is set properly)
     40 - 6. install omni following the tutorial here: http://trac.gpolab.bbn.com/gcf/wiki (remember to set the $PATH variable so that the system can call omni.py directory instead of having to use the full path)
     41 - 7. change corresponding fields in the hypervisor source code to point to the correct directory:
     42  - 7.1 in "PVNLib.java" change the following so that it points to the default GENI user (unlikely to be called, but just in case)
     43  {{{
     44        //default user credentials
     45        private final String defaultUserName = "shuang";                                                  //default hypervisor's username
     46        private final String defaultOmniConfigFile = "/Users/shuang/.gcf/omni_config";  //default location for hypervisor's omni_config file
     47                   //on andor, the above is /home/hypernet/.gcf/omni_config
     48        private final String hypervisorRoot = "/Users/shuang/Sites/";                               //default web site location on hypervisor
     49                   //on andor, the above is /var/www/
     50        private final String webRoot = "http://128.89.81.82/~shuang/";                          //default web url for hypervisor service
     51                   //on andor, the above is http://128.89.91.33/
     52  }}}
     53  - 7.2 in "pvnlib/RspecBuilder.java", change the following to point to the correct resource folder:
     54  {{{
     55  public final static String resourceFolder = "/Users/shuang/Sites/resources/";            //default folder to hold physical topology xml files
     56                   //on andor, the above is /var/www/resources/
     57  }}}
     58  - 7.3 in "pvnlib/TopologyMgr/Graph.java", change the following to point to the right omni.py:
     59  {{{
     60  private static String omni = "/Users/shuang/omni/gcf/src/omni.py";                         //path for omni.py
     61                   //on andor, the above is changed to /home/hypernet/omni/gcf/src/omni.py
     62  }}}
     63  - 7.4 recompile the source code, in folder "RPCServer/", do "make"
     64
     65