Understanding Virtualization: Types, Memory, I/O, and Network Strategies
This article explains virtualization fundamentals, categorizes its various types—including emulation, full, para‑, OS‑level, library, and application virtualization—covers memory and I/O virtualization mechanisms, and describes networking approaches such as bridging, isolation, routing, host‑only, and NAT.
Definition
Virtualization refers to using virtualization technology to turn a single physical computer into multiple logical computers. Multiple logical computers can run concurrently on one machine, each with its own operating system and isolated applications, greatly improving overall efficiency.
Types of Virtualization
There are many categories of virtualization; the following are a brief overview:
Emulation : The underlying architecture does not need to match; software simulates all CPU rings (0‑3). Performance is low, so it is used less frequently.
Full Virtualization : Only the ring‑0 layer is virtualized. Binary Translation (BT) converts privileged instructions to the host's equivalents, requiring the guest OS kernel to remain unchanged. It is widely applicable but incurs performance overhead due to instruction trapping and translation.
Hardware‑Assisted Virtualization : Adds an extra ring (‑1) beneath ring‑0; privileged instructions are executed in ring‑1. This is a form of full virtualization supported by hardware (e.g., Intel VT, AMD-V).
Paravirtualization : The guest is aware it runs in a VM and makes hypercalls for privileged operations, avoiding instruction translation and offering higher performance, though it requires kernel modifications.
OS‑Level Virtualization : The hardware runs an OS kernel that hosts multiple isolated user‑space instances.
Library Virtualization : Example – Wine.
Application Virtualization : Example – JVM.
Implementation approaches:
Two main hypervisor types:
Type‑I (bare‑metal): Provides more thorough and reliable VM management.
Type‑II (hosted): Runs on top of a host OS and relies on host management tools.
Memory Virtualization
Memory virtualization allows guest OSes to use the same physical memory without interfering with each other. The guest’s virtual address (VA) is translated to a guest physical address (GPA) and then to the host physical address (HPA). Hardware assists with this via Extended Page Tables (EPT) on Intel or Nested Page Tables (NPT) on AMD.
TLB virtualization uses a tagged TLB to cache Guest‑object to HPA mappings, improving performance when supported by the CPU.
I/O Virtualization Methods
Emulation (full virtual) : Completely software‑based simulation of hardware (e.g., keyboard, mouse). Performance is poor.
Paravirtualization : I/O front‑end directly calls the back‑end driver, typically used for disks and network cards, offering higher performance.
IO‑through (pass‑through) : Directly assigns physical devices to a VM, bypassing the host OS; requires hardware support.
I/O driver models in VMMs:
Autonomous VMM: Provides its own drivers and console.
Hybrid VMM: Leverages OS‑provided drivers.
Hosted VMM.
Virtual Network
Various networking modes include:
Bridge : The host NIC acts as a switch, bridging traffic to VMs.
Isolation mode : VMs communicate only with each other, not with external networks or the host.
Routed mode : VMs communicate with external hosts via static routing.
Host‑only : No external communication.
NAT : Performs address translation between virtual and physical NICs.
These concepts complete a basic overview of virtualization fundamentals.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
MaGe Linux Operations
Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
