MorphOS is an extensible networked operating system that addresses the runtime inflexibility of unikernels for dynamic, stateful network-intensive applications like Virtual Network Functions (VNFs). While unikernels offer superior performance (2-3× faster than Linux), their traditional update mechanisms require costly rebuilds and restarts, leading to service disruption and state loss.
MorphOS solves this by integrating eBPF into unikernels, enabling:
- Live reconfigurability without downtime or state loss
- Out-of-band verification via PREVAIL-based verifier with cryptographic signatures
- Hardware-assisted memory isolation using Intel MPK for security hardening
MorphOS is built on Unikraft, supports the Click Modular Router, and extends uBPF for JIT compilation.
This repository includes the MorphOS implementation, eBPF program examples, benchmarks, and tools for reproducing our CoNEXT 2025 evaluation. See REPRODUCE.md for measurement reproduction instructions.
The project is structured as follows:
.
├── benchmark: Contains the benchmarks for the system
├── ebpf: Contains the eBPF programs
├── examples: Contains some example eBPF binaries
├── helper: Contains a helper binary to, e.g., send reconfiguration packets to the Unikernel
├── libs: Contains the ubpf JIT compiler, and the (Morph)Click port for Unikraft, and Unikraft
└── verifier: Contains the external verifier for the eBPF programs
- Clone the repository with the
--recursiveflag to also clone the submodules - Install the
nixpackage manager - Run
nix develop .#fhsto enter the development environment with all system dependencies - Run
just downloadLibsto download unikraft libraries as pinned byflake.*
To build the unikernel, run the following command inside the project directory:
make buildTo build the external verifier, run the following command inside the verifier directory:
make buildTo build the example eBPF programs, run the following command inside the ebpf directory:
make allThis will automatically build all the eBPF programs in the ebpf directory. If you want to directly verify the programs and generate signatures, you can add the VERIFY flag.
make all VERIFY=1If you make any changes to the eBPF programs, you synchronize them with the vendored binaries inside the benchmarks and examples directories by running:
make syncFurther information about our ebpf build system: https://aya-rs.dev/book/start/development/
After completing all of the above, you can run the benchmarks:
# localhost doesn't support Interface.VPP (vhost-user):
python3 benchmark/pysrc/measure_throughput.py -c benchmark/conf/uk_localhost.cfg -vvv
# multihost:
python3 benchmark/pysrc/measure_throughput.py -c benchmark/conf/uk_adelaide_wilfred.cfg -vvv
See -h for more benchmarking options. When run on other hosts than adelaide, the config file and benchmark/conf/ssh_config_doctor_cluster may need adjusting.
To run the benchmarks, you can run the following command inside the benchmarks directory:
make setup
cargo benchThis will run the benchmarks and generate a report with the results.
cargo bench Criterion reports (startup and live-reconfigure):
The reports are stored in the target/criterion directory.
See the source files for what environment variables you can pass.
Ordinary cargo bench reports (throughput, memory, and latency) are stored directly in the target directory.
You may limit the tests to be executed, e.g., with cargo bench --features print-output --bench throughput -- --only="round-robin (BPFClassifier - JIT)".
Some benchmarks are implemented as ordinary rust binaries: cargo run --bin bench-helper --features print-output.
The examples folder holds multiple full examples with which the framework can be run. All examples except for chain and showcase can be setup using make setup and started using make run.
chain"chains" multiple VMs with different use cases to each other, as explained in Section 6.2.1 (Extensibility & Customizability). It can be started by usingmake setupfor creating the network devices, andmake upto start the VMs.dns-filterblocks all DNS resolutions against a specific domain.dropdrops all packets.ether-mirrormirrors the raw Ethernet packets back to the sender.passallows all packets.rate-limiterapplies token-based rate limiting on a per-IP basis.showcasecontains a TUI which allows live reconfiguration, triggering reconfiguration, sending packets, and visualizing all received and blocked packets. It can be setup usingmake setupand started by usingmake tui.state-migrationcontains an example which allows testing a state migration, as explained in Section 6.3 (State Migration). The state migration can be triggered by using the helper tools.strip-ether-vlan-headerremoves the Ethernet header from incoming packets.target-portblocks all packets to a specific port.udp-tcp-classifierclassifies packets, depending on whether they're TCP or UDP packets.
The helper subdirectory contains helpers for the framework:
cargo run -- reconfigure [PROGRAM] [SIGNATURE]: Sends a control packet to the VM and triggers reconfiguration for the BPF Element with ID 1cargo run -- send-packet: Sends a UDP packet to the VMcargo run -- send-tcp-packet: Sends a TCP packet to the VM
The verifier subdirectory contains the external PREVAIL-based verifier. After building it, it can be invoked using
build/ubpf_verifier -f [PROGRAM] -k keys/ec_private_key.pem -o [SIGNATURE_OUTPUT]Keep in mind that the supplied private keys are for test purposes only. They are deliberately shared to make it easy to test.
MorphOS: An Extensible Networked Operating System
Peter Okelmann, Ilya Meignan-Masson, Masanori Misono, Pramod Bhatotia
CoNEXT 2025
@article{10.1145/3768977,
author = {Okelmann, Peter and Meignan-{}-Masson, Ilya and Misono, Masanori and Bhatotia, Pramod},
title = {MorphOS: An Extensible Networked Operating System},
year = {2025},
publisher = {ACM},
address = {New York, NY, USA},
volume = {3},
number = {CoNEXT4},
url = {https://doi.org/10.1145/3768977},
journal = {Proc. ACM Netw.},
articleno = {30},
}