tag
KVM
10 posts
virt-install Explained: Every Flag for an arm64 Guest
Twelve flags look like a lot to memorize. They're answers to seven questions — and once you know the questions, you can write the command for any guest from scratch.
Fixing virt-install on arm64: Security Violation, dnsmasq Port 53, and the qemu:///session Trap
Four failures stand between a correct virt-install command and a booting arm64 guest. None of them are documented well, and the error messages point away from the causes.
Installing the KVM Stack on Raspberry Pi OS: What Each Package Does
Nine packages, three layers. Then virt-host-validate reports four warnings and three failures on a healthy system — here's how to triage every line.
How to Check KVM Is Enabled on Raspberry Pi 5 (/dev/kvm, lsmod, dmesg)
Three commands confirm your host can run accelerated VMs — and one of them returns nothing on a Raspberry Pi, for a reason that confuses a lot of people.
Why VirtIO Is Faster Than Emulated Devices: Virtqueues and vhost-net Explained
Emulated devices are slow because they faithfully imitate hardware that was never designed for software. VirtIO throws that away and lets the guest cooperate instead.
What ioctl(KVM_RUN) Does: The VM Exit Loop Explained
One system call `ioctl(KVM_RUN)`, looped forever, is what running a virtual machine physically is. We zoom into it and VM exit loop in this article.
How QEMU Emulates Hardware: Device Models, MMIO, and TCG
Every device your guest sees is C code responding to memory addresses. Once you see the trick, QEMU stops being mysterious and its performance behaviour becomes predictable.
KVM vs QEMU vs libvirt: Who Does What
Three pieces, one running VM. Each exists because of a specific gap the layer below it leaves open — which is a better way to learn them than three definitions.
Why KVM Needs the CPU: ARM64 EL2, VHE, and the Virtualization Extension
KVM is a kernel module, but virtualization is a hardware feature. Understanding how those two relate is where most people's mental model of KVM breaks.
What a Hypervisor Is, and Where KVM Fits (Type-1 vs Type-2)
What a hypervisor is, why KVM does not fit the usual Type 1 versus Type 2 categories, and what it inherits from being part of the Linux kernel.