DEV Community

Cover image for Virtual Machines
nnamdi nmarah
nnamdi nmarah

Posted on

Virtual Machines

What is a virtual Machine?

A virtual machine is a software-based emulation of a physical computer. It behaves like a real machine, complete with its own CPU, memory, storage, and operating system — but instead of running on physical hardware directly, it runs on top of a virtualization layer called a hypervisor.

With virtualization platforms like VMware Workstation, VirtualBox, or enterprise solutions such as Microsoft Hyper-V, you can create multiple isolated virtual computers on a single physical machine. Each VM can run a different operating system — Windows, Linux, macOS (with limitations), or others — completely independent from your main system.

  • Step 1: In the Azure portal, search for and select Virtual Machines

search for and select Virtual Machines

  • Step 2: Select + Create.

Select + Create

  • Step 3: Select Virtual Machine.

Select Virtual Machine

  • Step 4: Create a new Resource Group and give it a name. This helps to keep your work organized. Then select OK

Create a new Resource Group

  • Step 5: Select Availability zone. Notice you can select more than one zone, but this increases your bill

Select Availability zone

  • Step6 Give your virtual machine a name, it must be globally unique. Select a region.

Give your virtual machine a name

  • Step 7: Select an image. It's a template that contains everything needed to start a server instantly. We'll choose a windows version because we want to install a windows virtual machine

Select an image

  • Step 8: Give your virtual machine a username. Just a your physical computer has a name, the virtual machine also has. Notice the characteristics a username must possess.

Give your virtual machine a username

  • Step 9: Provide a password and confirm it.

Provide a password

  • Step 10: On the inbound port rules section, select Allow selected ports. Notice the caution. We'll select it because we need to test the virtual machine.

select Allow selected ports

If we select None, notice all internet will be blocked.

select none to see

Configure inbound ports to RDP for windows operating system. HTTP (80) is the port that helps you communicate with the internet.

Configure inbound ports to RDP for windows operating system

  • Step 11: On the Monitoring tab, disable boot diagnostics. Boot Diagnostics takes actual screenshots of the VM's console, it could theoretically capture sensitive information, so it's best practice to disable it.

disable boot diagnostics

  • Step 12: On the Tags tab, enter a name/value pair to help categorize your resources. Enter as many as you need, maximum is 14.

Tags tab

enter a name/value pair

  • Step 13: Select Review + create to validate the virtual machine.

Review + create

  • Step 14: Now that it has passed validation, select Create to deploy the virtual machine. Notice the price.

passed validation

select Create

  • Step 15: Wait for the virtual machine to deploy, then select Go to resources.

deployment in progress

deployment complete

Configure simple settings in the virtual machine and then connect it

  • Step 1: Under the settings section, select configuration and adjust the idle timeout to 30 minutes by sliding.

adjust the idle timeout

  • Step 2: Click "Connect" in the Azure VM blade.

Click

  • Step 3: Select download RDP file

Select download RDP file

  • Step 4 Open RDP file and then enter your credentials to login

Open RDP file

Open RDP file

Now we are connected to the virtual machine

connected to the virtual machine

connected to the virtual machine

connected to the virtual machine

Top comments (0)