Based on the Linux Master 2 exam syllabusReport an error
| Name | What it refers to | Example |
|---|---|---|
| Host OS | The operating system installed directly on the physical computer | Windows on my laptop |
| Guest OS | The operating system installed inside a virtual machine | Linux installed inside it |
| Virtual machine (VM) | One set of fake hardware created by the hypervisor | One machine with 2 CPUs, 4GB of memory, and a 20GB disk |
| Disk image | A single file on the host that acts as the guest's hard disk | rocky9.vdi |
| What virtualization gives you | Explanation |
|---|---|
| Server consolidation | Gathers several idle servers onto one physical machine to reduce wasted resources |
| Isolation | If one guest breaks, other guests and the host are unaffected |
| Snapshots | Save the state at some point and roll back to it later |
| Portability | Just move the image file and boot it as is on another machine |
| Category | Type 1 (native, bare-metal) | Type 2 (hosted) |
|---|---|---|
| Location | Directly on the hardware | On top of an operating system |
| Performance | Good | Relatively lower |
| Use | Servers, data centers | Personal PCs, testing |
| Examples | Xen, KVM, VMware ESXi, Hyper-V | VirtualBox, VMware Workstation |
Type 1 (native) Type 2 (hosted)
Guest OS Guest OS Guest OS Guest OS
───────────────────── ─────────────────────
Hypervisor Hypervisor ← just one more program
───────────────────── ─────────────────────
Hardware Host OS ← one extra layer
─────────────────────
Hardware| Category | Full virtualization | Paravirtualization |
|---|---|---|
| Guest OS modification | Not needed | Needed |
| Method | Imitates the hardware as is | The guest requests directly from the hypervisor |
| Performance | Average (improves with hardware support) | Good |
| Hardware support | Uses Intel VT-x / AMD-V | — |
| Representative | VirtualBox, VMware, KVM | Xen (early versions) |
The deciding criterion is "must the guest OS be modified?" Full virtualization works as is, without modification, while paravirtualization requires modification. In exchange, paravirtualization is faster.
Operating systems are built on the belief that they have the hardware all to themselves. When several such operating systems run on one computer, someone has to direct traffic.
Full virtualization Paravirtualization
Guest OS: "I write to the disk Guest OS: "Hypervisor, please write this"
directly" │ (knows it is a virtual machine)
│ (doesn't know it is a VM) ▼
▼ Requests directly via a hypercall
The hypervisor intercepts the command → no intercepting or imitating step
and imitates the real hardware to
handle it| Question | Full virtualization | Paravirtualization |
|---|---|---|
| Does the guest know it is a virtual machine? | No | Yes |
| How it asks the hypervisor to do work | Issues commands as usual → the hypervisor intercepts them | Requests directly with hypercalls |
| Can an OS that can't be modified (such as Windows) run? | Yes | Difficult (the kernel must be modified) |
| Why slow / why fast | The cost of intercepting and imitating | Skips that process |
On Linux, you check whether the CPU has this feature in /proc/cpuinfo.
grep -E -c 'vmx|svm' /proc/cpuinfo
# 4| Flag | Meaning |
|---|---|
vmx | Supports Intel VT-x |
svm | Supports AMD-V |
| Product | Made by | Type | Features |
|---|---|---|---|
| VirtualBox | Oracle | Type 2 | Released under GPL. Free. Full virtualization |
| VMware Workstation | VMware | Type 2 | Commercial. For personal use |
| VMware ESXi | VMware | Type 1 | For servers |
| KVM | Open source | Type 1 | Built into the Linux kernel |
| Xen | Open source | Type 1 | The representative of paravirtualization |
| Hyper-V | Microsoft | Type 1 | For Windows Server |
| QEMU | Open source | Emulator | Can imitate other CPUs too. Used together with KVM |
This is an item that appears on the exam exactly as the product spec.
| Item | Details |
|---|---|
| Developer | Oracle (originally Innotek → Sun → Oracle) |
| License | GPL (base package) |
| Type | Type 2 hosted |
| Virtualization method | Full virtualization (uses Intel VT-x / AMD-V) |
| Default image | VDI |
| Supported images | VMDK (VMware), VHD (Microsoft), HDD (Parallels) |
⚠️ The statement "VirtualBox supports paravirtualization" is presented as the wrong one. VirtualBox is a full virtualization product that uses Intel VT-x and AMD-V. On the other hand, the statement that it supports VMDK and VHD images is correct.
| Good to know | Details |
|---|---|
| Hosts it can be installed on | Windows · Linux · macOS · Solaris — it runs on many operating systems |
| Guest Additions | A bundle of drivers installed inside the guest. It enables shared folders, clipboard sharing, and automatic screen resolution adjustment |
| Extension Pack | A separate bundle containing some additional features. Unlike the base package, it is under a separate non-GPL license |
| Snapshots | Save and restore the current state of a virtual machine |
VBoxManage | A command-line tool for handling virtual machines without a window |
This is the material for questions that pair products with formats.
| Format | Full name | Made by |
|---|---|---|
| VDI | Virtual Disk Image | VirtualBox default |
| VMDK | Virtual Machine Disk | VMware |
| VHD | Virtual Hard Disk | Microsoft (the successor format is VHDX) |
| HDD | — | Parallels |
| qcow2 | QEMU Copy On Write | QEMU, KVM |
| Product | Type | Used for |
|---|---|---|
| VMware ESXi | Type 1 | Servers, data centers |
| VMware Workstation | Type 2 | Windows and Linux PCs |
| VMware Fusion | Type 2 | macOS |
| Item | Details |
|---|---|
| Origin | A research project at the University of Cambridge, UK |
| Type | Type 1 |
| Method | Started with paravirtualization, later also supports full virtualization (HVM) |
| Dom0 | A special domain that manages other guests and handles the hardware directly |
| DomU | Regular guest domains |
| Item | Details |
|---|---|
| Full name | Kernel-based Virtual Machine |
| Feature | The Linux kernel itself becomes the hypervisor |
| Type | Type 1 |
| Used together with | QEMU (device emulation), libvirt and virsh (management) |
lsmod | grep kvm
# kvm_intel 368640 0
# kvm 1028096 1 kvm_intel
virsh list --all
# Id Name State
# ------------------------
# 1 web01 running
# - db01 shut offkvm is the common module, and kvm_intel (Intel) or kvm_amd (AMD) is loaded alongside it to match the CPU. The 1 kvm_intel at the end of the kvm line means "this module is being used by one module, kvm_intel".virsh list --all shows even virtual machines that are powered off. Only running ones get an Id number; stopped ones show -.| Tool | Job |
|---|---|
| KVM | CPU and memory virtualization (kernel module) |
| QEMU | Device emulation such as disks and network cards |
| libvirt | A management layer that lets you handle several virtualization technologies the same way |
virsh | libvirt's command-line tool |
virt-manager | libvirt's graphical management tool |
| Category | Virtual machine | Container |
|---|---|---|
| Guest OS | Separate for each | Shares the host kernel |
| Size | Heavy (GB) | Light (MB) |
| Startup speed | Slow | Fast |
| Isolation level | Strong | Relatively weak |
| Examples | VirtualBox, KVM | Docker, LXC |
Virtual machine Container
App App App App
Guest OS Guest OS ─────────────────
───────────────── Container engine (Docker)
Hypervisor ─────────────────
───────────────── Host OS (one kernel shared by all)
Hardware ─────────────────
Hardware| Expression in the passage | Answer |
|---|---|
| "Without modifying the guest OS" | Full virtualization |
| "Modifies the kernel of the guest OS", "hypercall" | Paravirtualization |
| "Operates directly on the hardware" | Type 1 (Xen, KVM, ESXi, Hyper-V) |
| "Installed on top of the host operating system" | Type 2 (VirtualBox, VMware Workstation) |
| "Included in the Linux kernel, so the kernel acts as the hypervisor" | KVM |
| "Dom0", "University of Cambridge" | Xen |
| "Oracle", "VDI default, supports VMDK and VHD", "base package is GPL" | VirtualBox |
| "Imitates even other CPU architectures" | QEMU (emulator) |
| "Shares the host's kernel", "process isolation" | Container (Docker, LXC) |
Tomorrow we cover embedded systems and technology trends.
Click a choice to reveal the answer and explanation.
Question 1
Which of the following is the virtualization method that requires modifying the kernel of the guest operating system?
Question 2
Which of the following statements about VirtualBox is not correct?
Question 3
Which of the following is a Type 1 hypervisor that operates directly on the hardware?
Question 4
Which of the following statements about KVM is correct?
Question 5
Which of the following is a characteristic of container technology?