DEV Community

prinok7
prinok7

Posted on

How To Create A Linux Virtual Machine on Azure and Access It On Your Local Windows Machine.

Introduction-
In Sub-Saharan Africa, the most ubiquitous computer systems most people come in contact with are the Windows Operating System made and marketed by Microsoft Corporation Redmond Washington United States of America. Due to the all pervading presence of Windows in Nigeria and else where in Africa, some people do not know there is another computer systems on which much of the internet is built on called the Linux/Unix System completely different from the usual Windows system known to most people in Nigeria and Africa. To know more about Linux click on this link-https://www.linux.com/what-is-linux/

It is possible to create a Linux VM on Azure and access same on your local machine via the following steps-
1.
Go to Azure portal and click on create virtual machine-
Image description
2.
Choose Ubuntu- a distribution of Linux.

  1. Fill the necessary fields and click on create as shown here- Image description
  2. Go to the created VM on azure portal and click on connect-(ensure the ssh private/public key is downloaded during creation of VM)as shown here-
    Image description
    5.
    Go to resources and Click on connect shown here-
    Image description
    6.
    Follow the instruction on this page as shown here(you must ensure you have already downloaded and installed WSL-Windows Subsystem for Linux-on your local machine- to download WSL on your local machine go to-https://learn.microsoft.com/en-us/windows/wsl/install. Make sure your local machine is enabled for virtualization in your system BIOS)-
    Image description

  3. Open the WSl terminal as shown here-
    Image description
    8.
    input these commands on the WSL command line interface- make sure the .PEM is in the root folder-
    Image description
    9.
    Input the commands and connect as shown-
    Image description

Conclusion- The above steps encapsulate how to connect to a Linux Virtual Machine created on Azure on a local windows machine running at least Windows 10.

Top comments (0)