The current size of the blockchain is around 250 GB, which would never fit in the default size of the OS disk of our VM.
#INSTALL AZURE CLI ON LINUX VM FULL#
Resizing the OS diskĪ Bitcoin full node needs to download and verify the whole blockchain. Now that we have verified that we are able to log in via SSH, type exit to log out again as we have one step left to perform on the virtual machine. Select SSH and copy the text below ‘ Login using VM local account‘: This will open a pane where we will see the RDP and SSH connection option. Once that happened, go back to the overview page of your VM and click on ‘Connect’. After that, we will be redirected back to the CLI. This will open a new browser tab, where you need to log in to your account again. To be able to connect to our virtual machine, we need to log in to Azure first to obtain an access token for our session: az login Open the ‘ Microsoft Azure Command Prompt‘ on your PC. Let’s try if we can log in to our Linux VM via the Azure CLI. Once the machine is created, you should create a DNS label (hit the ‘Configure’ link at the VM’s overview page to get to the IP settings). Follow the rest of the steps in the creation wizard and create your virtual machine. The important part here is to NOT use managed disks as we will need to resize the OS disk after the creation of the VM. I did not select premium disks but instead went with a Standard HDD to save some money. Choose Ubuntu Server 18.04 LTS and hit the ‘ Create‘ button in the next window.
Go to the marketplace, and search for ‘ ubuntu‘. Once you have installed the CLI and your SSH keys are created, log into your Azure account. You can use either the OpenSSH client shipping with Windows 10 (latest versions), use the Azure CLI or PuTTY ( follow these instructions). The second prerequisite is a program to generate SSH keys.
We will use this one to connect to our virtual machine later on via SSH.
#INSTALL AZURE CLI ON LINUX VM INSTALL#
Setting up the Virtual Machine on Azureįirst, we need to install the Azure CLI on our computer. In this post, I’ll show you the steps that are needed for setting up an independent full node to support the Bitcoin network. It has been a while since I last touched Linux, so I had quite a bit to refresh and learn.
Of course, I choose Azure for running this server (for the time being). Recently, multiple circumstances made me thinking about my own crypto-related server. One year ago, I began my journey in the crypto and blockchain area.