Changes between Version 6 and Version 7 of CloudServer


Ignore:
Timestamp:
Jan 29, 2009, 2:14:24 AM (12 years ago)
Author:
dkondo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CloudServer

    v6 v7  
    2929running.  This guide describes how to deploy this Amazon
    3030Machine Image (AMI) over Amazon's EC2 cloud. This can be
    31 done in minutes.
     31done in minutes.  Testing this image deployement will cost you less then 0.50 USD so give it a try.
    3232
    3333=== Prerequisites ===
     
    4040(stable 6.3.14 JAN 28 2009) installed on Debian Etch:
    4141
    42 {{{  ec2-run-instances ami-ab9374c2 -k [key-pair] }}}
     42{{{ec2-run-instances ami-ab9374c2 -k [key-pair] }}}
    4343
    4444Show the instance deployment status:
    4545
    46 {{{ ec2-describe-instances }}}
     46{{{ec2-describe-instances }}}
    4747
    4848After the instance status goes from pending to running
     
    5353If you haven't already, open ports 22 and 80:
    5454
    55 {{{ ec2-authorize default -p 22 }}}
    56 {{{ ec2-authorize default -p 80 }}}
     55{{{ec2-authorize default -p 22 }}}
     56
     57{{{ec2-authorize default -p 80 }}}
    5758
    5859At this point, you should be able to access the web server
     
    6263Then login to the instance:
    6364
    64 {{{ ssh -i [private_key]  root@ec2-XXX-XXX-XXX-XXX.z-2.compute-1.amazonaws.com }}}
     65{{{ssh -i [private_key]  root@ec2-XXX-XXX-XXX-XXX.z-2.compute-1.amazonaws.com }}}
     66
     67As root,
     68
     69{{{sudo boincadm; cd}}}
    6570
    6671In the home directory is a README.txt file with important
     
    7277uppercase application.
    7378
    74 As root,
    75 
    76 {{{sudo boincadm; cd}}}
    77 
    7879Create a test project uppercase:
    7980
     
    8283Answer yes to all questions.
    8384
    84 {{{ cd ~/projects/cplan}}}
     85{{{cd ~/projects/cplan}}}
    8586
    8687{{{bin/xadd}}}
     
    9596
    9697Now any [http://boinc.berkeley.edu/download.php BOINC client] should be able to attach to the project and download
    97 workunits.
     98workunits. For example, go to the project page (http://ec2-XXX-XXX-XXX-XXX.z-2.compute-1.amazonaws.com/cplan) and create a user account.
     99
     100Then with a Linux command-line client in ~boincadm/BOINC, run
     101{{{./boinc_client  -no_gui_rpc -attach_project http://ec2-XXX-XXX-XXX-XXX.z-2.compute-1.amazonaws.com/cplan [account_key]}}}
     102
     103At this point, the client should attached to the project and begin downloading work.
    98104
    99105=== Technical Notes ===
     
    101107Below is not required reading, but we describe how and why
    102108the image was built.
     109
     110==== BOINC Configuration ====
     111
     112You'll find in the ~boincadm directory :
     113
     114 * BOINC: directory with client for testing purposes
     115 * projects:  directory where BOINC projects are installed
     116 * boinc_server_stable_r16906_6.3.14: directory with server source code
    103117
    104118==== Why Xen? ====
     
    122136[http://mescal.imag.fr/membres/derrick.kondo/swap.img.tgz swap.img.tgz (MB)] and go from there.
    123137
    124 ==== Configuration ====
     138The Xen image above was configured to use a bridged Ethernet connection and DHCP.
     139
     140==== Hostname Configuration ====
    125141
    126142The hostname can change each time an instance is started.
    127 As such, the start-up script {{{rc.local}}} was modified to query
     143As such, the start-up script {{{/etc/rc.local}}} was modified to query
    128144Amazon for the hostname and to set it at each boot.
    129145
    130 {{{rc.local}}} is also configured to randomly change the root
    131 password at each boot, and to download your ssh public key
    132 and cat it to the authorized_keys file to allow remote
    133 passwordless access.
    134 
    135 The server intentionally does not have ssh hostkeys, and /etc/sshd_config has been updated to reflect this.
    136146
    137147==== IP Address ====
     
    147157[http://blog.spaceprogram.com/2008/03/how-to-set-up-dynamic-dns-for-your.html Dynamic DNS Setup]
    148158
    149 ==== SSH server host keys ====
     159==== SSH ====
    150160
    151161SSH server host keys are (re)generated each time the instance is booted in {{{/etc/rc.local}}}.  This is to help prevent man-in-the-middle-attacks.
     162
     163{{{rc.local}}} is configured to randomly change the root
     164password at each boot, and to download your ssh public key
     165and cat it to the authorized_keys file to allow remote passwordless access.
    152166
    153167=== To do ===
     
    155169 * Consider setting up dynamic DNS by default in the bundle
    156170
    157 === Questions? ===
     171=== Questions or comments? ===
    158172
    159 Email Derrick Kondo (derrick.kondo :: inria fr)
     173Email [http://mescal.imag.fr/membres/derrick.kondo Derrick Kondo] (derrick.kondo :: inria fr)