Skip to main content

Command Palette

Search for a command to run...

Virtual Machines and how to Create VM in AWS

Published
2 min read
Virtual Machines and how to Create VM in AWS
V

Hello! I'm a student passionate about becoming a Cloud and DevOps Engineer. I have a solid foundation in AWS Cloud, Linux, Docker, and Kubernetes.

You might have installed VMware and then installed Ubuntu on a Windows machine.
But how did that work? It was possible because of virtualization.

What is Virtualization

Virtualization is the technique or technology that converts a physical resource into a logical resource.
This is achieved with the help of a hypervisor, e.g., VMware, Xen, Citrix, etc. There are two types of hypervisors.

  1. Type 1 or Bare metal hypervisor - These are software that are installed on top of the underlying physical server.

  2. Type 2 hypervisor - These are software that are installed on top of the Host OS as an application, usually for learning purposes. You might have installed VMware and ran Ubuntu on top of that.

How to create a virtual machine in the cloud

  1. Log in to the AWS account and search for the service EC2.

  2. Click on Instances and then Launch instances.

  1. Give a name to the server and select an OS image of your choice.

    1. Choose instance type t2.micro

      1. Create a new key pair

      2. Then click on Launch Instance.

Congratulations to us! We just launched a virtual server in AWS.

How to connect to an EC2 instance

  1. You can simply click on the instance ID and get the option "connect" in the case of Linux.

  2. Open Git Bash and type

    ssh -i path_to_the_key ec2-user@IP_address

  1. Another way is to SSH into the server using tools like PuTTY, MobaXterm, etc.

We have successfully launched a virtual machine with a Linux operating system on AWS. This is a significant milestone, and now it's time to take the next step by learning some essential Linux commands and concepts in the next Blog.

More from this blog

Vishal Kerketta

14 posts