Vỉtual Machines vs. Containers Flashcards

1
Q

What is a VM

A

Replication of a computer system. It’s an atomic entity with all binaries and libraries required to run applications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does a VM do

A

Abstracts computing, networking, and storage from physical hardware

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Advantages of VM

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Disadvantages of VM

A

Hypervisor impedes speed

Time consuming to launch many VM’s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why does hypervisor impede speed?

A

Because it receives and translates requests from all guest OS’s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Where does t1 hpvs run?

A

System hardware. They are bare-metal embedded

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Where does t2 hypervisor run?

A

Runs on host operating systems. They are softwares

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Type 1 is dependent on host OS

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Type 2 is dependent on OS

A

True. Therefore, if the OS crashes, the guest OS will crash too, even if the hpvs is secured

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Main task of t1 hpvs

A

Share and manage hardware resources between guest OS -> small in size

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Advantage of t2 hpvs

A

Since its dependent on the Base OS, base OS allows better specifications and policies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are containers?

A

Unlike VM, container only package up executable code and application’s dependencies, that can be run on multiple environments

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does container image include?

A

Libraries, platform settings and tools.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Static container image becomes active when?

A

At run time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Why is container faster

A

It minimizes the bundle. Also, hypervisor layer is removed, it becomes faster and more efficently on host OS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Disadvantage of container

A

Removes strong isolation between VM. Don’t worry we have linux namespaces :)

17
Q

Difference between VM and container.

A

Has guest OS | no guest OS
Run by hypervisor | created by kernel features of host os and layered file system

Fully self-contained | dependent on OS kernel

Large, slow | small, fast

Full copy of an OS and virtual copy of hardware | only executable code and required dependencies