Skip to content
mirkobrombinPublic

Repository files navigation

Raven

A Windows your apps recognize.

Website and documentation

Raven runs Windows applications on Linux. You install them with their own installers, the same ones you would use on a PC, and they start: no virtual machine, no winetricks, no DLL overrides.

The program's code runs directly on your CPU, inside a sandbox where it cannot reach Linux. Every call it makes to the system is answered by Raven, which plays the part of the Windows kernel and its services: processes and threads, files, the registry, windows and input. Graphics go to Wayland and Vulkan, with DXVK and vkd3d-proton for Direct3D.

Requirements

  • Linux on x86_64
  • CMake 3.20 or newer, a C++20 compiler and Python 3.11 or newer
  • MinGW-w64 13 or newer for x86_64 and i686, to build the Windows test programs
  • To build the installer components: clang, widl, bison and patch
  • Optionally, OpenSSL for crypt32's certificate chains, Schannel, HTTPS and the CryptoAPI ciphers
  • For desktop applications: Wayland, xkbcommon, pixman, FreeType and Vulkan
  • Optionally, for the experimental X11 desktop: libxcb with its xkb, xfixes and xinput extensions, and xkbcommon-x11

On Fedora these are:

sudo dnf install cmake gcc-c++ clang python3 bison patch wine-devel mingw64-gcc mingw64-gcc-c++ mingw32-gcc mingw32-gcc-c++ \
    wayland-devel libxkbcommon-devel pixman-devel freetype-devel vulkan-loader-devel vulkan-headers openssl-devel

The tested setup also uses libpng 1.6.59, a CPU build of Skia with the Liberation fonts, DXVK and vkd3d-proton; the scripts/provision-*.py tools download the pinned versions.

Installation

Raven is built from source for now:

git clone https://github.com/mirkobrombin/raven.git
cd raven
cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build build -j2

Then run an installer, or any program:

export RAVEN_PREFIX="$HOME/.local/share/raven/my-app"
build/native/raven --run-process --execution=native --timeout-ms=600000 --desktop=wayland setup.exe

This minimal build runs console programs and simple windows. Installers and most desktop programs also need the common controls, the shell dialogs and the installer services, which Raven builds from its own sources and, for the installer services, pinned upstream libraries, for both 64-bit and 32-bit programs. Without them a program stops at its first call into them, such as InitCommonControls:

python3 scripts/provision-rtl.py --output components/rtl
python3 scripts/provision-controls.py --output components/controls
python3 scripts/provision-controls.py --arch x86 --output components/controls32
python3 scripts/provision-installer.py --output components/installer
python3 scripts/provision-installer.py --arch x86 --output components/installer32
python3 scripts/provision-graphics.py --destination components/graphics
python3 scripts/provision-roots.py --output components/roots
python3 scripts/provision-text.py --output components/text
cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo \
    -DRAVEN_RTL_COMPONENT_PATH=$PWD/components/rtl/raven-rtl.dll \
    -DRAVEN_CONTROLS_COMPONENT_DIR=$PWD/components/controls -DRAVEN_CONTROLS32_COMPONENT_DIR=$PWD/components/controls32 \
    -DRAVEN_INSTALLER_COMPONENT_DIR=$PWD/components/installer -DRAVEN_INSTALLER32_COMPONENT_DIR=$PWD/components/installer32 \
    -DRAVEN_DXVK_PE64_DIR=$PWD/components/graphics/dxvk/pe64 -DRAVEN_DXVK_PE32_DIR=$PWD/components/graphics/dxvk/pe32 \
    -DRAVEN_VKD3D_PE64_DIR=$PWD/components/graphics/vkd3d-proton/pe64 \
    -DRAVEN_ROOT_CERTIFICATE_DIRECTORY=$PWD/components/roots \
    -DRAVEN_SKIA_SOURCE=$PWD/components/text/skia -DRAVEN_SKIA_LIBRARY=$PWD/components/text/cpu-fonts/libskia.a \
    -DRAVEN_FONT_DIRECTORY=$PWD/components/text/fonts
cmake --build build -j2

DXVK and vkd3d-proton are only needed for Direct3D programs and games. The Microsoft root certificates let installers check the signatures of the packages they download, as setups built with WiX Burn and the .NET and Visual C++ redistributables do.

On an X11 session, --desktop=x11 takes the place of --desktop=wayland. The X11 desktop is experimental; -DRAVEN_DESKTOP_WAYLAND=OFF builds Raven without Wayland at all.

RAVEN_PREFIX is the Windows installation the program sees, with its own C: drive and registry. Programs installed in the same prefix see each other, as they would on one Windows machine; a separate prefix is only needed to keep a program fully apart from the others. Raven takes a snapshot of the prefix before every installer, and build/native/raven --restore-prefix brings it back. When the installer ends, what it made belongs to the program it installed; a program nothing installed is known by its executable, and owns the folder it runs from inside the prefix. Each program writes what it owns, and whatever it makes where nothing was, in place for every program to see; what it changes anywhere else in the prefix goes to a layer only it sees, which build/native/raven --discard-layer NAME or the control panel throws away (--list-apps names the programs). The person's documents, the temporary folders and the registry keys Windows reads for every program, such as Run, Uninstall and file types, stay shared.

A program sees none of your Linux files except the ones you hand it: its own folder, the host paths on its command line, and what you choose in its file dialogs, which appear under Z: at their usual spelling. The file dialog runs apart from the program, sees your whole computer while you choose, and grants the program only the file or folder you chose. Anything else the program asks for is refused and noted in the prefix's sandbox.log.

The control panel (control.exe in the prefix) manages all of it: the folders programs may open, network access for the prefix, the refusals, snapshots, and the Linux programs the prefix may hand files to. A Linux program you expose appears to Windows programs as C:\Program Files\Raven\Host\NAME.exe and receives only the files the calling program reaches; for each kind of file or address you choose a program of the prefix, a Linux program, or to be asked. The settings live in sandbox.conf in the prefix.

On kernels with Landlock, Raven also confines itself: it reaches only the prefix, its own files, the system's libraries and devices, and the paths granted to the program, and a small helper started before the confinement opens what is granted later.

To run the tests:

ctest --test-dir build --output-on-failure -j1

The display tests start a headless labwc in /run/user/<uid>/raven-labwc-runtime, or raven-labwc-gpu for the hardware variants. Set RAVEN_TEST_RUNTIME to another directory to put them there, so that two runs on one machine do not share a compositor.

Some tests need software Raven cannot redistribute; point RAVEN_MINESWEEPER, RAVEN_NETFX_INSTALLER, RAVEN_NETFX35_PACKAGE, RAVEN_XNA_INSTALLER and RAVEN_REDIST_DIRECTORY at your own copies, or those tests are skipped. Each component under native/upstream records where it comes from and its license.

What works today

Area Status
32 and 64-bit programs Both, side by side in the same prefix
Installers NSIS, Inno Setup and Windows Installer (MSI) packages, with custom actions, rollback and elevation
Visual C++ 2005 to 2022 x86 and x64, alone or all together, reinstalled, older over newer
.NET Framework 4.8 Installs from Microsoft's offline installer; console, WinForms and WPF programs run
.NET Framework 3.5 Enabled from its package as Windows does; CLR 2.0 programs run
DirectX June 2010, XNA 4.0, OpenAL Install from their official redistributables
Direct3D 8 and 9 Through DXVK, including 32-bit programs
Direct3D 11 Through DXVK: every shader stage, compute, MSAA, deferred contexts
Direct3D 12 Through vkd3d-proton, including ray tracing
Side-by-side assemblies Manifests, WinSxS and activation contexts

Raven's own system libraries stay in charge even when an installer writes its own kernel32 or user32, while the redistributables an installer brings are the ones that load.

Tested applications

Each application is installed with its own installer into a fresh prefix and then started. Every stage that works adds 25%: install, start, main window, and a real workflow where one is automated.

Application Install Start Main window Workflow Score
Notepad++ 8.7.1 yes yes yes editing 100%
7-Zip 24.09 (EXE installer) yes yes yes not automated yet 75%
7-Zip 24.09 (MSI) yes yes yes not automated yet 75%
Audacity 3.6.4 yes yes yes not automated yet 75%
KeePass 2.57 yes yes no not automated yet 50%
VLC 3.0.21 yes no no not automated yet 25%
ClassiCube 1.3.8 portable yes yes singleplayer 75%
Minesweeper portable yes yes gameplay 75%

KeePass needs the .NET Framework 4.8, which a fresh prefix does not have yet. The Notepad++ workflow saves a file, closes and reopens it, appends to it, uses the clipboard and switches theme. scripts/benchmark-app-matrix.py runs the whole table again.

Benchmarks

The same programs on the same machine, against Wine 11.0 and Soda 11.0-32-experimental.

Process completion time

Time until the main window appears

Direct3D 11 frame rate

ClassiCube frame rate

ClassiCube 1.3.8, fixed seed 1, four rounds alternating Raven with each other runtime:

Runtime Median FPS Samples (FPS)
Raven 90.5 89, 94, 92, 90, 92, 90, 91, 89
Wine 11.0 85.5 86, 86, 85, 85
Soda 11.0-32 exp. 85.0 87, 86, 84, 83

Raven uses its default execution mode.

Component Value
CPU Intel Core i7-13700H (14 cores, 20 threads, up to 5.0 GHz); 8 logical CPUs available to the benchmark environment
Memory 31 GiB
Kernel Linux 7.3.5
Userland Ubuntu 26.04.1 LTS
Graphics Mesa 26.0.8 lavapipe (software Vulkan), two rendering threads
Display labwc 0.9.3, headless, one isolated instance per run

The workloads: a program that exits at once, a SQLite query over eight million rows, a Direct3D 11 triangle checked pixel by pixel, 2,000 Direct3D 11 frames at 256 by 256, the time to the main window of Notepad++ and of the ClassiCube launcher, and ClassiCube 1.3.8 itself (Direct3D 11 build, world seed 1, 640 by 480, view distance 128, frames counted from the fifth to the fifteenth second after the world loads).

The results were measured on 26 November 2026 at commit b672366d; process start-up and the two application windows were measured again at c8ec8591, which fixes how a new thread first gets its turn. Every runtime starts from a copy of a prefix it initialised beforehand. Each workload runs three times beside each of the other runtimes and the charts show the median; Raven's value is the median of its samples from both sessions. The Direct3D frames and ClassiCube alternate the runtimes, so a change in machine load weighs on both. The application runner looks for the window about every 50 milliseconds and cannot tell apart times closer than that. The Soda Direct3D 11 triangle did not finish within its 600-second limit. Software Vulkan keeps the numbers reproducible anywhere; a hardware GPU raises them for every runtime.

The chart data adds CPU time, memory and the SHA-256 of both measured runtimes; scripts/benchmark-charts.py draws the charts from it. The scripts scripts/benchmark-wine.py, benchmark-apps.py, benchmark-frames.py and benchmark-classicube.py run these workloads. The ClassiCube runner groups trials by runtime; use separate one-trial runs to alternate runtimes.

License

Raven's Linux runtime is licensed under GPL-3.0-or-later. Its own guest adapters listed in LICENSES.json remain MIT-licensed. Imported and derived components keep their own licenses and notices (GPL, LGPL, MIT, BSD, libpng, Unicode and Skia). Earlier MIT grants remain valid.

LICENSES.md records the component boundaries and distribution requirements; packaging describes how to include the corresponding sources and notices with a build.