liveBook · Manning

QEMU

As explained in Rust in Action: Systems programming concepts and techniques

QEMU is an open-source machine emulator and virtualizer that runs operating systems and programs for multiple computer architectures.

QEMU is virtualization technology used to run an operating system for a supported computer architecture. In kernel development, it provides a fast environment for launching and rerunning a small experimental OS. section 11.1.1 section 11.7

Use QEMU as one part of a kernel-development toolchain:

  • Install QEMU alongside Rust, bootimage, cargo-binutils, and LLVM tools. section 11.1.1
  • Ensure qemu-system-x86_64 is available on the system PATH. section 11.1.2
  • Use the virtualized machine to run a bootable kernel and repeat experiments when the OS crashes. section 11.1.1 section 11.7

Verify QEMU

Run qemu-system-x86_64 --version. A successful installation reports the QEMU emulator version, such as 4.2.1. section 11.1.2

$ qemu-system-x86_64 --version 
QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.14)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers

Inspect a concrete QEMU version check and its successful command-line output. section 11.1.2

How Rust in Action: Systems programming concepts and techniques covers it

How deep it goes
Defines virtualization and demonstrates installation verification, but does not explain QEMU command-line operation.
Examples
Uses qemu-system-x86_64 --version to verify installation and displays QEMU emulator version 4.2.1.
What it assumes
Requires configuring Rust, bootimage, cargo-binutils, and LLVM tools alongside QEMU.
What you can do after
Operate/configure QEMU by placing qemu-system-x86_64 on PATH and checking its installed version.
How it connects
Connects QEMU with operating system kernels, boot images, Rust, cargo, and LLVM tools.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Rust in Action: Systems programming concepts and techniques. The section links point to the parts of the book it draws on.