Setting up a Windows Azure trail for free Monero mining:
In this guide i will show you how to quickly and easily setup a Windows Azure VM (virtual machine) free trial to mine Monero (XMR). If you wanted to continue after the trail finishes you can but there is no obligation to do so, though it wouldnt be cost effective to do so. Its important to point out that although you will need a bank card to setup the trail it is
not used for billing, purely for ID once the trail ends everything will be shutdown for you so
wont incur any charges unless you then reactivate the account. Its not against the terms and conditions to use Azure in this way as of writing this but be sure to check the terms and conditions for yourself.
Before we begin you will need:
-A Microsoft account (e.g. Hotmail, live or outlook) if you haven't got one you can get one free here:
http://live.com -A bank card (Only used for identification, no charges will be made to the card)
-SSH software, for this guide i will assume most users will be using windows so I will suggest putty
https://www.putty.org/ (use the MSI installer)
Lets begin:
Navigate to the Windows Azure website:
www.azure.com/ You will notice banners for "Free Trial" click the link.
Screenshot:
https://imgur.com/5oLz2d4 -Login using your Microsoft account details
-Fill in your card details
Screenshot:
https://imgur.com/aEQ9Zt7 Once complete you will find yourself at the Azure Dashboard from here we can make our Ubuntu VM, I'm using Ubuntu for this guide for ease/speed and minimal requirements however you could use another OS but they wont be covered by this guide.
Create a new VM:
On the dashboard click the +New in the top Left of the page
Then select: "Ubuntu Server 16.04 LTS VM" (be sure to click on the words not the tutorial below)
Screenshot:
https://imgur.com/s6bSdWn Then fill in the form:
Screenshot:
https://imgur.com/UXN6oqX-Name: can be anything, i went with AkumaMiner
-VM disk type: SSD
-Username: I went with akuma but you can give it any name (lowercase no symbols)
-Passwords: If you can use a key, if you don't know how use a strong password.
-Subscription: Free Trial
-Resource Group: Any name you want, I used Akuma
-Location: Can be anywhere you like, the AkumaXMR pool is global so has a good connection internationally
Then click OK
Next we need to choose the size of our VM, as we will be mining via CPU we want as many CPU's as we can get for our free £150 or $200 in a month personally I used the D4S_V3 Standard (4 vCPU's), however you will be better off with F-series VM's, especially the V2 series VM's. (Thanks Generalheed).
Screenshot:
https://imgur.com/0xSOQQN The next page, settings can all be left default unless you want to change anything. Then on the final page agree to the terms and click create.
You should then be moved to the Overview page, if your not a new icon for your new VM should be on the dashboard, we need to know the VM's Public IP that can be found here.
Screenshot:
https://imgur.com/x70N2jR Now we know the IP we can connect via Putty (Windows) or the Terminal (Linux).
-Putty: open up putty and fill the host name with you username@PublicIPAddress e.g.
akuma@127.0.0.1 -Linux:
ssh username@PublicIPAddress
Screenshot:
https://imgur.com/yQV7sm1Type your password when prompted.
Now lets make sure our new box is up to date:
sudo apt update
sudo apt upgrade
Its most likely your box will be up to date but its good practice.
Screenshots:
https://imgur.com/xS4Bo1e https://imgur.com/9wNh2oo now lets install some dependencies:
sudo apt install screen libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev git
sudo add-apt-repository ppa:jonathonf/gcc-7.1
sudo apt-get update
sudo apt-get install gcc-7 g++-7
once this is complete we can download and build the miner using Git:
git clone https://github.com/xmrig/xmrig.git
cd xmrig
mkdir build
cd build
cmake .. -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7
make install
The miner is now built and ready to use, however if we want it to keep running after we close our SSH connection we will need to run it in screen, so we create a new screen:
Screenshot:
https://imgur.com/YNkTM7w You will now see a new blank terminal, enter the miners directory:
Screenshot:
https://imgur.com/uUqUcTR Now we need to start the miner with the correct parameters:
Screenshot:
https://imgur.com/UV9qMJm ./xmrig --donate-level 1 -a cryptonight -o stratum+tcp://pool.akumaxmr.com:3333 -u YOUR_WALLET_ADDRESS -p azure:test@e-mail.com
IMPORTANT: Use your own wallet address and email address in the example above. Now your mining! You can check the status of your miner at
https://akumaxmr.com, head to the Dashboard and put your wallet address in to see your worker stats.
Over the next few minutes you will see your diff increase while the pool works out your optimum performance. Also it may take a few minutes until your miner is shown on the pool website, this is because it waits for a valid share before you are added.
Now we can logout and leave it running in the background, hold
"CTRL" and the press "A" then "D" you are now detached from the screen session you can type "exit" to end the SSH connection.
If at any point you want to check on the miner you can SSH in like before then:
And that will put you back into the miner session.
*Updated: To show US $ and better VM choice.
*Updated: Added screenshots and reduced donation to lowest amount (1%)