Discova
Back to cards
Programming4 min readWikipedia, updated 29 November 2026

Bochs

Portable emulator and PC debugger

Bochs (pronounced "box") is a portable IA-32 and x86-64 IBM PC compatible emulator and debugger mostly written in C++ and distributed as free software under the GNU Lesser General Public License. It supports emulation of the processor(s) (including protected mode), memory, disks, display, Ethernet, BIOS and common hardware peripherals of PCs.

Many guest operating systems can be run using the emulator including DOS, several versions of Linux, Xenix, Microsoft Windows, BSDs and Rhapsody OS (precursor of Mac OS X Public Beta). Bochs runs on many host operating systems, including Android OS, Linux, macOS, PlayStation 2, Windows, and Windows CE along with its derivatives.

Bochs is mostly used for operating system development (when an emulated operating system crashes, it does not crash the host operating system, so the emulated OS can be debugged) and to run other guest operating systems inside already running host operating systems. It can also be used to run older software — such as PC games — which will not run on non-compatible, or too fast computers.

History

Bochs started as a program with a commercial license, at the price of US$25, for use as-is. If a user needed to link it to other software, that user would have to negotiate a special license. That changed on 22 March 2000, when Mandrakesoft (later Mandriva) bought Bochs from lead developer Kevin Lawton and released it for Linux under the GNU Lesser General Public License. Support for hosting on Windows XP ended with version 2.6.10.

Use

Bochs emulates the hardware needed by PC operating systems, including hard drives, CD drives, and floppy drives. It doesn't utilize any host CPU virtualization features, therefore is slower than most virtualization (as opposed to emulation) software. It provides additional security by completely isolating the guest OS from the hardware. Bochs also has extensive debugging features. It is widely used for OS development, as it removes the need for constant system restarts (to test code).

BFE, described as a "Graphical Debugger Interface for the Bochs PC Emulator", is a graphical interface for the debugger within the Bochs PC emulator that makes it possible to debug software step-by-step at the instruction and register level, much like Borland's Turbo Debugger.

Emulated hardware

Processor

Bochs emulates some Intel and AMD x86 processors starting from the i386 to modern Core and AMD64 (x86-64) architectures. It supports real mode, protected mode, virtual 8086 mode, and long mode (64-bit) and includes, depending on the processor chosen, support for FPU (x87), MMX, 3DNow!, SSE extensions, AVX extensions, AMX and hardware virtualization extensions (VMX/SVM). It is capable to emulate symmetric multiprocessing, allowing the emulation of multi-core/multi-CPU setups (up to 8 CPUs).

Motherboard

It is cabable of emulating a standard PC motherboard with the Intel i430FX, i440FX (PCI-based), and i440BX (with AGP bus support) chipsets as selectable options, alongside the ISA bus architecture. In addition, system controllers of such virtual motherboard are also emulated, including the Programmable Interrupt Controller (PIC - dual 8259A), Programmable Interval Timer (PIT - 8254), Real-Time Clock (RTC/CMOS), DMA controller (8237A), and Advanced Programmable Interrupt Controller (APIC / I/O APIC). The last one has basic support for modern OS power management if enabled.

The RAM memory is configurable up to several gigabytes.

Storage

Standard IDE/ATA disk controllers (supporting up to 4 drives) are supported, AHCI (SATA), and floppy disk controllers (supporting standard 3.5" and 5.25" disk images). The media types supported for the hard disk drives are flat images, growing/sparse images, VMDK, VHD, VHDX, etc; for CD-ROM/DVD-ROM drives are ISO files or physical host drives and finally there is support for floppy disks.

Graphics

You can choose a standard VGA device, with full register-level emulation of a standard VGA adapter. A Bochs VBE (VESA BIOS Extensions) is also available, which it is a custom virtual graphics adapter supporting high-resolution true-color modes (up to 2560x1600 and beyond). Other options are possible, including the emulation of the Cirrus Logic CL-GD5430 (ISA) and CL-GD5446 (PCI) adapters.

Voodoo emulation

Bochs emulates some graphic cards from 3dfx, including Voodoo1, Voodoo2, Voodoo Banshee, and Voodoo3 2D/3D accelerators.

Geforce emulation

Nvidia Geforce emulation was added in Bochs 3.1 (as experimental feature) and it provides AGP-based emulation for four models: GeForce 2 Pro, GeForce 3 Ti 500, GeForce FX 5900, and GeForce 6 6800 GT. Most 2D acceleration features are complete, while 3D rendering remains under development. It requires to select the i440BX chipset in motherboard config, assigned it to AGP slot #5 and an external original Nvidia VGA BIOS ROM to work properly..

Audio

As sound Cards, it emulates the Sound Blaster 16 (ISA) and Ensoniq AudioPCI (ES1370) cards, alongside the standard PC speaker.

Networking

As sound cards, it emulates NE2000 (ISA and PCI), Intel e1000 (Gigabit Ethernet), and Realtek RTL8139 network adapters. Networking can be routed via host TAP/TUN interfaces, SLIRP (user-mode NAT), or virtual socket hubs.

Peripherals

The input and ports compatible with the emulator include PS/2 keyboard and mouse, serial ports (UART 16550A), parallel ports, and a gameport (joystick). The USB is also supported, including UHCI (USB 1.1), OHCI, EHCI (USB 2.0), and xHCI (USB 3.0) host controllers, along with emulated USB devices like hubs, mice, keyboards, and mass storage sticks.

Device table

Adapted from the Wikipedia article, CC BY-SA 4.0. Continue on Wikipedia

Go deeper

Ideas this article links to.