Virtual Machines Flashcards
(43 cards)
What is the fundamental idea of Virtual Machines?
Abstract hardware of a single computer into several different execution environments
What are the components of a Virtual Machine?
- Host - underlying hardware system (computer)
- VM manager (VMM) or hypervisor - creates and runs virtual machines
- Guest - process provided with virtual copy by the host
What is a Type 0 hypervisor?
Hardware based solutions that provide support for virtual machine creation and management via firmware
What is the difference between Type 1 and Type 2 hypervisors?
- Type 1 - operating system like software built to provide virtualization
- Type 2 - applications that run on standard operating systems but provide VMM features
What is paravirtualization?
Technique in which the guest operating system is modified to work in cooperation with the VMM to optimize performance
What is an emulator in the context of virtualization?
Allows applications written for one hardware environment to run on a very different hardware environment
When did virtualization first appear?
In IBM mainframes in 1972
What are the three formal definitions of virtualization?
- A VMM provides an environment for programs that is essentially identical to the original machine
- Programs running within that environment show only minor performance decreases
- The VMM is in complete control of system resources
What are the benefits of virtualization?
- Host system protected from VMs
- VMs protected from each other
- Snapshot and restore capabilities
- Clone VMs for research or development
- Run multiple OSes on a single machine
What is the purpose of nested page tables (NPTs)?
To maintain page-table state for both guests and the VMM
What is trap-and-emulate in virtualization?
When a guest attempts a privileged instruction, it causes a trap, allowing the VMM to gain control and handle the instruction
What is binary translation in virtualization?
A technique that translates special instructions into a new set of instructions that perform equivalent tasks
What is the role of hardware assistance in virtualization?
Provides additional support for virtualization features, improving performance and stability
What is the lifecycle of a virtual machine?
Created by VMM, resources assigned, can be deleted when no longer needed
What are the characteristics of Type 1 hypervisors?
- Common in datacenters
- Control and manage guest OSes
- Provide snapshots and cloning
- Run natively on hardware
What is paravirtualization’s impact on guest operating systems?
Guests must be modified to use VMM services, leading to increased performance
What is the difference between virtualization and emulation?
Virtualization requires the underlying CPU to be the same as the guest, while emulation allows a guest to run on a different CPU architecture
What is application containment?
Provides virtualization-like features by segregating applications without full virtualization
How does CPU scheduling work in a virtualized environment?
VMM manages CPU allocation among guests, which may involve oversubscription and scheduling algorithms
What methods does VMware ESX use for memory management?
- Double-paging
- Pseudo-device driver installation
- Balloon memory manager
Fill in the blank: A _______ provides an environment for programs that is essentially identical to the original machine.
VMM
True or False: Type 2 hypervisors offer better performance than Type 1 hypervisors.
False
What are the challenges of memory management in virtualization?
Oversubscription requiring extra management efficiency from VMM
What are the three methods of memory management used by ESX?
- Double-paging
- Pseudo-device driver installation
- Deduplication