01 Creating and connecting to VM

Learn Ethereum by Examples Part 1 Hello Ethereum world
16 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
This is a free item
$0.00
د.إ0.00
Kz0.00
ARS$0.00
A$0.00
৳0.00
Лв0.00
Bs0.00
B$0.00
P0.00
CA$0.00
CHF 0.00
CLP$0.00
CN¥0.00
COP$0.00
₡0.00
Kč0.00
DKK kr0.00
RD$0.00
DA0.00
E£0.00
ብር0.00
€0.00
FJ$0.00
£0.00
Q0.00
GY$0.00
HK$0.00
L0.00
Ft0.00
₪0.00
₹0.00
ISK kr0.00
¥0.00
KSh0.00
₩0.00
DH0.00
L0.00
ден0.00
MOP$0.00
MX$0.00
RM0.00
N$0.00
₦0.00
C$0.00
NOK kr0.00
रु0.00
NZ$0.00
S/0.00
K0.00
₱0.00
₨0.00
zł0.00
₲0.00
L0.00
QR0.00
SAR0.00
SEK kr0.00
S$0.00
฿0.00
₺0.00
$U0.00
R0.00
ZK0.00
Already have an account? Log In

Transcript

Hello everyone. So in this video we are going to talk about the zoo return em VM image and how to use that image to get started with learning material by examples. So the topic we are going to cover today includes creating VM from aetherium dedicate image. So this dedicated image will be made available in the Azure Marketplace from where you can create your own virtual machine from this image. Next, we will talk about connecting to that VM you you are going to create from the image. Third, we will understand the dev environment.

You know, what are the different components the environment consists of. And finally, we will have a demo sort of a Hello World demo to understand what it really is and how it works. So let's get started. So first of all, you need to have an account in a zoo. So as most of you will be aware, a zoo is the cloud service provided by Microsoft, you need to sign in to Azov to utilize the virtual machine. In case you don't have an account, you can just go to a zoo and create your account.

And they provide some free trial trial to get started with some credit, so you don't need to pay upfront for any of their services you can evaluate a zoo for without without any charts. So for that, in case you don't have any account, you just go to Google and search for other fees subscription. And here you can subscribe for their free offering. Okay, so I assume that you know, you go and create your Azure account. So once you create your Azure account, you can log into a zoo through their portal portal.zero.com. And once you log in, you will have your dashboard in front of you, which will which will look different for each account right.

So in my case, you know, I have different resources created so it looks like this. What you need to do is you need to go to virtual machines. Here in your case, you might not have any virtual machine created. For me I have one virtual machine right. So we are going to now go and create our virtual machine from the Ethereum development kit, available from Tech lettuce dotnet. So for that, we'll click on plus or add.

Now here, you need to search for the They will look men kit and you will see this option. So, you will select this virtual machine image criterium development kit you will see this option. So you need to select this option where you will see aetherium Development Kit decorators dotnet. Once you select this then you need to you will see this screen where you know it will give you details about what this titanium development kit is what are the different out of the box environments you are going to have. Like you know you will have the truffle aetherium framework in the VM built him in the VM. You will have the ganache test net, which is used for testing the blockchain.

It provides provides you a test RPC blockchain for testing your application. Then it comes with go implementation of aetherium which is also called get and it has many Ask Firefox plugin so this plugin is used when you are using any blockchain dap application, which is browser browser based. Then it comes with a Quran private blockchain, which is a fork of aetherium used for implementing transactions which you want to have security around which you don't want to be publicly available. So this quorum is the name implementation with privacy built in into the blockchain. And then there are hands on demos. So this page gives you all the details about the Ethereum Development Kit virtual machine available in the marketplace.

So then this virtual machine can only be deployed in the resource manager. So we'll, it will be selected by default, and we'll click on Create Then it will take you to the first page of your settings for the virtual machine where you need to provide the basic information. So, in this case we need to give the virtual machine a name, I will name it as aetherium they get online we will select HDD you can also go for SSD SSD it will be faster but you know it will incur more costs for this development environments is since it is not going to be you know very heavily you utilized by concurrent user it is not going to be in some sort of an online application we are okay with HDD. You need to give the user names so how are you going to now, how you want to connect to the machine so there are options.

You can have the authentication done through SSH public key or you can go with a password based option. dication So in our case, we'll go with password based authentication. I will give the password or here the password should meet the password criteria. It should be a combination of small character per character, spatial character numbers and then resource group. So resource group is where you know all the required resources to run your VM with machines. Like for example, the virtual network, the disk and everything are grouped together.

Okay, if you want to know more about it, you can click over here and there is a link to learn more about it. So we are not going to get into detail about what our resource group is. Here we are just going to select Create a new resource group. Okay. We will call this resource group as a DM To create environment. So group you need to then select the location okay sorry go with you is to us, you need to select the location which is nearest to your location so that you know you can connect the connectivity with the virtual machine is faster, then we'll click on OK.

It will take you to the next screen where you need to choose the virtual machine size. Okay, so for this virtual machine, we need at least two virtual CPUs and you can have four or eight GB of RAM. I will go with an eight GB RAM machine because you know that will give me a better performance. So then here are your options. Okay. So in my case, I will go for up to Ms. organ which is an ADB machine with two CPUs, I will select this, click on select, then it will take me to the third, third page where I need to provide some configuration details.

Okay. So in our case, we are going with HDD. We don't want any availability set for so availability set provides you a redundancy to your application since our application is not that much so mission critical will skip the availability set. Storage is HDD. We don't want any managed disk either. Okay.

So manage disk if you select the option as it will take care of the disk for data redundancy. You don't want that again you know there is a cost associated with the managers. Then storage account, we'll go with new storage accounts storage account is where the disk the virtual machines disk will be stored. And then the network interface again, we will go with a new network interface, there is a default subnet it will create. And then for publicly accessing the machine will have a new public IP created for it. So we'll go with all the default option.

Auto shutdown if you want to enable this one. Again, this is all this is also very good feature. Most of the time, I recommend having auto shutdown. So that you know by mistake if you forget to have your machine shut down, it will get automatically shut down after some time, right so here I'm getting 7pm UTC time for auto shutdown. Then you know if it happens to go for the auto shutdown, if whether you want to get notified or not. So in our case, I don't want to notify it.

So I'm having it switched off. If you are interested in receiving the notification, you can click on on provide your email id so that whenever auto shutdown happens, you will receive the notification. So again, I'm not going for that. Boost diagnostic. Again, this is an advanced feature. You don't need that.

Boot diagnostics, so we'll disable that. Okay, so you go with all these options, okay. HDD describe no management of this, a new storage account, new virtual network, default subnet, new public IP address, new security group and no auto shutdown and no boot diagnostic. One more thing if you see if you go to the NIC network security group, if you click over here, it will show you that there are two ports which will be open. Okay, for this new security group. One port is for RDP, remote desktop, through which we'll come For for a desktop based to a desktop based environment.

The other one is SSH, to connect to our machine via a terminal, it can be a putty or it can be if you are connecting it from another Linux machine, you can use SSH. Okay, so these, these ports will be open by default in the security group so that we can make the connection. Okay, so next time you click on OK and finally it will give you the summary of the configuration. Before creating the virtual machine, it will ask you for your name, preferred email address and phone number. So all these are required for providing you the support. And after you provide this information, you can click on Create Okay, so this will then start creating the virtual machine or provisioning the virtual machine and You will see the progress.

And once the multiple virtual machine is provision, you will see a notification saying that the virtual machine is up and running. Now, the deployment is complete. And in the notification, you can see, deployment succeeded if you go to your virtual machines, and here, this is our virtual machine we created it's, it's showing running. If I click on this, here, you will see there is a public address associated with it. So we can use this public address to connect to our virtual machine, either via SSH or via remote desktop, okay. So to connect, we can use this IP address or you know, this IP address is a dynamic public IP address.

So next time you restart this IP address might change. So a better option is you can configure a DNS DNS name For your virtual machine so that regardless of how many times you restart, you will have the same DNS name and you know your connectivity for your connectivity, you don't need to copy the public address the dynamically changing public address every time you want to connect. So, for that, I will click on this configure, I will give it a name name has to be smaller case if you click over here it is it has to be small case stadium they get to where okay and it will verify that this So, this DNS name it will check for the DNS name to be unique. And if once this tick is verified, you can then save this thing. So in my case, I gave this one and if you also created this virtual machine in the same same zone, then same region In that case, you know, you might you know come across some error.

So maybe you need to give 123 or some unique name over here. So I will save this and then I will be able to connect to the virtual machine. Okay, so these changes are saved. So now I can go to the DNS name, copy the DNS name, go to stock, I can say MST SC This is the command which opens the remote desktop, okay, or you can just go and search for remote desktop so it will open it will open the same application I will copy the in the DNS name of my virtual machine accept the certificate and it will get me connected to the environment. So here I need to provide the same username and password which I gave while creating the virtual machine. Okay, there is also you know an option to save this username and password when you are connecting for the first time.

So you can click on show option here itself, you can give the username and click on allow me to say the credential. So that next time you don't need to provide the password again it will directly get you connected. Okay. So now it is giving me an error. Sure, provide the same password. Okay, so now I got connected.

And this is our virtual machines desktop environment where we can we can do our development. The other option to connect is through a command line tool so you can now proceed okay. So you can go over here, get it downloaded. Okay, and then you can use that one. So, in my case I have it installed already. So I will open this and then copy the DNS name.

Since we are connecting for the first time, it allowed us to accept the certificate. And then I will give the same user ID password and now I'm connected. Okay. So you know, if you are comfortable with working on the command line, you can use this option. And if you want a user interface, we can go for that remote tech stop.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.