Virtual Machines Flashcards

(48 cards)

1
Q

A virtual machines abstracts a ______ computer into several different _________ environments

A

single, execution

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

Every execution environment thinks it runs on its own __________

A

computer

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

A virtual machine manager (VMM) is also called a __________

A

Hypervisor

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

What does a VMM do?

A

Create and run virtual machines which run guest OSs

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

There and VMM that are run by ______ and ______

A

hardware, software

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

Where does the VMM lie between the layers of Process, kernel, and hardware?

A

Between kernel and hardware

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

Review the virtual machine structure

A

Review the virtual machine structure

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

A VM offers ________ and ________ between host and guest OSs

A

protection, isolation

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

A VM can host different kinds of ___________ ______

A

operating systems

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

A VM can suspend, ______, clone, _______, migrate, and do _____ computing

A

resume, backup, cloud

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

When a guest attempts to execute a privileged instruction, a _____ is raised to the VMM in the real machine, the VMM ______ the action for guest, and there is a ________ since it is not run on hardware

A

trap, executes, slowdown

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

If CPU commands behave different based on privilege, the _____ and _________ cannot be used

A

trap, emulate

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

Trap and emulate is a method to handle ________ instructions

A

privileged

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

When a guest OS is in user mode, run commands on the _______ ____

A

physical CPU

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

When a guest OS is in kernel mode, what are 2 outcomes when an instruction is run?

A
  • Not Special Instruction: run natively

- Special Instruction: translate into a new set of instructions and execute via the VMM

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

The VMM maps guest page tables to _______ _____ _____

A

nested page tables (NPT)

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

Each guest OS pagin operation is translated to a _______ _____ _____ operation

A

nested page table

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

What are the 2 modes of operations for hardware acceleration?

A

host and guest

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

vCPU data structures load and store _____ CPU states quickly

A

guest

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

Guest memory is managed by _______ nested page tables

21
Q

The hardware translates addresses for guest OS _____ operations

22
Q

The VMM has to route ________ to the correct guest OSs

23
Q

What are 6 types of Hypervisors?

A
  • Type 0
  • Type 1
  • Type 2
  • Programming Environment Virtualization
  • Emulation
  • Containers
24
Q

In ______ Hypervisors, the hardware has a feature where it is partitioned and dedicated for different guest OSs.

25
In ______ Hypervisors, guests can host other _____
guests
26
In Type 1 Hypervisors, _______ OSs that manage other guest OSs run on hardware. Type 1s provide an ________ ____ for backup, monitoring, etc
custom, interface API
27
_______ Hypervisors are typical in data centers for consolidation
Type 1
28
_______ Hypervisors are application level virtual machine managers
Type 2
29
What is an example of a Programming Environment Virtualization?
Java Virtual Machine
30
_____ programs run within the JVM
Java
31
What is emulation?
Allows guest systems compiled for a different architecture compared to that of the host system
32
Emulation translates source system ________ to equivalent instructions on the target system
instructions
33
________ don't provide complete virtualization for applications that require the same OS but dont need complete virtualization
Containers
34
What are 5 core functionalities all Hypervisors have to manage?
* CPU Scheduling * Memory Management * I/O Management * Storage Management * Live Migration
35
VMMs map ______ to physical CPUs
vCPUs
36
Due to ________, time-of-day clocks in vCPUs are _______
scheduling, incorrect
37
Some VMMs include applications to correct ______ ______
clock drifts
38
Memory pressure is ____ when running VMs
high
39
VMs has double ________, which degrades performance
paging
40
VMMs detect the same pages loaded multiple times and keep them ____
once
41
____ is easy to manage in VMMs since drivers are loadable modules
I/O
42
VMMs provide direct I/O control to improve I/O __________
performance
43
In VMMs, the disk image is maintained is a _____ ____, making it easy for cloning, backup, and migration
single file
44
VMM storage management requires physical to virtual conversion of ____ _______
disk blocks
45
VMMs store multiple file systems as separate _______
images
46
Live migration is available only for ______ and ______ hypervisors
Type 0, Type 1
47
Live migration allows seamless _____ ________, server maintenance, etc
load balancing
48
Describe the general process of a live migration
1. Create Guest Target 2. Send all pages to Target 3. Terminate Guest Source