Day 15 - Virtualization and Containerization

Virtualization involves creating a virtual version of an operating system, server, storage device or network resources instead of the actual physical version. Through the use of software, virtualization simulates hardware functionality to create a virtual system that enables IT organizations to run multiple operating systems, virtual systems and applications on a single server. Virtualization offers greater efficiencies and economies of scale. OS virtualization specifically uses software to enable a hardware device to run multiple operating system images concurrently. This technology has been in use for decades on mainframes, allowing administrators to optimize expensive processing power.
How the Virtualization Works?
Virtualization works by creating a layer of software called a hypervisor, which acts as a mediator between the physical hardware and the virtual systems running on it. The hypervisor enables the creation of virtual machines (VMs) that can run operating systems and applications independently of each other on the same physical server.

Each VM is allocated a portion of the physical server's resources, such as processing power, memory, and storage, and is isolated from other VMs to ensure security and stability. The hypervisor manages the allocation of these resources to ensure that each VM has access to the resources it needs to function properly.
When a user interacts with a virtual system, such as running an application on a virtual machine, the hypervisor intercepts and redirects the hardware commands to the appropriate virtual system. This allows multiple virtual systems to run on the same physical hardware without interfering with each other.
In summary, virtualization works by creating a layer of software that enables the creation of virtual machines and manages the allocation of physical resources to these virtual systems. This allows multiple operating systems and applications to run on a single physical server, improving efficiency and reducing costs.
Containerization
Containerization is a virtualization technology that provides isolated environments called containers for running applications. A container is a lightweight, self-contained package that includes all the necessary elements to run an application, such as code, libraries, runtime, and settings.
How does Containerization work?
Containerization works by creating isolated environments called containers that share the host operating system kernel. Containers include all the necessary dependencies and configuration files needed to run an application, and they can be easily scaled up or down based on demand. Containerization software like Docker or Kubernetes manages the creation, deployment, and management of containers.

Virtualization VS Containerization
In simple terms, virtualization and containerization are two different ways of creating virtual environments for applications. Virtualization creates a complete virtual machine that emulates an entire operating system, while containerization creates a lightweight, isolated environment that shares the host operating system kernel.
The main difference between the two is that virtualization provides dedicated resources for each virtual machine, while containerization uses only necessary resources and shares them among multiple containers. Virtualization is good for running multiple operating systems on a single machine, while containerization is ideal for deploying applications more quickly and efficiently.
So, if you want to run multiple operating systems on a single machine, virtualization is the way to go. But if you want to deploy applications more efficiently and quickly, containerization is the better choice.
Thanks for Reading
Happy Learning
#90daysofdevops
Comments
Join the discussionNo comments yet. Be the first to comment.



