Virtual Machines Flashcards
What does a virtual machine do?
Abstracts over the hardware of a single computer, providing multiple execution environments.
What are the types of virtualisation?
- Native/ Bare Metal
- Hosted/ Embedded
- Emulation
How does Native virtualisation work?
Hypervisor running directly on hardware.
Multiple OS images can be hosted
How does Hosted emulation work?
Host OS has a VM manager built-in
How does emulation work?
Interpreted, emulates a different machine
How are VM’s implemented?
VM instance hosts an OS. This is executed in user mode.
Emulates some or all of the instruction set of virtualised HW.
How does a virtual machine manager work?
Executes in privileged mode.
Interfaces with system hardware.
Privileged operations cause a trap to the VMM from VM.
VM Pros
Improved hardware utilisation.
Flexibility (Largely, hardware independent).
Protection throughisolation
VM cons
No direct sharing of resources (can be done in SW)
Performance penalties, sharing physical HW and emulation of some or all instructions.
Uses of VMs
Infrastructure provisioning
Software compatibility
Systems development (OS development or research, testing)