mludvig / aws-ethereum-miner Goto Github PK
View Code? Open in Web Editor NEWCloudFormation template for mining Ethereum crypto currency on AWS
CloudFormation template for mining Ethereum crypto currency on AWS
hi there,
many thanks for providing the template, I have applied it to our AWS Gd5 but it seems that its still not running although I can see the instance has been created successfully. Appreciate if you could enlighten us.
Also, would like to apply this to Google Cloud of Alibaba Cloud if it can also be done there, Open for Collabs or custom work if you're open to it.
First of all Thanks for everything you did <3
now my question: Etherminer only shows 1 worker in dashboard when actually 2 EC2 instances are running. Is it okay?
ail -f /tmp/ethminer.log
/lib/x86_64-linux-gnu/libc.so.6(+0x3efd0) [0x7f7fa1385fd0]
./ethminer() [0x493b8a]
./ethminer() [0x48d26a]
./ethminer() [0x48d54c]
./ethminer() [0x48fd86]
./ethminer() [0x48ff39]
./ethminer() [0x42a2d0]
./ethminer() [0x773aaf]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76db) [0x7f7fa1cf56db]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7f7fa1468a3f]
Hi, Is it okay to use a different pool.? I mean like Trex + 2miners.?
Great CF template.
is this cli correct?
aws cloudformation deploy --stack-name couldminer \
--template-file template-eth-default-vpc.yml
--profile test-aws
just want to ask.
Has anyone tried it and got it working? I tried to run the machine with the previous methods, but I was not successful with NBMiner and T-rex miners, I get the "no GPU detected" problem, I think the problem is caused by CUDA, still couldn't find a solution.
I suppose that it will be more cost efficient but also curious about how much return they will provide.
Do you have any experience about that new GPU instances ?
After create the instance the runner.sh is empty so ethermine can't be executed.
Hey Michael,
Great articles and background! I appreciate it!
I got instances to successfully launch using your template, but they didn't produce any results. I couldn't connect to them using SSM for some reason, so I couldn't really tell you what was going on.
What did work was to build the instance by hand, and add the ubuntu user to the "video" and "render" groups. Does that make any sense? If so, I'm not quite sure how to drop that into the YAML template, in which case I think I could create a new AMI.
Will post back here as I learn more, but if you have any thoughts in the meantime they are most welcome!
best Regards,
Tom Wood
Hi michael ,
Eithminer had /tmp/ethminer.log which we ususally tail or look to make sure instance are mining. But with new template in action is there is way to tail the logs?
Got following error in cloudformation:
The following resource(s) failed to create: [MinerAsg]. Rollback requested by user.
Logicalid: eth-mining
One or more security groups in the launch template are not linked to the VPCs configured in the Auto Scaling group (Service: AmazonAutoScaling; Status Code: 400; Error Code: ValidationError; Request ID: 86ca4481-6267-4aa0-89df-3258e20bf110; Proxy: null)
LogicalId: MinerAsg
Hi all,
Most of the times I create a stack I wont be able to see the worker in the dashboard. Even after waiting for hours.
Why is this happening? Is that the worker allocation is limited?
Error in Launching g4ad.16xlarge in the Canada and Ireland Region.
Hello! Great work!
My question: Will your templates work in Oracle web services? I have some free credits and want to use them to mine cryptos.
Thank you
Hello,
Wanted to know if it were possible to add Zcash or any other coins that are offered in ethermine.org to be profitable using the existing CF template?
Hi,
I'm tried to run your stack using a Cloudformation IAM role, but it fails in the beginning by giving me permission errors;
The following resource(s) failed to create: [LambdaExecutionRole, InstanceRole, NotificationTopic]. Rollback requested by user.
AWSCloudFormation is not authorized to perform: iam:CreateRole on resource: arn:aws:iam::5****07:role/ethminerA-LambdaExecutionRole-KV***
AWSCloudFormation is not authorized to perform: iam:CreateRole on resource: arn:aws:iam::5****07:role/ethminerA-InstanceRole-Q5***
AWSCloudFormation is not authorized to perform: SNS:CreateTopic on resource: arn:aws:sns:us-east-1:5****07:ethminerA-NotificationTopic-XE*** because no identity-based policy allows the SNS:CreateTopic action
Looks like the IAM role should be some additional permissions to more services.
If possible, please paste in your repo and add to the README the policy/role JSON you use.
Thanks!
Could you do a 1-1 video call on how to even set up a instance with me?
Hi Michael,
I was wondering if it would make sense to use a 3-yr ISP Effective Hourly (Linux) plan, which can be cheaper.
If so, can you set that option as a parameter?
Thanks
Thanks for your work in the AWS mining field, @mludvig !
I was looking around at the different instances with GPU's and I found the G4ad instances
.
They all seem to have AMD Radeon Pro V520 GPUs
that looks really good for mining.
This youtube video showcasing (a slight modified version of V520) 70 MH/s mining ETH!
https://www.youtube.com/watch?v=WMaPkCYJ1WA
The price of g4ad.xlarge linux on demand is just $0,38 pr. hour! I have done some calculations, and with this info it seems like its the pest price pr. MH/s coming in at 184 MH/s pr. $1 (Linux on demand price).
Have you tested the G4AD instances? If so, what was your results?
Hi Michael,
First thanks for this awesome template!
I am getting those errors, no matter the configuration...
Launching a new EC2 instance. Status Reason: Could not launch Spot Instances. UnfulfillableCapacity - Unable to fulfill capacity due to your request configuration. Please adjust your request and try again. Launching EC2 instance failed.
Status Reason: Could not launch Spot Instances. InvalidFleetConfiguration - Your requested instance type (p3.8xlarge) is not supported in your requested Availability Zone (us-east-2c). Launching EC2 instance failed.
Why launching instance from aws gui with "launch gui":
manually selecting ami-0476917f2861069bf (us-east-1)
(but tried also with Amazon Linux 2 AMI with AMD Radeon Pro Driver)
g4adxlarge instance type
ssh into instance
downloading ethminer
launching ethminer and getting:
Error: no usable mining device found
Hi Michael.
Getting the following message when CF is trying to create MinerAsg:
One or more security groups in the launch template are not linked to the VPCs configured in the Auto Scaling group (Service: AmazonAutoScaling; Status Code: 400; Error Code: ValidationError; Request ID: c5e48098-77fd-4082-a5cc-96cbf8bb4061; Proxy: null)
Tried searching on the message and reviewing the docs to no avail -- any assistance is appreciated!
c5
This could be used for RVN or ETC without to much hassle?
Any idea why the stack does not work on the new g5.xlarge instance type?
I've launched one instance of this on AWS. But how do launch multiple miners with multiple workers?
Also, how do I detect the hash rate for these things and benchmark them like you did? I want to try benchmarking them on other cryptocurrencies as well.
Will this instance run for 24 hours?
I requested capacity upgrade but AWS declined saying I need use what I have been assigned before I am able to request more capacity. How do I update the cloudformation template to use up my current capacity?
Hi, I noticed that you cant run ap-northeast-3 because there is not ImageMap for cuda.
Hey Michael, thank you for this repository! Great job! Do you have anything similar for RVN or DOGE? Thanks a lot!
Hi,
While Validating template in cloudformation-yaml. i received this error and couldn't run the template. I have only updated my eith wallet address in yml. everything remain same. I am doing something wrong ?
5/9/2021, 7:52:41 AM - Template contains errors.: Template format error: At least one Resources member must be defined.
Hi, I modified the code for the default vpc to download the miniZ miner and then run it with its command line options. I am not sure why, but when I upload this modified template, the process seems to get stuck on the Lambda function fluxminer-test-AsgUpdaterLambda-sur4A5k5pDIb and I cannot find any logs to tell me what's stopping it from creating instances.
template-flux-default-vpc.template.yml.zip
I can see that ethminer is being used. This is quite outdated and would cause low hashrate, hence low profitability.
I would suggest considering other miner software programs such as:
T-rex (NVIDIA GPUs only)
Teamredminer (AMD GPUs only)
lolminer (both GPUs)
Hey, thanks for this fabulous script that works without a hitch for eth!
I would like to know if it is possible to activate CPU and GPU mining to mine Zcash?
Have you already tested it maybe?
As a miner I would like to mine TON coin on AWS.
Thanks
For ethminer I noticed you can specify worker names using a format like 0x123456789012345678901234567890.Worker
.
Idk if in cloud template you can get instance id or some kind of worker index. I guess you could just a random number for each worker so it'll show up in pools dashboards like ethermine.
Hi all,
The form won't let me put in another server, like for example
us-eth.2miners.com:2020
How can I modify the yml?
Thanks
Cloud Formation Template uploaded and running. But i couldn't get any active workers and hash rate.
I have replaced my ETH wallet address and checked the miner address in ethermine, No active workers. I did connected SSH client to the instance.
Now how to check whether the mining starts on the instance or not? If not how to troubleshoot. Kindly help.
Hi Michael,
I have three instances running, two with no issues (each with 2/2 checks passed), both g5.xlarge. But there is a g5g.xlarge with 1/2 checks passed.
Is that one running but in an unproductive way? Is AWS charging me for that one anyway?
I tried to reboot that instance but didn't solve the problem.
.
I am getting the following error when launching the template with 'g4ad.2xlarge' specified:
Received response status [FAILED] from custom resource. Message returned: Error: No wanted instance types match the available types. (RequestId: 5*******-****-****-****-*********)
And the stack is getting rolled back.
However, I have no trouble launching the stack with 'g4ad.xlarge'/'g4ad.8xlarge' specified. And no problem launching g4ad.2xlarge instances (both Spot and On-Demand) with the given instance template manually from the console.
Hi, I'm trying to request a service limits increase in all relevant regions at once using your script tools/service-limits.py found here (https://github.com/mludvig/aws-ethereum-miner/blob/master/tools/increase-quotas.sh) but every time I open cloudshell and copy and paste I get a connection lost error with a sec... How do I paste that in to cloudshell in AWS..
Trying to increase as I'm hitting limitation on AWS EC2 instances..
Thanks for all your support in advance
I want to propose that we also use the CPU resources on these spot instances while mining Ethereum.
This can be done by spinning up something like XMRig and connecting it to a Monero wallet.
https://michael-ludvig.medium.com/mining-bitcoin-and-other-crypto-on-aws-eb172940059f
From your medium blog post, it seems you recommend ethminer but lolminer seems to be used in this CF - update your blog or this?
the instance is runnng but after waiting 2 hours still no hashrate recorded.
I read your article and another persons article about this setup and its really amazing how you made all this work so nicely. Could this be adapted for mind Ravencoin? I know it's probably not profitable, but the gamble is that it could become profitable at some point, so accumulating some coin would be nice. In fact, since we are on the subject, it would be cool to have a config file that would let you choose the miner to use for a particular coin. I'd love to mine a few of the less popular coins and see the results. Sadly, I am not a coder. :)
will throw a message like this on boot
Cloud-init v. 20.3-2-g371b392c-0ubuntu1~18.04.1 running 'modules:final' at Mon, 31 May 2021 09:34:36 +0000. Up 38.97 seconds.
ci-info: no authorized SSH keys fingerprints found for user ubuntu.
Cloud-init v. 20.3-2-g371b392c-0ubuntu1~18.04.1 finished at Mon, 31 May 2021 09:34:37 +0000. Datasource DataSourceEc2Local. Up 39.30 seconds
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.