Virtualisation and containers
Running multiple isolated systems on one machine with virtual machines or lightweight containers.
Edited by Alex C, EduAlx · Sources cited below
Explanation
Hypervisors (type 1: Xen, KVM, ESXi; type 2: VirtualBox) virtualise hardware. Containers (Docker, 2013) share the host kernel using namespaces and cgroups, starting in milliseconds. Kubernetes (open-sourced by Google, 2014) orchestrates containers at scale. Popek and Goldberg set out virtualisation requirements (1974).
Example
Code
# Dockerfile FROM python:3.12-slim WORKDIR /app COPY . . RUN pip install -r requirements.txt CMD ["python", "app.py"]
How it works, step by step
- Package app and dependencies into an image
- Runtime creates isolated namespaces
- cgroups limit CPU and memory
- Orchestrator schedules and scales containers
Open the interactive page with diagrams →
People behind it
- Gerald Popek
- Robert Goldberg
- Solomon Hykes
References
- G. J. Popek, R. P. Goldberg, Commun. ACM 1974, 17, 412–421.
Textbooks
- Operating System Concepts, Abraham Silberschatz, Peter B. Galvin, Greg Gagne (Wiley, 10th ed. 2018). The 'dinosaur book'.
- Modern Operating Systems, Andrew S. Tanenbaum, Herbert Bos (Pearson, 5th ed. 2022). Classic OS text.
Related topics
Cloud computingFile systems and storageOperating systems: processes, scheduling and memoryConcurrency: deadlock and synchronisationDistributed systems: CAP theorem and consensusPipelining and parallel processorsComputer security fundamentals (CIA triad)Memory hierarchy and cachesHash functions and digital signaturesAutomata and formal languages