This guide will cover the basic setup of an Azure account, including signing up, the creation of a vps, and configuring the network.
To create an Azure account you need:
- email address
- credit card (prepaid cards don't work, read more)
- phone number
To follow this guide you will need to (download) some additional software.
- putty.exe for SSH connection
- puttygen.exe to create keys for login
- pageant.exe to load the created keys
Before we start with Azure, let's create our login keys with puttygen.exe
- Start puttygen.exe, choose RSA and 2048 bits from the bottom.
- Click on "Generate"
- Choose a "Key comment" (for example: name of your node)
- Choose a "Key passphrase" and confirm it
- Save the public key & private key files
- Copy the content of the box on the top to a text file, we need this later
- Close puttygen
Open the Azure sign up website https://azure.microsoft.com/free and click start.
Choose "Create a new Microsoft Account" from the bottom of the page.
Fill out all the fields, verify your identity, agree to the terms of services and sign up.
Creating a VPS
Once you have signed up, you can log into https://portal.azure.com.
Go to "New", search for "Debian 8" and select it from the list.
Choose "Debian 8 Jessie" and click create.
Fill in the basic information and create a new resource group.
For "Authentication type" choose "SSH public key" and paste in the key you have created with puttygen and saved in a text file. The VPS location is based in the same location as the resource group.
If you want to find out more about resource groups, you can read about it here.
Go to "Size", select "View all"
For this guide, we will choose an "A1 Basic" sized VPS. Basically, anything with at least 1 CPU Core and 1.5GB RAM will work.
Go to "Settings", leave everything default besides "Public IP Adress". Monitoring is optional.
Click on "Public IP address" and change the assignment to "static". If you leave it to dynamic, the VPS will have a new IP after every shutdown from the Azure Dashboard
Check the "Summary" and click "OK"
The notification area will show the progress of the deployment. This can take from 5 to 15 minutes.
If the deployment succeeds, you will be notified.
The VPS is now created, so let's move on to the network settings.
From the left of the dashboard choose "All resources" and click on your "Network Security Group". In this case, the security group is called "Supernode". Choose "Inbound security rules" from the left.
Click on "Add" and enter the name, priority, and port similar to the screenshot.
You have to do this 3 times for NIS, servant, and Lightwallet.
- 7890 for NIS
- 7880 for servant
- 7778 for Lightwallet
When you are done it should look like:
Connect to VPS
After setting up the network we will try to connect to our VPS.
Go to "All resources" again and choose the network interface. Write down the "Public IP address".
Start pageant.exe and open "View Keys" from the tray icon.
Click on "Add Key" and select your saved private key (.ppk) you created earlier with puttygen. After the key is loaded, you can minimize pageant to the tray (but don't shut it down, it needs to run in the background).
Start putty and navigate to "Connection - SSH - Auth". Browse for your private key file (.ppk)
Navigate to "Connection - Data" and input your username in the "Auto-login username" field.
Go to "Session" and enter your IP in the "Host Name" field. Save the session (optional) and click "Open".
A console will open. Username and password is not needed, it will automatically load your username from putty and your key from pageant!
By default the user root is deactivated. To activate, log in as a standard user.
Type the following in the console:
sudo su -
Set a root password with:
After setting a password the root user is activated.
To login to your VPS you still need the standard user (with RSA-key login) but as soon as you are logged in, you can change to root with:
The VPS is now ready for installation.
For the installation, we will use Paul's guide (click here), since it has covered everything.
There is 1 value which you have to change:
Java -Xms768M -Xmx768M
Java -Xms1024M -Xmx1024M
Other than that you can follow the guide and your supernode will be set up correctly!
The NEM team would like to thank Patrick for this blog.