Intro to Virtualization Flashcards

1
Q

what is virtualization in a general sense

A

mapping resources, data, and interfaces to the underlying system

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

Characteristics of virtualization (3)

A
  1. Abstraction: simplify the underlying system 2. Replication multiple instances of interfaces and resources 3. Isolation: activities and data of one instance is isolated from another instance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Levels of Virtualization

A
  1. Multi-tenancy (application level) 2. Containers (OS Level) 3. VM (Hardware Level)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is multi-tenancy on the application level

A

an instance of a virtualized application isolated from others.

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

Advantages of Multi-tenancy

A

efficient resource utilization/strong isolation/SaaS is possible with this

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

Disadvantages of Multi-tenancy

A

limited flexibility/complexity means harder development/isolation is complex/ single point of failure

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

Security for Multi-tenancy

A

must have proper isolation/difficult when other components are involved

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

Future of Multi-tenancy

A

things are cheaper and less complex/isolation can be moved to VM/ no more single point of failure

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

What are containers on the OS level and what are some attributes

A

single instance of an OS…virtualized user environment…isolated against other environments. Less resource efficient but more flexible for the user

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

What is Docker and some attributes

A

a popular Linux container management layer. Portable deployment across machines/optimized for applications/automatically build images

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

Challenges with docker

A

one process per container meaning apps that require multiple processes (like database) will need multiple containers. No persistent storage so containers will need separate file system to access persistent data. Network setup is rigid

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

What is a VM

A

an isolated and efficient copy of the real machine

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

What is a VMM

A

software program that enables the creation, management and governance of virtual machines (VM) and manages the operation of a virtualized environment on top of a physical host machine. we call it hypervisor

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

Properties of VMM (3)

A
  1. Equivalence: a program running under VMM Should be identical to it running without VMM. 2. Resource control: VMM has complete control over all hardware resources. 3. Efficiency: majority of instructions executed without VMM intervention
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Two processor modes

A

User and supervisor mode

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

Three categories of machine instructions

A
  1. Privileged Instructions: executed normally when run in supervisor mode, traps in user mode. 2. Control sensitive instructions: attempts to change resource parameters or processor mode. 3. Behavior sensitive instructions: effect of execution is dependent on resource parameters
17
Q

Virtualization theorem 1

A

for any conventional 3rd gen computer, a VMM may be constructed if the set of sensitive instructions for that computer is a subset of the set of privileged instructions.

18
Q

Virtualization theorem 2

A

a conventional 3rd gen computer is recursively virtualizable if it is a) virtualizable and b) a VMM without any timing dependencies can be constructed for it

19
Q

What is paravirtualization

A

make guest OS aware of virtualization. replace operations requiring privileged instructions with calls to VMM directly. Guest user code remains unmodified. instead of emulating devices, provide virtual devices through a device driver

20
Q

which privilege level does the kernel run in

A

ring 0

21
Q

can gues OS run in level 1

A

yes but has to be modified

22
Q

What level do the VMM and host OS run in

A

level 0

23
Q

Which levels do the OS services run in

A

levels 1 and 2

24
Q

Which level do applications run in

A

level 3 the last level

25
Q

What is Type 1 hypervisor

A

VM runs in user mode/guest OS in VM thinks it’s running kernel mode/if guest OS calls sensitive instructions, hypervisor will trap and execute the instructions