#1 How to run a Boinc server on AWS.
Posted: Thu Sep 05, 2013 9:07 am
How to set up a cloud server on AWS to run a boinc project
first off though you need an account with you're credit card and a phone call to verify account.
http://aws.amazon.com/ec2/
Log into your AWS Management Console Home.
select EC2 from the Amazon web services menu ( 2nd on the left )
this takes you to your EC2 dashboard.
Up on the top right hand side next to your name select the region you want. Currently N. Virginia is by far the cheapest.
On the LHS list select Spot Requests.
select Request Spot Instances button.
next you have to choose an AMI. Choose Ubuntu Server 12.04.2 LTS 64 bit. ( if you are familiar with other linux I guess you can choose that if you want but then your on your own. Windows servers cost more to run and for Boinc you don't need to even know Linux so not worth the money.)
Choose the Instance type. In this case C1 High-CPU Extra Large(c1.xlarge). This is the best value for money for doing Boinc as it gives you an 8 core Xeon
Next choose how much you want to pay. Currently lowest is $0.070 / hr. When cost goes above AWS will delete your instance so pick a sensible price. Normally $0.080 - $0.090 will do the trick. Go higher if you don't want it deleted.
Tick Persistent Request? If you tick this when your server is deleted and the price drops again a new image will be created. Unticked then your server is run once only.
Choose an availability zone or leave as No preference. ( Zone 1d) is deleted the most often, but thats no guarantee.
select continue
next you configure your instance detail...
for SIMAP paste the following below into the user data box. Replace the xxxxxxx with the weak authenticator key for your account available on your account details page in your Simap account. If you wanted to run more than one project then add a second - boinccmd --project_attach http etc below the first. Doing this will mean that if your AMI is deleted it will start again without you having to do anything.
#cloud-config
packages:
- boinc-client
runcmd:
- echo Attaching to BOINC project
- boinccmd --project_attach http://boincsimap.org/boincsimap/ xxxxxxx
leave everything else as is and select continue
leave the next page about storage device configuration ( ephemeral devices etc ) as is. Select continue.
On the next page create a key pair and store on your computer. You only have to do this once as you can use the
same key over and over for multiple instances. You could proceed without it but for security best to do it.
select continue
Configure firewall. ( your not storing sensitive data so unless you really want to just select default. If you want to configure just follow the wizard ) Again same as key pair a configuration will be remembered so it's a do once deal.
select continue
you now get to review and change if your not happy.
select submit
a spot request will now be launched. Close the pop up box.
give it a few minutes and then hit refresh. Your instance should now be visible.
once the status says fulfilled your in business.
select instance on the LHS and it will show your running server.
click on the name of your server ( empty ) and change to whatever you want. Handy if you are running more than 1 server on more than 1 project
The next post will tell you how to monitor your instance....
easy !!!!
first off though you need an account with you're credit card and a phone call to verify account.
http://aws.amazon.com/ec2/
Log into your AWS Management Console Home.
select EC2 from the Amazon web services menu ( 2nd on the left )
this takes you to your EC2 dashboard.
Up on the top right hand side next to your name select the region you want. Currently N. Virginia is by far the cheapest.
On the LHS list select Spot Requests.
select Request Spot Instances button.
next you have to choose an AMI. Choose Ubuntu Server 12.04.2 LTS 64 bit. ( if you are familiar with other linux I guess you can choose that if you want but then your on your own. Windows servers cost more to run and for Boinc you don't need to even know Linux so not worth the money.)
Choose the Instance type. In this case C1 High-CPU Extra Large(c1.xlarge). This is the best value for money for doing Boinc as it gives you an 8 core Xeon
Next choose how much you want to pay. Currently lowest is $0.070 / hr. When cost goes above AWS will delete your instance so pick a sensible price. Normally $0.080 - $0.090 will do the trick. Go higher if you don't want it deleted.
Tick Persistent Request? If you tick this when your server is deleted and the price drops again a new image will be created. Unticked then your server is run once only.
Choose an availability zone or leave as No preference. ( Zone 1d) is deleted the most often, but thats no guarantee.
select continue
next you configure your instance detail...
for SIMAP paste the following below into the user data box. Replace the xxxxxxx with the weak authenticator key for your account available on your account details page in your Simap account. If you wanted to run more than one project then add a second - boinccmd --project_attach http etc below the first. Doing this will mean that if your AMI is deleted it will start again without you having to do anything.
#cloud-config
packages:
- boinc-client
runcmd:
- echo Attaching to BOINC project
- boinccmd --project_attach http://boincsimap.org/boincsimap/ xxxxxxx
leave everything else as is and select continue
leave the next page about storage device configuration ( ephemeral devices etc ) as is. Select continue.
On the next page create a key pair and store on your computer. You only have to do this once as you can use the
same key over and over for multiple instances. You could proceed without it but for security best to do it.
select continue
Configure firewall. ( your not storing sensitive data so unless you really want to just select default. If you want to configure just follow the wizard ) Again same as key pair a configuration will be remembered so it's a do once deal.
select continue
you now get to review and change if your not happy.
select submit
a spot request will now be launched. Close the pop up box.
give it a few minutes and then hit refresh. Your instance should now be visible.
once the status says fulfilled your in business.
select instance on the LHS and it will show your running server.
click on the name of your server ( empty ) and change to whatever you want. Handy if you are running more than 1 server on more than 1 project
The next post will tell you how to monitor your instance....
easy !!!!