TechnologyEmulator and virtualizer

QEMU

Also known as: Quick Emulator

Free and open-source machine emulator and virtualizer that runs operating systems and programs built for one processor architecture on another.

QEMU is a free and open-source machine emulator and virtualizer. It can emulate an entire computer, including the processor, memory and peripheral devices, so that an operating system built for one architecture, such as ARM or RISC-V, runs on a host with a different one. It can also run individual programs compiled for another processor in user-mode emulation. When the guest and host share an architecture, QEMU can hand execution to a hypervisor such as Linux KVM and run guests at close to native speed.

French programmer Fabrice Bellard released QEMU in 2003. Its core technique is dynamic binary translation: blocks of guest machine code are translated on the fly into host instructions through an intermediate layer called the Tiny Code Generator, and the results are cached for reuse. Device models emulate disks, network cards, graphics adapters and buses. The project grew into a large community effort, and its pairing with KVM, which entered the Linux kernel in 2007, made it a standard building block of Linux virtualization.

Much infrastructure relies on QEMU without naming it. Management tools such as libvirt and platforms such as Proxmox VE use QEMU with KVM to run virtual machines, the Android SDK emulator is derived from it, and developers of firmware and operating systems use it to test code for boards they may not own. It also supports software emulation for preserving programs written for older or unusual hardware. The trade-off is speed: pure emulation without hardware acceleration is much slower than native execution.

Key points

  • QEMU can emulate whole computers of many architectures or run single foreign binaries in user mode.
  • Dynamic binary translation through the Tiny Code Generator converts guest code into host instructions at runtime.
  • Paired with Linux KVM, it runs virtual machines at near-native speed on matching hardware.
  • Libvirt-based tools, Proxmox VE and the Android SDK emulator all build on QEMU.

Related entries

Glossary term

Virtualization

DevOpsHardware

Technique of creating software-based versions of computers, storage or networks so that one physical machine can host many isolated environments.

Glossary term

Hypervisor

DevOpsHardware

Software, firmware or hardware layer that creates and runs virtual machines, allocating physical resources among them and keeping them isolated.

Glossary term

Software implementation of a computer that runs its own operating system or programs in isolation from the physical hardware beneath it.

Technology

Proxmox VE

DevOpsFOSSHardware

Open-source server virtualization platform based on Debian that manages KVM virtual machines and Linux containers through a web interface.

Glossary term

Emulation

Video GamesFOSS

Use of software or hardware to imitate another computer system, allowing programs written for one platform, such as an old console, to run on another.

Technology

Linux

FOSSHardware

Free and open-source Unix-like kernel created by Linus Torvalds in 1991 that underpins Android, most servers and many embedded devices.

Glossary term

Kernel (Operating System)

HardwareFOSSProgramming

Core component of an operating system that runs with full hardware privileges and manages processes, memory, devices and system calls.