Changes between Version 6 and Version 7 of CloudServer
- Timestamp:
- Jan 29, 2009, 2:14:24 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CloudServer
v6 v7 29 29 running. This guide describes how to deploy this Amazon 30 30 Machine Image (AMI) over Amazon's EC2 cloud. This can be 31 done in minutes. 31 done in minutes. Testing this image deployement will cost you less then 0.50 USD so give it a try. 32 32 33 33 === Prerequisites === … … 40 40 (stable 6.3.14 JAN 28 2009) installed on Debian Etch: 41 41 42 {{{ 42 {{{ec2-run-instances ami-ab9374c2 -k [key-pair] }}} 43 43 44 44 Show the instance deployment status: 45 45 46 {{{ 46 {{{ec2-describe-instances }}} 47 47 48 48 After the instance status goes from pending to running … … 53 53 If you haven't already, open ports 22 and 80: 54 54 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 }}} 57 58 58 59 At this point, you should be able to access the web server … … 62 63 Then login to the instance: 63 64 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 67 As root, 68 69 {{{sudo boincadm; cd}}} 65 70 66 71 In the home directory is a README.txt file with important … … 72 77 uppercase application. 73 78 74 As root,75 76 {{{sudo boincadm; cd}}}77 78 79 Create a test project uppercase: 79 80 … … 82 83 Answer yes to all questions. 83 84 84 {{{ 85 {{{cd ~/projects/cplan}}} 85 86 86 87 {{{bin/xadd}}} … … 95 96 96 97 Now any [http://boinc.berkeley.edu/download.php BOINC client] should be able to attach to the project and download 97 workunits. 98 workunits. 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 100 Then 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 103 At this point, the client should attached to the project and begin downloading work. 98 104 99 105 === Technical Notes === … … 101 107 Below is not required reading, but we describe how and why 102 108 the image was built. 109 110 ==== BOINC Configuration ==== 111 112 You'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 103 117 104 118 ==== Why Xen? ==== … … 122 136 [http://mescal.imag.fr/membres/derrick.kondo/swap.img.tgz swap.img.tgz (MB)] and go from there. 123 137 124 ==== Configuration ==== 138 The Xen image above was configured to use a bridged Ethernet connection and DHCP. 139 140 ==== Hostname Configuration ==== 125 141 126 142 The hostname can change each time an instance is started. 127 As such, the start-up script {{{ rc.local}}} was modified to query143 As such, the start-up script {{{/etc/rc.local}}} was modified to query 128 144 Amazon for the hostname and to set it at each boot. 129 145 130 {{{rc.local}}} is also configured to randomly change the root131 password at each boot, and to download your ssh public key132 and cat it to the authorized_keys file to allow remote133 passwordless access.134 135 The server intentionally does not have ssh hostkeys, and /etc/sshd_config has been updated to reflect this.136 146 137 147 ==== IP Address ==== … … 147 157 [http://blog.spaceprogram.com/2008/03/how-to-set-up-dynamic-dns-for-your.html Dynamic DNS Setup] 148 158 149 ==== SSH server host keys====159 ==== SSH ==== 150 160 151 161 SSH 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 164 password at each boot, and to download your ssh public key 165 and cat it to the authorized_keys file to allow remote passwordless access. 152 166 153 167 === To do === … … 155 169 * Consider setting up dynamic DNS by default in the bundle 156 170 157 === Questions ? ===171 === Questions or comments? === 158 172 159 Email Derrick Kondo(derrick.kondo :: inria fr)173 Email [http://mescal.imag.fr/membres/derrick.kondo Derrick Kondo] (derrick.kondo :: inria fr)