Provision VM for ChainCoin Masternode on GCP(Google Cloud Platform)

in #chaincoin7 years ago (edited)

UPDATE Google does not allow cryptocurrency mining with their free trial. If you still wish to use it switch to a paid micro VM.

The scope of this guide is to outline the steps to prepare a VM on GCP that is sufficient for running a CHC masternode. I will not cover the steps for setting up & configuring the masternode as this is sufficiently covered other places (links at the end). So, why GCP?

  • Cost: $4.88/month (currently) with a micro VM.
  • Ease of use: I find the GCP interface more intuitive than others (like Amazon)
  • The GCP mobile app: With the GCP app you can monitor & administer your VM(s) from your phone (start, stop, even SSH).

Steps:

  • Give your project a name and click create:

  • Once the project is created open the project's VM Instances by using the menu button in the upper left corner:

  • Create new VM Instance:

  • Input desired VM instance name & select region (regions vary in price):

  • Machine type, select Micro. (Note, you can select a more powerful VM for the setup process, which may reduce the time for some steps to process. After you are done with the setup you can stop the VM and scale back down to Micro). Mine was set to the 1vCPU option for the setup process.

  • Boot disk & image: Select "Ubuntu 14.04 LTS" and configure a 25 GB standard persistent disk.

  • Expand the "Network" section and create a Network tag (i.e. "chaincoin") and note this as we'll need it for the firewall rule:

  • Click the "edit" pencil on for the Network interface and create a static External IP address:

  • Input desired name for the static IP, click reserve, click done:

  • Click Create at the bottom to create the VM:

  • After a minute or two your VM should be up and running. Note the external IP as you'll need it for your masternode config:

Setting up the firewall rule:

  • Click the menu button in the upper left corner and navigate to Networking and click Firewall rules:

  • Click "Create Firewall Rule"

  • Input desired name, ensure "Ingress" and "Allow" are selected:

  • For Target tags, input the network tag you created earlier (i.e. "chaincoin")

  • For Source IP ranges input "0.0.0.0/0"

  • For Protocols and Ports input "tcp:8333; tcp:11994"

  • Click Create:

  • You should now see your newly created firewall rule, verify it looks correct:

Create a baseline Snapshot! By creating a snapshot now we can revert back to our starting VM configuration should something go wrong with the masternode config/setup. Restoring a snapshot is much quicker than starting from scratch:

  • Stop your VM first (this may not always be required but it will ensure a consistent & valid file system)

  • Navigate back to your VM Instances, select the VM and click stop

  • Click Menu and navigate to Compute Engine, Snapshots:

  • Input a snapshot name, select the source disk for your VM, click Create.

  • Navigate back to your VM Instances and click Start

That's it! Your VM should now be ready for the masternode install and config.

Notes:

  • SSH - I did the entire setup just using the SSH feature in GCP. If you you desire to connect with Putty there are instructions in GCP on how to create your SSH keys.
  • File Transfer - There is a file transfer feature in the GCP console as well. I haven't used it much but it seems to work ok.
  • Android Console app - Check out the app, you can manage your VMs, SSH and even create snapshots from your phone.

Useful links:
ChainCoin masternode setup http://www.chaincoin.org/how-to-set-up-masternodes/
FB Group https://www.facebook.com/groups/313419965749502/
HighOnCoins Slack https://highonc.slack.com/

Sort:  

If you are running a masternode on GCP you'll want to switch to a paid micro VM. I discovered they don't allow mining in the free trial.

Could you please explain further? Were your MN's deactivated or something?

Mine was not deactivated as I am not using the free trial. You can still use GCP for hosting it but switch to a paid plan if you are using it for this. I heard about others that had their GCP account suspended because Google considers this cryptocurrency mining which is not allowed with their free trial. The solution is to pay for a micro VM.

Hey, I'm trying to set up a master node​ for a different coin (Neutron Coin). When I try to use the SSH feature in GCP, I get a failure message. Is there something I'm doing wrong?

Congratulations @albertsm! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You published your First Post
You got a First Vote

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Hi!
Awesome post! But how about more ROI?
Look at this - Virtus aka VRT is great masternode coin
https://masternodes.online/currencies/VRT/

vrt_income1.jpg
vrt_income3.jpg

Hi! We have an Steemit Crypto Blog Bounty running right now.
Maybe you want to write an article on Steemit about StakingLab.io and earn some Masternode / POS Coins :)

https://steemit.com/stakinglab/@tcubed/stakinglab-s-steemit-bounty

Congratulations @albertsm! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.030
BTC 65133.17
ETH 3480.37
USDT 1.00
SBD 2.52