Vỉtual Machines vs. Containers Flashcards
What is a VM
Replication of a computer system. It’s an atomic entity with all binaries and libraries required to run applications
What does a VM do
Abstracts computing, networking, and storage from physical hardware
Advantages of VM
Greater usage of physical resources.
Faster deployment.
Improved resilience, as it can be replaced
Improved scaling as we can as many VM’s as we want
Isolation of VM’s
Utilizes commodity hardware
Disadvantages of VM
Hypervisor impedes speed
Time consuming to launch many VM’s
Why does hypervisor impede speed?
Because it receives and translates requests from all guest OS’s
Where does t1 hpvs run?
System hardware. They are bare-metal embedded
Where does t2 hypervisor run?
Runs on host operating systems. They are softwares
Type 1 is dependent on host OS
False
Type 2 is dependent on OS
True. Therefore, if the OS crashes, the guest OS will crash too, even if the hpvs is secured
Main task of t1 hpvs
Share and manage hardware resources between guest OS -> small in size
Advantage of t2 hpvs
Since its dependent on the Base OS, base OS allows better specifications and policies
What are containers?
Unlike VM, container only package up executable code and application’s dependencies, that can be run on multiple environments
What does container image include?
Libraries, platform settings and tools.
Static container image becomes active when?
At run time
Why is container faster
It minimizes the bundle. Also, hypervisor layer is removed, it becomes faster and more efficently on host OS