DEV Community

Toluwani Oluwaloseyi
Toluwani Oluwaloseyi

Posted on • Updated on

HOW TO DEPLOY A LINUX VIRTUAL MACHINE

Cloud Computing is the delivery of an on-demand computing service over the internet to offer faster innovation, flexible resource and economies of scale. Especially data storage and computing power, without direct active management by the user.

A virtual machine, commonly shortened to just VM, is no different than any other physical computer like a laptop, smart phone, or server. It has a CPU, memory, disks to store your files, and can connect to the internet if needed. While the parts that make up your computer (called hardware) are physical and tangible, VMs are often thought of as virtual computers or software-defined computers within physical servers, existing only as code.

While virtual machines run like individual computers with individual operating systems and applications, they have the advantage of remaining completely independent of one another and the physical host machine. A piece of software called a hypervisor, or virtual machine manager, lets you run different operating systems on different virtual machines at the same time. This makes it possible to run Linux VMs, for example, on a Windows OS, or to run an earlier version of Windows on more current Windows OS.

And, because VMs are independent of each other, they're also extremely portable. You can move a VM on a hypervisor to another hypervisor on a completely different machine almost instantaneously.

Image description

The following steps must be properly followed properly in order to create a VM

STEP 1
login to your Microsoft azure account (portal.azure.com) and go to "search resources" and search and click on "virtual machines"

Image description

STEP 2
Click on create and choose "azure virtual machines"

Image description

STEP 3
Give the virtual machine a name, choose a linux server[Ubuntu server 20.04 LTS - x64 Gen2] , you can choose either "password" or "SSH Key". I chose password and filled in a username and password. Then click "review and create"

Image description

STEP 4
Make sure the validation passes and click on "Create"

Image description

STEP 5
Click on "go to resource"

Image description

STEP 6
On the top left, click on 'Connect' and select 'SSH'

Image description

STEP 7

Image description

STEP 8
Copy Command Text from line 2 and Paste in Line 3

Image description

STEP 9
Copy line 4 Command in step 8 and go to your macbook to search for terminal

Image description

STEP 10
What your macbook terminal looks like when open

Image description

STEP 11
n the macbook terminal, paste the copied command text 4 into your macbook terminal and delete the letters and figures circled in black

Image description

STEP 12
Macbook Terminal will prompt a command asking you to connect to serve Virtual Machine type; yes and click ENTER

Image description

STEP 13
Macbook Terminal will ask for the password of your Virtual Machine, type or paste the password you created in Step 3
NB - This password will not be visible while typing, nevertheless type it and press ENTER when done

Image description

STEP 14
HURRAY!!! You have connected to your Linux Virtual Machine. Simple as ABC!

Image description

*PLEASE NOTE: Always remember to shut down and delete your azure virtual machine after usage because its a pay-as-you-go service. This will help you save your credit and money.
*

Top comments (0)