Posts by rene.duettra

1) Message boards : Documentation : Installing boinc client on Amazon Linux2 (EC2 spot instance) (Message 97557)
Posted 13 Apr 2020 by rene.duettra
Post:
Hi,

This thread is about this wiki page.

Following steps taken to fire up a boinc-client on Amazon EC2 spot instance, with boinc data deployed on EFS so it survives instance termination.

Hope it helps others when deploying boinc client on AWS cloud.

1. Login to AWS console, EC2 page
2. Launch instance e.g. c5.xxx (CPU optimized) one
3. Login to EC2 instance by SSH
4. Install boinc-client on AWS EC2 Amazon Linux2
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum localinstall http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install boinc-client

5. Rename /var/lib/boinc to /var/lib/boinc.tmp (we will move content to EFS later)
6. Login to AWS console, EFS page. Create EFS share. Optional: access point with boinc user/group ID
7. Install EFS tools and mount EFS share
sudo yum install -y amazon-efs-utils
sudo mount -t efs -o tls,accesspoint=access-point-id file-system-id efs-mount-point
/etc/fstab (to survive system restart): file-system-id efs-mount-point efs _netdev,tls,accesspoint=access-point-id 0 0

8. move content of /var/lib/boinc.tmp to EFS based /var/lib/boinc
9. Start boinc-client, add service
sudo systemctl enable boinc-client
sudo service boinc-client start

10. Add your project (lookup account key & attach project) e.g.
sudo boinccmd --lookup_account project-url email password
sudo boinccmd --project_attach project-url account-key


Happy data crunching!




Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.