Chapter 19 Flashcards

(42 cards)

1
Q

What are the three types of traditional hypervisors?

A

Type 0: Hardware-based virtualization built into firmware. Type 1: Bare-metal hypervisor runs directly on hardware. Type 2: Hosted hypervisor runs on top of host operating system

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

When is dual-booting better than VMMs?

A

When need maximum performance for resource-intensive applications. When hardware doesn’t support virtualization. When testing low-level system modifications. When avoiding virtualization overhead is critical

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

When are VMMs better than dual-booting?

A

When need to run multiple OS simultaneously. When frequent switching between systems is needed. When want isolation without rebooting. When sharing resources between systems

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

What are four virtualization-like execution environments?

A

Containers (Docker): OS-level virtualization sharing kernel. Language VMs (JVM): execute bytecode in virtual machine. Application virtualization: sandbox applications from OS. Emulation: simulate different hardware architecture

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

How do these differ from true virtualization?

A

Don’t provide complete hardware abstraction. Share host kernel or runtime environment. Cannot run different OS types. Less isolation than full virtualization

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

Why can’t some CPUs implement trap-and-emulate virtualization?

A

Some privileged instructions fail silently instead of trapping. Guest OS instructions may not generate necessary exceptions. Hardware doesn’t provide sufficient virtualization support. No way to intercept all sensitive operations

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

What method can VMMs use without trap-and-emulate?

A

Binary translation: rewrite guest code to replace problematic instructions. Paravirtualization: modify guest OS to cooperate with hypervisor. Hardware-assisted virtualization with modern CPU extensions

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

What hardware assistance do modern CPUs provide for virtualization?

A

Extended page tables for memory virtualization. Hardware support for guest/host mode switching. I/O virtualization extensions. Interrupt virtualization and APIC virtualization

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

What is Docker?

A

Container platform that packages applications with dependencies. Provides OS-level virtualization using Linux namespaces and cgroups. Enables lightweight isolated application environments

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

What is Docker image?

A

Read-only template containing application code libraries and dependencies. Used to create Docker containers. Built in layers for efficient storage and sharing

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

What is Docker container?

A

Running instance of Docker image. Lightweight isolated environment sharing host kernel. Provides process and filesystem isolation

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

How suitable is traditional computer for scientific simulation?

A

Excellent - maximum performance no virtualization overhead. Direct hardware access for optimization. Best choice for CPU-intensive workloads

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

How suitable is Type-1 VMM for scientific simulation?

A

Good - low overhead close to native performance. Some virtualization overhead but minimal. Can provide isolation while maintaining performance

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

How suitable is Type-2 VMM for scientific simulation?

A

Fair - higher overhead due to host OS layer. Additional context switching and resource management. May impact performance-critical applications

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

How suitable is Docker container for scientific simulation?

A

Good - minimal overhead shares host kernel. Fast startup and resource efficiency. May lack some hardware access for specialized computing

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

How suitable is traditional computer for testing malicious programs?

A

Poor - no isolation potential system compromise. Malware can affect entire system. Requires separate dedicated machine for safety

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

How suitable is Type-1 VMM for testing malicious programs?

A

Excellent - strong isolation between guest and host. Can easily reset/restore clean state. Hardware-level separation provides security

18
Q

How suitable is Type-2 VMM for testing malicious programs?

A

Good - provides isolation but host OS still vulnerable. VM escape attacks possible. Better than native but not ideal for malware analysis

19
Q

How suitable is Docker container for testing malicious programs?

A

Poor - shares kernel with host limited isolation. Container escape possible. Not designed for malware containment

20
Q

How suitable is traditional computer for video games?

A

Excellent - maximum performance and hardware access. No virtualization overhead for graphics/audio. Best gaming experience possible

21
Q

How suitable is Type-1 VMM for video games?

A

Fair - performance overhead affects gaming experience. Limited graphics acceleration support. May not support all gaming hardware features

22
Q

How suitable is Type-2 VMM for video games?

A

Poor - significant performance overhead. Graphics acceleration challenges. Input latency and compatibility issues

23
Q

How suitable is Docker container for video games?

A

Poor - limited graphics and hardware access. Not designed for interactive applications. Performance and compatibility issues

24
Q

How suitable is traditional computer for kernel testing?

A

Dangerous - kernel bugs can crash entire system. No isolation or protection. Requires separate dedicated hardware

25
How suitable is Type-1 VMM for kernel testing?
Excellent - complete isolation from host. Can test different kernels safely. Easy to reset and restore state
26
How suitable is Type-2 VMM for kernel testing?
Good - provides isolation for kernel development. Some overhead but acceptable for testing. Still safer than bare metal
27
How suitable is Docker container for kernel testing?
Impossible - containers share host kernel. Cannot test different kernel versions. Not applicable for kernel development
28
How suitable is traditional computer for web server?
Good - maximum performance but single application. No isolation or resource management. Efficient but inflexible
29
How suitable is Type-1 VMM for web server?
Excellent - good performance with isolation. Can run multiple services securely. Easy scaling and management
30
How suitable is Type-2 VMM for web server?
Fair - additional overhead from host OS. More complex setup and management. Less efficient resource utilization
31
How suitable is Docker container for web server?
Excellent - lightweight fast startup minimal overhead. Easy deployment and scaling. Perfect for microservices architecture
32
What is graceful application migration?
Application saves state to storage then terminates. Data copied to destination server. Application restarted from saved state. Involves downtime but simple implementation
33
What is live migration?
Transfer running application without stopping. Memory state copied while application continues. Brief pause for final synchronization. No downtime but complex implementation
34
How to compare graceful vs live migration?
Graceful: simpler implementation planned downtime data consistency guaranteed. Live: complex implementation no downtime requires specialized support
35
What is User-Mode Linux most similar to?
Most similar to Type-2 VMM or paravirtualization. Runs as user process on host Linux. Provides complete Linux environment with some performance overhead
36
What are advantages of container-based operating system?
Consistent application packaging and deployment. Strong isolation between applications. Efficient resource utilization. Easy application updates and rollbacks
37
What are disadvantages of container-based operating system?
Complex system administration and debugging. Potential performance overhead for simple tasks. Security concerns with shared kernel. Learning curve for users
38
Is container-based OS feasible?
Partially feasible for server environments and cloud applications. Challenges for desktop applications requiring hardware access. Would need hybrid approach with traditional applications for compatibility
39
What is difference between emulation and virtualization?
Emulation: simulates different hardware architecture (CPU instruction translation). Virtualization: abstracts same hardware architecture (resource sharing). Emulation slower but supports different architectures
40
How do containers achieve isolation?
Linux namespaces for process/network isolation. Control groups (cgroups) for resource limits. Separate filesystem views. User and permission isolation
41
What are VMware tools and guest additions?
Software packages installed in guest OS. Provide better integration with host system. Enable features like shared folders and clipboard. Improve graphics and mouse performance
42
What is nested virtualization?
Running hypervisor inside virtual machine. VM within VM capability. Useful for testing and development. Requires hardware support and performance considerations