Virtual Machines Flashcards

1
Q

What does a virtual machine do?

A

Abstracts over the hardware of a single computer, providing multiple execution environments.

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

What are the types of virtualisation?

A
  • Native/ Bare Metal
  • Hosted/ Embedded
  • Emulation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How does Native virtualisation work?

A

Hypervisor running directly on hardware.

Multiple OS images can be hosted

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

How does Hosted emulation work?

A

Host OS has a VM manager built-in

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

How does emulation work?

A

Interpreted, emulates a different machine

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

How are VM’s implemented?

A

VM instance hosts an OS. This is executed in user mode.

Emulates some or all of the instruction set of virtualised HW.

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

How does a virtual machine manager work?

A

Executes in privileged mode.

Interfaces with system hardware.

Privileged operations cause a trap to the VMM from VM.

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

VM Pros

A

Improved hardware utilisation.

Flexibility (Largely, hardware independent).

Protection throughisolation

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

VM cons

A

No direct sharing of resources (can be done in SW)

Performance penalties, sharing physical HW and emulation of some or all instructions.

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

Uses of VMs

A

Infrastructure provisioning

Software compatibility

Systems development (OS development or research, testing)

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