Test Flashcards
What is Virtualization in cloud computing?
An ability to run multiple (Virtual) OSes on a single physical system and share underlying HW resources
What are the Benefits of virtualization?
Run multiple/different OSes on a single machine
2. Consolidate underutilized servers to reduce CAPEX and
OPEX
3. Simplified management (rebalancing workloads)
4. Improved availability
5. Enforced security
What is a Hypervisor?
A virtual machine monitor creates and runs virtual machines
What is a Virtual Machine?
The virtualization or emulation of a computer system
What is Full Virualization?
A full virtualization of a computer
What is Paravirtualization?
Hypervisor enables virtual machine that are similar but not 100% identical to physical HW
What is OS-Level Virtualization?
An operating system virtualization paradigm in which the kernel allows the existence of multiple isolated user space instances, called containers, zones, virtual private servers, partitions, virtual environments, virtual kernels, or jails.
What is Application-Level Virtualization?
Abstracting an app from the underlying hardware it is running on
What are the Key Techniques in Full Virtualization?
Trap and Emulate
Binary Translation
What is Trap and Emulate?
Running a VM in two states, a User State and Kernel state, when a privileged instruction occurs there is a switch between the user state and kernel state by the hypervisor
What is the 4 steps in trap and emulate?
1 Privileged Instruction in user mode causes an error
2 Hypervisor gains control, executes operation as attempted by guest OS
3 Return control to guest OS in user mode
4 Call this Trap and emulate
Does trap and emulate has the same speed of execution with full virtualization?
No
What is a critical instruction?
A sensitive but non-privileged instruction
What is sensitive instruction?
Instructions that interact with hardware
What is non-sensitive instructions?
All other instructions
What is an example of a critical instruction?
File Writing
What is the purpose of Binary Translation?
To skip or modify the guest OS binary code blocks which include critical instructions and translate those critical instructions into privileged instructions which will be trapped by the Hypervisor for further emulation
What is Para-Virulization?
Similar the to Virtualization but it enables virtual machine that are similar but not 100% identical to physical HW
Does Para-Virtualization require OS modification?
Yes
Does Para-Virtualization require modification to the ABI?
No
What are the Pros of Full Virulization?
No Source Code Modification
Easy
What are the Cons of Full Virtulization?
Latency from OS/HW emulation
Hard to provide real-time guarantee
Latency to RAM (25%-75%) DISKIO (2%-20%) NETIO (10%) and CPU (7%)
What are the Pros of Para-virtualization?
Performance, Fast, Feasible for All CPU Architectures
What are the Cons of Para-virtualization?
OS Modification
Poor Portability
Precludes off the self OS and legacy version of OS
What is PUE?
1 + Non IT Equipment Power/ IT Equipment Power
What is VM migration?
The transfer of one VM from one machine to another
What are the three use cases of VM Migration?
Load Balancing
Maintenance
Fault Tolerance
What are the two types of migrations?
Cold Migration and Live Migration
How does Pre-Copy Live Migration take place?
1 Select target host for migration
2 Initialize a VM on the target host
Iterative Step Copy update memory from VM on host A to host B
3 Suspend VM on host A, Sync all remaining VM states to host B
4 Release VM from host A
5 Start VM on host b
How does Post-Copy Live Migration take place?
1 Activate VM on host A and B
2 Suspend VM on host A
3 Transfer VM state to target
4 Resume VM on host B
5 Copy memory Pages from A to B
What are the Pros of Pre-Copy live migration?
Shorter Downtime
High Performance after
migration
What are the Cons of Pre-Copy live migration?
Longer Migration Time
Network Utilization
What are the Pros of Post-Copy live migration?
Shorter Migration Time
Network Utilization