From d961d389743a12c0b3c6fc42da7086b79a70eb84 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Tue, 15 Sep 2026 14:33:39 -0400 Subject: [PATCH] Fix hermes-vm.service crash-loop: drop mismatched multi_queue tap flag QEMU's -netdev tap line never requests queues=N, so a persistent tap created with `multi_queue` fails TUNSETIFF with EINVAL on every attach attempt ("could not configure /dev/net/tun: Invalid argument"), crash-looping the VM indefinitely. Confirmed live on hl-fwdesk via `ip tuntap show` (tap flagged multi_queue, numqueues 0 - never successfully attached). vhost is already off in this design, so multiqueue bought nothing here anyway - just drop the flag from tap creation instead of adding matching queues= plumbing. Co-Authored-By: Claude Sonnet 5 --- modules/host.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/host.nix b/modules/host.nix index e7a5ea0..a747ed2 100644 --- a/modules/host.nix +++ b/modules/host.nix @@ -552,7 +552,7 @@ in path = [ pkgs.iproute2 ]; script = '' ip link show ${net.tapId} >/dev/null 2>&1 \ - || ip tuntap add ${net.tapId} mode tap user ${vmUser} multi_queue + || ip tuntap add ${net.tapId} mode tap user ${vmUser} ip link set ${net.tapId} up ''; preStop = ''