QEMU (Recommended)
QEMU is the primary development and testing platform for Redox OS and provides the best compatibility and performance.The Redox build system includes built-in QEMU support with optimized configurations for each architecture.
Quick Start
After building Redox, you can launch it in QEMU with:Architecture-Specific Configurations
- x86-64
- i586
- ARM64
- RISC-V 64
Default Configuration:
- Machine: Q35
- CPU: Core 2 Duo (or host CPU with KVM)
- Cores: 4
- Memory: 2048 MB
- Firmware: UEFI (OVMF)
- Storage: NVMe
- Network: Intel e1000
- Graphics: Standard VGA
- Audio: Intel HDA
QEMU Customization Options
You can customize the QEMU configuration using make variables:Hardware Acceleration
Hardware Acceleration
Enable KVM (Linux) or HVF (macOS):KVM/HVF is automatically enabled when the host and guest architectures match. Disable with
kvm=no.Storage Configuration
Storage Configuration
Change disk type:
Graphics Options
Graphics Options
Change GPU type:
Network Configuration
Network Configuration
Network options:Port forwarding (net=redir):
- SSH: localhost:8022 → guest:22
- HTTP: localhost:8080 → guest:80
- Additional: 8081, 8082, 8083, 64126
Audio Configuration
Audio Configuration
Audio options:
CPU and Memory
CPU and Memory
Adjust resources:
Debugging
Debugging
GDB debugging:GDB will listen on port 1234.
Advanced QEMU Examples
Serial Console
QEMU provides serial console access by default:Serial output is multiplexed to stdio. Use Ctrl+A, C to access the QEMU monitor.
QEMU Firmware Locations
The build system automatically detects firmware files: UEFI for x86-64:/usr/share/ovmf/OVMF.fd/usr/share/OVMF/OVMF_CODE.fd/usr/share/qemu/edk2-x86_64-code.fd
/usr/share/AAVMF/AAVMF_CODE.fd/usr/share/qemu/edk2-aarch64-code.fd
/usr/share/qemu-efi-riscv64/RISCV_VIRT_CODE.fd/usr/share/edk2/riscv/RISCV_VIRT_CODE.fd
VirtualBox
VirtualBox provides an alternative virtualization option with a graphical interface.Quick Start
After building Redox, create and launch a VirtualBox VM:- Delete any existing “Redox” VM
- Create a new VM with recommended settings
- Convert and attach the hard drive image
- Start the VM
VirtualBox Configuration
The automated setup configures:| Setting | Value |
|---|---|
| Memory | 2048 MB |
| Video Memory | 32 MB |
| Storage Controller | Intel AHCI (SATA) |
| Network | NAT with Intel PRO/1000 MT Desktop (82540EM) |
| Audio | Intel HD Audio |
| USB | Disabled (recommended for compatibility) |
| Keyboard | PS/2 |
| Mouse | PS/2 |
Manual VirtualBox Setup
If you prefer to configure VirtualBox manually:Attach storage
- Create a SATA controller
- Convert the Redox image to VDI format:
- Attach the VDI file to the SATA controller
Configure network
- Adapter 1: Enabled
- Attached to: NAT
- Adapter Type: Intel PRO/1000 MT Desktop
- Enable cable connected
VirtualBox Network Capture
The automated setup enables network packet capture:VirtualBox Serial Log
Serial output is logged to:Comparison: QEMU vs VirtualBox
| Feature | QEMU | VirtualBox |
|---|---|---|
| Performance | Excellent with KVM/HVF | Good |
| Compatibility | Best | Good |
| Setup | Automated via Makefile | Automated via Makefile |
| GUI | Optional (GTK/SDL) | Native GUI |
| Debugging | Built-in GDB support | Limited |
| Multi-arch | x86, ARM, RISC-V | x86 only |
| Recommended For | Development, testing | Desktop evaluation |
Live ISO vs Hard Drive Image
Redox can boot from either format:- Live ISO
- Hard Drive Image
Build and run:Advantages:
- No installation required
- Boot from CD-ROM
- Safe for testing
- Read-only system
- No persistence
- Slower boot
Troubleshooting
QEMU fails to start
QEMU fails to start
Check firmware installation:Install the appropriate UEFI firmware package for your distribution:
- Ubuntu/Debian:
ovmf qemu-efi-aarch64 qemu-efi-arm - Fedora:
edk2-ovmf edk2-aarch64 - Arch:
edk2-ovmf edk2-armvirt
Black screen after boot
Black screen after boot
Try different GPU options:
No network connectivity
No network connectivity
Check network configuration:
Poor performance
Poor performance
Enable hardware acceleration:And use VirtIO devices:
VirtualBox VM won't boot
VirtualBox VM won't boot
- Ensure USB is disabled
- Try switching graphics controller
- Check that the VDI conversion succeeded
- Verify SATA controller is set to AHCI
Next Steps
Running on Real Hardware
Ready to install Redox on physical hardware
Building Redox
Learn how to build Redox from source