hypervisor
A virtualization layer, called a hypervisor, was introduced to act as a referee between virtual machines and allow each virtual computer to behave independently, like a physical computer.
it is (the software that divides the building safely)
Type 1 hypervisors run directly on the physical hardware, making them fast, efficient, and ideal for servers and professional environments.
Type 2 hypervisors run within an existing operating system, making them easier to install and ideal for learning, testing, or small setups.
Virtual Machine (VM) i
s a virtual computer created by the hypervisor.
Even though it’s virtual, it behaves as a real machine:
It has its own virtual CPU, RAM, storage, and network.
It can run any operating system (Windows, Linux, etc.).
It’s completely isolated from other VMs. This means that if one VM breaks, the others continue to work.
container
analogy: vm is the apartment
container is a room in the apartment
a lightweight, isolated environment that runs a single application and all the necessary components to support it. Instead of bringing a whole separate operating system, a container borrows the core of the existing system by running on the kernel, which is the part of an operating system that communicates with the hardware and manages resources such as memory and running programs.
Because containers share this kernel, they start quickly and use fewer resources than full virtual machines, but it also means they must match the host system’s type. For example, you can’t run a Windows container on a Linux machine.
isolated
They can run consistently on any machine, making them perfect for development, testing, and scalable deployments.
docker
The easiest way to deploy containers in a VM is using Docker.
Docker is an open-source software platform that simplifies the process of building, deploying, and running applications using containerization.