Changes between Version 25 and Version 26 of HowTo/WriteInstallScript


Ignore:
Timestamp:
09/25/12 17:06:24 (12 years ago)
Author:
nriga@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowTo/WriteInstallScript

    v25 v26  
    101101}}}
    102102
    103 = Upload your script =
     103= 2. Upload your script =
    104104In order for the Aggregate Manager to find and run the install script, you will need to upload your script in a web server that is publicly available. Most institution provide this service to their users. However if you don't have access in a web server in order to upload your script, you can setup a web server in GENI. Please follow [#InstallaWebServerinPlanetLab these instructions] about setting up a web server in a PlanetLab node.
    105105
     
    111111   * Upload your file to your webserver. Make sure you have access to the file by pointing a browser at your file and ensuring that you can download it.
    112112
    113 = 2. Test your script =
    114 Before you add the script to your RSpec and automate the setup of your experiment, make sure that your test script works. In ProtoGENI the user-software is usually downloaded and installed
     113= 3. Test your script =
     114Before you add the script to your RSpec and automate the setup of your experiment, make sure that your test script works. This will save you a lot of time with going back and forth, creating and delete slivers until you get it right. Reserve a node and after the node is ready login. In ProtoGENI the user-software is usually downloaded and installed in local. So login to your node and:
     115   * go to the /local/ directory
     116    {{{
     117cd /local
     118}}}
     119   * download and untar your script
     120   {{{
     121sudo wget <URL_FOR_YOUR_SCRIPT>
     122sudo tar xvfz <your_script>.tar.gz
     123}}}
     124If you are planning to download additional software using  install scripts, download this software as well.
     125    * run your script
     126    {{{
     127sudo ./<your_script>
     128}}}
     129    * fix any errors, upload your script and retest it.
    115130
    116 = 3. Find a Web Server =
    117 == 3.a. Use an existing Web Server ==
    118 == 3.b. Install a Web Server ==
    119 === 3.b.i Use a PlanetLab Host ===
     131= 4. Modify your RSpec =
     132Now that you have a script that you believe works it is time to add the script so that it is executed at the creation time of your slice.
     133
    120134= Useful tips =
     135== Where are the log files for my script? ==
     136
    121137== Install a Web Server in PlanetLab ==
    122138