What is Linux Virtual Machine A Linux Virtual Machine is an invisible Computer that uses the Linux Operating system (OS) and runs on a physical Computer which serves as the host.
Do you want to use a Linux alongside your present Operating System? following the steps you are going to learn in this article will help you achieve that.
Now follow me step by step as I walk you through how to create a Linux Virtual Machine.
1.Type Virtual Machine to the search bar and click Virtual Machines
2.Click +create and select Virtual Machine
3.On the Basics tab, you are going to create a resource group or select the one you have created earlier. To create a new resource group, click create new give your resource group a name and click OK, you can also click the dropdown sign to select a resource group you earlier created
4.(a)Give your Virtual Machine a name
(b)Click the dropdown icon and select region
(c)Click the dropdown icon and select availability options but in this article, we are selecting "No infrastructure redundancy required" because we are using an Azure free trial account
5.(a)Security type: Click the dropdown sign to select a security type but we are selecting standard due to the Azure free trial account that we are using
(b)The image is the Operating System (OS) so click the dropdown sign and select Ubuntu NOTE: Ubuntu and Linux are the same.
6.Administrator account Here we are going to select authentication type but in this article, we are selecting password.
(a)Select password
(b)Put your user name
(c)Put your password and confirm it
7.Inbound port rule Select "Allow selected ports"
By default, Select inbound port is SSH(22) click the dropdown sign and add HTTP(80) to it
8.Now, let's go to Monitoring
9.Disable the Diagnostic Disabling the Diagnostic does not allow your cloud service provider to have access to your work
10.Now got to Tags The tags helps to identify the department that owns a Virtual Machine for the purpose of accountability.
After filling the *tags * click Review + create
11.Wait for the screen to show validation passed
12.Click create to deploy your Virtual Machine
Wait for it to deploy
13.After it shows deployment is complete, click go to resource
14.Bravo! this is the Virtual Machine you just created, click on the public IP to increase the idle timeout
15.By default, the idle timeout is 4 minutes, click this line and drag it to 30 minutes and save
Click the name of your VM on the overview and go back to your Virtual Machine
16.Let's connect with our Linux Virtual Machine now. Click connect.
17.Copy this command and paste it in PowerShell and click enter, it will ask are you sure you want to connect? type yes and click enter

Here is it, you have successfully connected to your Linux Virtual Machine
18.Before you can do anything in your Linux VM, you must be a root user. that is, you must be in charge and the command to be a root user is sudo su. put sudo su and click enter
19.Congratulations, you are now a root user of the Linux VM you just created
20.The next thing is to update the Linux VM and the command to use is "apt update" put apt update and click enter. voila! your VM has successfully updated
21.Let us install Nginx on the server, the command to use is "apt install nginx -y and click Enter
22.Check the status to see if it's running with this command "systemctl status nginx. you can see the status is active (running)
23.Now copy the IP address of your VM and put it in a browser, this is how to do it Http:IP address and click enter.
This is what you will see after putting the IP address of your VM in a browser.
Thanks for reading, do not forget to like, share and drop a comment. Your questions are also welcome.
See you in my next article






















Top comments (0)