Aws instance, minergate

NicholasHeltzelNicholasHeltzel Member Posts: 1
Hello,

I am new here. I have been frantically studying all over the web. And I have looked into mining on virtual machine instances on services such as azure, amazon web services, and google cloud.

I have found a few posts on mining with virtual machines. The most informative was how to mine ethereum on Amazon web services.

I have been cpu mining cryptonotes at home with minergate.

I would like set up an aws instance, similar to this........

jesus666 Posts: 62Member, Administrator, Moderator admin
May 2015 edited May 2015
@terzim setting an AWS instance is reasonably straightforward, but there are a few caveats. Also, this guide, for the most part, is not AWS-specific - the steps apply to any system with a minimal installation of Ubuntu 14.04 and a Nvidia graphics card.

Of course, you could use a pre-configured AMI with all GPU drivers installed. However, if you want to get your hands dirty and set everything up by yourself then this is how you do it:
get a g2.xlarge2 or g2.xlarge8 instance with a default install of Ubuntu 14.04
make sure to open port 30303 for both TCP and UDP connections from `anywhere` in your security group settings
ssh into your newly created instance
the default version of Ubuntu that comes with ec2 is pretty minimal and is missing some drm files which are required for your OS to see the GPU drivers. To fix that:
sudo apt-get install linux-generic (OK the default option when it prompts you to)
sudo reboot
now you need to download the CUDA drivers (ec2 instances use Nvidia units). Getting a .deb (local or network makes no difference) rather than .run package will make your life easier
wget http://developer.download.nvidia.com/compute/cuda/7_0/Prod/local_installers/rpmdeb/cuda-repo-ubuntu1404-7-0-local_7.0-28_amd64.deb
(or check https://developer.nvidia.com/cuda-downloads for a newer version)
sudo dpkg -i
sudo apt-get update
sudo apt-get install cuda
check your driver is now installed:
lshw -c video
check one of the lines that start with "Configuration:", should say something like driver=nvidia. if it doesn't you may need another reboot. What you definitely don't want to see is driver=nouveau. If you do, then something is not right - google how to get rid of it and reinstall cuda.
build geth from source: https://github.com/ethereum/go-ethereum/wiki/Installation-Instructions-for-Ubuntu#building-from-source
run geth and leave it to catch up on the chain: ~/go-ethereum/build/bin/geth
install ethminer from cpp-ethereum dev PPAs: https://github.com/ethereum/cpp-ethereum/wiki/Installing-clients#installing-cpp-ethereum-on-ubuntu-1404-64-bit
benchmark ethminer to check that your system is in order: ethminer -G -M (should give you your current hashrate, roughly 6MH/s)
You're almost done! Once geth has finished catching up on the blockchain, generate a new account: ~/go-ethereum/build/bin/geth account new
start it again with RPC enabled: ~/go-ethereum/build/bin/geth --rpc
start ethminer: ethminer -G
if you're using the larger g2 instance with 4 GPUs you many need to start ethminer 4 times, each time adding a --opencl-device <0..3> argument
now you should be able to see ethminer getting work packages from geth and hopefully even "mined a block" logs in geth.
PS. Yes, I do realise this is one of those "100 easy steps" guides LOL



except i would like to run minergate on that aws setup instead of ethminer.
and i would like to mine other cryptonotes such as monero or bytecoin, instead of ethereum.
and i would like to configure the aws instance to benchmark at around the 6mh/s mentioned above.

is it even possible to run minergate on aws with gpu instances mining cryptonotes such as monero at 6mh/s.???????????????????
at current profitability calculator's suggestions, it would be worth it.
can anyone look at this, and give me a reasonable guide on what to do?

Comments

Sign In or Register to comment.