DEV Community 👩‍💻👨‍💻

Cover image for VIRTUAL MACHINES
Bruyo Emuavobor
Bruyo Emuavobor

Posted on

VIRTUAL MACHINES

A virtual machine is the virtualization or emulation of a computer system in computing. The functionality of a physical computer is provided by virtual machines, which are built on computer architectures.`

CREATING A WINDOWS VIRTUAL MACHINE AND CONNECTING IT WITH RDP

  • Login into your Azure portal.

Azure Portal

  • On search bar, search for virtual machine and click on it.

Search bar

  • Click on create virtual machine (select azure virtual machine).

create VM

  • Set up your virtual machine to a windows virtual machine and click on review/create.

Review/create

CONNECTING INTO REMOTE DESKTOP

  • Click on Go to resource.

Deployed VM

  • Click on connect, then select RDP.

RDP

  • Download the file.

  • Open the file on your downloads and type in your login details (the username and password created during the VM setup)

Login details

  • Click on connect.

  • Click on yes to access the remote desktop.

Access

HOW TO INSTALL A WEBSERVER ON THE REMOTE DESKTOP

  • Click on the windows menu on your remote desktop.

Remote desktop

  • Search for Windows Powershell and run as an administrator.

  • type in


Install-WindowsFeature Web-Server

Webserver

HOW TO ADD A DISK ON THAT WEBSERVER

  • Go back to your azure portal and open your created virtual machine.

Virtual machine

  • Click on disk on the menu bar and edit to your specification.

Disk

  • Click on save.

  • Open your Remote Desktop

RDP

  • On your the task bar click on search and type in


diskmgmt.msc

  • Click on OKAY to initialize your disk2

Disk

  • Right-click on disk2 and click on New Simple Volume (follow the process by clicking on next)

Disk2

CREATING A LINUX VIRTUAL MACHINE AND CONNECTING IT WITH SSH

  • Login into your Azure portal.

Azure Portal

  • On search bar, search for virtual machine and click on it.

Search bar

  • Click on create virtual machine (select azure virtual machine).

create VM

  • Set up your linux virtual machine and click on review/create.

linux

linuxM

LinuxVM deployed

  • Click on go to resource (to open your VM).

linux4

  • Click on connect (SSH)

Image description

  • Run powershell as administrator.

  • type


ssh username@ip address

  • Click Enter

  • Type in your password (used in creating your VM) and click Enter

linux

HOW TO CREATE AZURE COMPUTE GALLERY AND CAPTURE IMAGE OF THAT VIRTUAL MACHINE

  • Go to azure portal, on the search bar type azure compute gallery and click on it.

gallery

  • Click on create (to create gallery)

gallery creation

  • Set up your gallery and click on review/create

gallery review

  • Click on create (to create your gallery)

create gallery

gallery deployed

  • Go to your azure portal and open an already created virtual machine

VMImage creation

  • Click on capture

VMImage

  • Select your the gallery

Image gallery

  • Create a VM image definition

Image definition

  • Set the version details and click on review/create.

Image

  • Click on create

Image desc

Image desployed

  • Go to your azure portal and open the gallery you created.

Imagecaptured

Top comments (0)

Build Anything...


Use any Linode offering to create something for the DEV x Linode Hackathon 2022. A variety of prizes are up for grabs, inculding $1,000 USD. 👀

Join the Hackathon <-