@ksaha ・ Nov 02,2021 ・ 1 min read ・ 1075 views ・ Originally posted on medium.com
In this post, we will discuss Hypervisor and container technology And we will compare them.
Hypervisor is a kind of software which allows us to have multiple virtual machines within one physical machine.
Basically, hypervisor will allocate the resources of the host physical machine (like RAM, CPU etc.) in between the virtual machines. This hypervisor provides portioning and isolation of the hardware and creates virtual machines, so it is also called virtualization hypervisor. So depending upon resource availability on the host machine, we can create a limited number of virtual machines. The virtual machines will have their own OS.
There are two types of Hypervisor.
This type of hypervisor runs directly on the hardware of the host machine. It does not need any underlying OS. This type of hypervisor directly talk with the hardware.
Example: Microsoft Hyper-V hypervisor, etc.
This type of hypervisor require an underlying OS, otherwise they can’t run. Since this hypervisor need OS of the hosted system, hence it is called “hosted hypervisor”. In this case, hypervisor will be installed on the OS as a software and hypervisor will communicate with hardware through OS.
Example: Oracle Virtual Box, VMware workstation etc.
Fundamentally, Container technology is a way to package an application and all its dependencies, so that the application can run reliably when we change the environment. That means container technology enables the portability and make sure that application can run with all dependencies, maintaining isolation from other processes.
Unlike hypervisor which virtualize the hardware of the host machine to create multiple VM, container technology virtualize the OS of the host machine to create multiple containers.
|Hypervisor, VMs||Container technology|
|Hypervisor virtualize the hardware of the host machine to create multiple VM.||Container technology virtualize the OS of the host machine to create multiple containers.|
|VMs are an abstraction of hardware.||Container technology is an abstraction of the app layer.|
|The created VMs need to have their own OS.||The created container use the OS of the host machine.|
|VMs take more space (e.g. RAM, ROM etc.)||Containers take less space (e.g. RAM, ROM)|
|Hypervisor is mostly used by cloud service provider to create required VMs on powerful hardware for customers.||Containers are used to run multiple copy of application.|
|Considering resource utilization, VMs are not cost-effective to run multiple copies of application.||Considering resource utilization, containers are much cost-effective compare to VMs to run multiple copies of application.|
|VMs do not provide efficient & flexible sharing and running option as containers.||Container technology enables us to share and run the application anywhere.|
|VMs are the result of using hypervisor.||Containers are the result of using container technology. Basically, we need to use container engine to create the containers.|
Thank you for your time.
Join other developers and claim your FAUN account now!
Only registered users can post comments. Please, login or signup.