VyOS for Raspberry Pi

Flash-and-boot VyOS rolling (arm64) images, built from VyOS's public sources with a Raspberry Pi kernel.

Unofficial community build, not affiliated with or supported by VyOS Networks. The Pi 5 image has booted on one real board (16 GB, from NVMe); the Pi 4 image has only run in QEMU. Fine for labs; keep a working router nearby.

Coming from the OPNsense GUI? The VyOS cheat sheet gives the CLI for DHCP, DNS, firewall, NAT, WireGuard and monitoring.

Boots in QEMU · untested on a board

Raspberry Pi 4

  • Boot: Pi EEPROM → UEFI (pftf/RPi4 v1.54-rc, RAM limit off) → GRUB → VyOS
  • Onboard Ethernet: bcmgenet (ACPI), built in the kernel
  • USB 3 NICs: RTL8153/RTL8156 (r8152), AX88179
  • No AES hardware, so VPNs are CPU-bound
Download for Pi 4
562 MB · sha256
Boots on a real Pi 5

Raspberry Pi 5

  • Verified on a 16 GB board: onboard RP1 Ethernet at 1 Gb/s, USB RTL8156B 2.5 GbE (r8152), NVMe boot, root partition grows on first boot
  • Boot: Pi EEPROM → VyOS kernel + initrd directly, mainline device tree (no UEFI)
  • Onboard Ethernet: RP1 (macb + mainline RP1 driver)
  • add system image upgrades: boot files follow on the FAT partition
  • AES hardware on Cortex-A76; fan not driven by the kernel yet
  • Console on the debug UART; HDMI shows only the firmware's screens
  • 2 GB and 16 GB (D0) boards need a release after 2026.11.16-1
Download for Pi 5
599 MB · sha256 · upgrade ISO

Pi 5 measurements

iperf3 between a wired 1 GbE Mac and the router itself, 15 s runs, on 2026-11-16 (sensr: 10 s runs on 2026-11-18). These measure the NIC, driver and CPU, not routing or NAT. All are a Pi 5 with 16 GB.

Mbit/s (TCP, 4 streams)Pi 5 eth0, Ubuntu 24.04 (same board, reference)Pi 5 eth0, VyOSVyOS Pi 5, LAN on USB RTL8156 (live router)OPNsense Pi 5, LAN on USB RTL8156 (live router)sensr Pi 5, LAN on USB RTL8156 (trial)
Into the router789727–739862–871600–612940
Out of the router924910–927927–928931–932932
Router CPU, average9–29%4–23%27–35%22–33%— not sampled

The Ubuntu column is Linux on the same board and port, run while pi5-1 was still on its SD-card Ubuntu; VyOS was run the same way once it booted. With 1 stream, VyOS took 789–818 Mbit/s in and up to 911 out. The two USB RTL8156 columns are like for like: both are live routers carrying household traffic, the same chip on the same switch, but different adapter units (OPNsense's adapter is now VyOS's Wi-Fi port). With 1 stream VyOS took 911–916 Mbit/s in on that port, OPNsense 591–594. VyOS's CPU there includes ntopng, which captures the port. The sensr column is its development trial on the same board, carrying its imported home-router config (Kea, Unbound, Suricata); both directions ran at line rate with the Mac's port as the ceiling, and forwarded through NAT to the internet it moved 436 Mbit/s up and about 717 Mbit/s down on the 1 Gb/s line. 940 Mbit/s is the Mac's 1 GbE limit.

Method, every run and the raw data: Pi 5 comparison.

Live router results: VyOS vs OPNsense through NAT, with Suricata

The same Pi 5 model replaced an OPNsense router on a real home network on 2026-11-16. Both were measured with the same scripts, from the same wired Mac, against the same public iperf3 servers, in 15 s runs, with household traffic flowing. Mbit/s with 8 streams, and the router's busiest core.

SuricataTestOPNsenseVyOS
Stopped
Download664
core 51%
591–790
core 83–87%
Upload441
core 45%
714–718
core 78–82%
IDS on the WAN, ET Open rules loaded
33k / 53k rulesDownload478
core 95%
544
core 99%
Upload340
core 56%
635
core 99%
IPS on the WAN (blocking)
netmap / NFQUEUEDownload264
p95 ping 59 ms
363
p95 ping 49 ms
Upload192
p95 ping 54 ms
374
p95 ping 119 ms

Every state, latency, CPU per core, the ntopng cost, the detection probes and the raw data: VyOS live-router results, side by side with the OPNsense baseline.

Startup on a real Pi 5: time until traffic flows

Real Pi 5 (16 GB), from the reboot commandopnsense-pivyos-pisensr (development build, ran on a Pi 5)
Kernel starts36–38 s14 s≈19 s (derived)
Traffic flowing (network up)64–67 s48 s≈34 s
SSH / UI ready65–68 s
web GUI
47–48 s
SSH
43 s
SSH; UI assets not packaged yet
Fully ready81–85 s48–49 s≈66 s

Timed from the reboot command, so shutdown, the Pi firmware and the boot loader come first (the "kernel starts" row): OPNsense boots through UEFI, VyOS straight from the Pi firmware. "Traffic flowing" is the LAN port up with an address; "fully ready" is OPNsense's last boot script or VyOS's config loaded. OPNsense from its own boot logs over 7 typical reboots (1 s resolution); VyOS from 2 warm reboots, its journal plus a 1 s external watcher. VyOS has no web UI, so its figure is SSH. The sensr column is its development trial (pi5-1, imported home-router config): on the box, kernel 0.6 s, initrd 4.7 s and userspace 41.9 s, LAN carrier 14.9 s, SSH 24.0 s after kernel start, and 43 s from the reboot command to SSH by wall clock; the kernel/traffic/ready rows are that 43 s less the kernel-to-SSH interval (≈1 s uncertainty). Method and every run: Pi 5 comparison, boot time.

x86 VM (relative only, not the Pi)
x86 VM, from VM startOPNsenseVyOSsensr
Traffic flowing14.5 s
17.7 s with 1k rules
30.7 s
120.6 s with 1k rules
10.7 s
config imported at first boot; 9.6 s with the factory config
UI/API ready15.4 s
19.4 s with 1k rules
39.4 s
>10 min with 1k rules
18.3 s
SSH/API; being optimised

OPNsense and VyOS from the sensr benchmark: median of 5 boots from virsh start, virtio, boot loader delays as shipped; "1k rules" is 1,000 rules plus a 10k-entry table. sensr from its own boot benchmark (nix/bench/boot-times.py) with the same definitions: x86 qcow2 under KVM, median of 5 (5 of 5 succeeded), from QEMU start including OVMF and systemd-boot's 1 s timeout; traffic flowing is a LAN client pinging the WAN host through NAT every 50 ms. A fix to sensr's SSH/API start-up order is in progress. These show relative start-up cost on fast hardware, not Pi 5 times.

Image size

Pi 5 download (.img.xz)Pi 4 downloadInstalled on disk*
opnsense-pi (release 26.7-4)1.32 GB1.32 GB~2.1 GiB (2,104 MiB)
vyos-pi (release 2026.11.16-2)599 MB562 MB~0.7 GiB (732 MiB squashfs)
sensr (development build, not released)~373 MB (.img.zst from CI; 2.1 GB raw)—~0.85 GiB (870 MiB x86 closure)

Downloads: the latest GitHub releases (this page updates the sizes from GitHub when it loads). *Installed: measured on x86 VMs in the sensr benchmark (OPNsense 26.7, VyOS rolling), not on the Pi images. The sensr row is measured on its development builds: the Pi 5 image as CI builds it (zstd), and the closure of the x86 qcow2 image.

Throughput ceiling on the Pi 5

Theoretical; not yet measured with 5 GbE dongles.

LinkCeiling
Onboard Ethernet1 Gbit/s
Each blue USB 3.0 port5 Gbit/s signalling (USB 3.x Gen 1, 8b/10b coding), so at most 4 Gbit/s of data. A 5 GbE RTL8157 dongle can link at 5 Gbit/s, but on a PC's Gen 1 port it moved 3.47 Gbit/s in iperf3 (4.70 on Gen 2). Expect about 3.5 Gbit/s per port. Each port has its own USB controller in the RP1 chip.
RP1 ↔ SoCPCIe 2.0 x4, about 16 Gbit/s each way, shared by both USB ports and the onboard Ethernet. It is not the limit with two dongles.
Drivervyos-pi's kernel is 6.18, and its r8152 driver does not know the RTL8157 (USB ID 0bda:8157; modinfo r8152 on a vyos-pi router has no 8157 alias). Mainline gained it in Linux 7.1. So today the fastest USB NIC that works is a 2.5 GbE RTL8156/RTL8156B, about 2.35 Gbit/s per port.
Through the routerThe lowest of the WAN port, the LAN port and what the CPU can forward. The firewall rules, NAT and Suricata set the real figure. Measured so far: through NAT on the live router (up to 790 Mbit/s with Suricata stopped, limited by the public test servers) and to the router itself.

Try it on a Pi 5 that already runs another OS (recommended)

pi-trial-install.sh writes vyos-pi to an NVMe or USB disk and boots it once through the firmware's tryboot, keeping Raspberry Pi OS or Ubuntu as the default. If VyOS fails in any way, the Pi comes back to the old OS by itself, with boot logs on its boot partition. Happy with VyOS: --commit makes it the default. How it works.

curl -fLO https://raw.githubusercontent.com/itpick/vyos-pi/main/scripts/pi-trial-install.sh && chmod +x pi-trial-install.sh
sudo ./pi-trial-install.sh https://github.com/itpick/vyos-pi/releases/latest/download/vyos-pi-pi5.img.xz /dev/nvme0n1
sudo ./pi-trial-install.sh --reboot

One-liner (Linux): a fresh card or disk

Writes the Pi 5 image straight to a disk. Replace /dev/sdX; everything on it is erased.

curl -fL https://github.com/itpick/vyos-pi/releases/latest/download/vyos-pi-pi5.img.xz | xz -dc | sudo dd of=/dev/sdX bs=4M conv=fsync status=progress

Or, in Raspberry Pi Imager, choose Use custom and select the downloaded .img.xz.

First boot

  1. Update the EEPROM bootloader first (Raspberry Pi OS: sudo rpi-eeprom-update -a).
  2. Optional, before the first boot: make a config.boot with seed-config.py (hostname, SSH key, LAN/WAN by MAC, DHCP, DNS, NAT, firewall) and copy it to vyos-pi/config.boot on the card's FAT partition.
  3. Boot. The root partition grows to fill the card. Log in on the serial console (Pi 4: or HDMI) as vyos / vyos and change the password, or SSH in with the seeded key.
  4. Without a seed, configure from the CLI: configure, then set interfaces ethernet eth0 address dhcp and so on (VyOS quick start).

Build it yourself

Needs Docker on an arm64 machine (Linux or an Apple Silicon Mac).

git clone https://github.com/itpick/vyos-pi && cd vyos-pi && make iso && make images