tribuchet: building on jamie Machine state will be reset. To keep it, pass --keep-machine-state start all VLans (finished: start all VLans, in 0.00 seconds) Initializing machine ID from random generator. Test will time out and terminate in 3600 seconds run the VM test script machine: waiting for unit herdr-eternal-server.service machine: systemd-nspawn running (pid 49) machine: Waiting for journal at /build/vm-state-machine/var/log/journal... nixos-nspawn(machine): TAP vde-tap1 not found; container will be isolated from VDE nixos-nspawn(machine): A common reason for this is that /dev/net is not available in the Nix sandbox. Try adding /dev/net to extra-sandbox-paths. Note: in a future version of systemd-nspawn the default set of permitted socket address families will be restricted to AF_INET, AF_INET6 and AF_UNIX. Use --restrict-address-families= to configure the set of permitted socket address families, or set RestrictAddressFamilies= in a .nspawn file. ░ Spawning container machine on /build/vm-state-machine. machine # [879185.254055] machine systemd-journald[57]: Journal started machine # [879185.254133] machine systemd-journald[57]: Runtime Journal (/run/log/journal/80e2b74f00d0427ba7ef578ac551946d) is 8M, max 4G, 3.9G free. machine # [879185.260788] machine systemd[1]: Finished Apply Kernel Variables. machine # [879185.270198] machine systemd[1]: Finished Create Static Device Nodes in /dev gracefully. machine # [879185.281347] machine systemd[1]: Starting Flush Journal to Persistent Storage... machine # [879185.281978] machine systemd[1]: Starting Create Static Device Nodes in /dev... machine # [879185.289545] machine systemd-journald[57]: Time spent on flushing to /var/log/journal/80e2b74f00d0427ba7ef578ac551946d is 1.746ms for 6 entries. machine # [879185.289545] machine systemd-journald[57]: System Journal (/var/log/journal/80e2b74f00d0427ba7ef578ac551946d) is 512B, max 4G, 3.9G free. machine # [879185.295604] machine systemd[1]: Finished Create Static Device Nodes in /dev. machine # [879185.295806] machine systemd[1]: Finished Flush Journal to Persistent Storage. machine # [879185.296906] machine systemd[1]: Reached target Preparation for Local File Systems. machine # [879185.297031] machine systemd[1]: Rule-based Manager for Device Events and Files skipped, unmet condition check ConditionPathIsReadWrite=/sys machine # [879185.389445] machine systemd[1]: Finished Firewall. machine # [879186.260707] machine systemd[1]: Mounting /run/wrappers... machine # [879186.296567] machine systemd[1]: Mounted /run/wrappers. machine # [879186.297214] machine systemd[1]: Reached target Local File Systems. machine # [879186.297970] machine systemd[1]: Listening on Boot Loader Control Service Socket. machine # [879186.298809] machine systemd[1]: Starting Create SUID/SGID Wrappers... machine # [879186.298834] machine systemd[1]: Update Boot Loader Random Seed skipped, unmet condition check ConditionVirtualization=!container machine # [879186.299532] machine systemd[1]: Starting Save Transient machine-id to Disk... machine # [879186.300235] machine systemd[1]: Starting Create System Files and Directories... machine # [879186.316816] machine suid-sgid-wrappers-start[172]: chmod: changing permissions of '/run/wrappers/wrappers.lelaOXK7Hc/chsh': Operation not permitted machine # [879186.317112] machine systemd-tmpfiles[165]: Cannot set file attributes for '/var/empty', value=0x00000010, mask=0x00000010, ignoring: Operation not permitted machine # [879186.317506] machine systemd-tmpfiles[165]: fchmod() of /var/log/journal failed: Operation not permitted machine # [879186.317834] machine systemd[1]: suid-sgid-wrappers.service: Main process exited, code=exited, status=1/FAILURE machine # [879186.317858] machine systemd-tmpfiles[165]: fchmod() of /var/log/journal/80e2b74f00d0427ba7ef578ac551946d failed: Operation not permitted machine # [879186.317934] machine systemd[1]: suid-sgid-wrappers.service: Failed with result 'exit-code'. machine # [879186.318214] machine systemd-tmpfiles[165]: fchmod() of /run/log/journal failed: Operation not permitted machine # [879186.318281] machine systemd[1]: Failed to start Create SUID/SGID Wrappers. machine # [879186.322640] machine systemd[1]: Finished Create System Files and Directories. machine # [879186.376359] machine systemd[1]: etc-machine\x2did.mount: Deactivated successfully. machine # [879186.387226] machine systemd[1]: Finished Save Transient machine-id to Disk. machine # [879186.389327] machine systemd[1]: Starting Rebuild Journal Catalog... machine # [879186.390049] machine systemd[1]: Starting Record System Boot/Shutdown in UTMP... machine # [879186.401497] machine systemd[1]: Finished Record System Boot/Shutdown in UTMP. machine # [879186.407971] machine systemd[1]: Finished Rebuild Journal Catalog. machine # [879186.408847] machine systemd[1]: Starting Update is Completed... machine # [879186.416557] machine systemd[1]: Finished Update is Completed. machine # [879186.416680] machine systemd[1]: Reached target System Initialization. machine # [879186.416739] machine systemd[1]: Discard unused filesystem blocks once a week skipped, unmet condition check ConditionVirtualization=!container machine # [879186.416760] machine systemd[1]: Started Daily Cleanup of Temporary Directories. machine # [879186.416773] machine systemd[1]: Reached target Timer Units. machine # [879186.416861] machine systemd[1]: Listening on D-Bus System Message Bus Socket. machine # [879186.416927] machine systemd[1]: Listening on herdr-eternal-server.socket. machine # [879186.417148] machine systemd[1]: Listening on Nix Daemon Socket. machine # [879186.417888] machine systemd[1]: Listening on OpenSSH Server Socket (systemd-ssh-generator, AF_UNIX Export). machine # [879186.418512] machine systemd[1]: Listening on OpenSSH Server Socket (systemd-ssh-generator, AF_UNIX Local). machine # [879186.418846] machine systemd[1]: Listening on SSH Socket. machine # [879186.418935] machine systemd[1]: Listening on Virtual Machine and Container Registration Service Socket. machine # [879186.418948] machine systemd[1]: Reached target Socket Units. machine # [879186.418973] machine systemd[1]: Reached target Basic System. machine # [879186.419905] machine systemd[1]: Starting Import lastlog data into lastlog2 database... machine # [879186.420733] machine systemd[1]: Starting Name Service Cache Daemon (nsncd)... machine # [879186.421450] machine systemd[1]: Starting resolvconf update... machine # [879186.422183] machine systemd[1]: Starting SSH Host Keys Generation... machine # [879186.434198] machine systemd[1]: Finished Import lastlog data into lastlog2 database. machine # [879186.486658] machine systemd[1]: nscd.service: Deactivated successfully. machine # [879186.486804] machine systemd[1]: Stopped Name Service Cache Daemon (nsncd). machine # [879186.488181] machine systemd[1]: Finished resolvconf update. machine # [879186.488386] machine systemd[1]: Reached target Preparation for Network. machine # [879186.489416] machine systemd[1]: Starting Address configuration of eth1... machine # [879186.490343] machine systemd[1]: Starting Extra networking commands.... machine # [879186.491178] machine systemd[1]: Starting Name Service Cache Daemon (nsncd)... machine # [879186.506550] machine network-addresses-eth1-start[247]: adding address 192.168.1.1/24... done machine # [879186.509109] machine network-addresses-eth1-start[247]: adding address 2001:db8:1::1/64... done machine # [879186.515556] machine systemd[1]: Finished Address configuration of eth1. machine # [879186.547107] machine systemd[1]: Finished Extra networking commands.. machine # [879186.547236] machine systemd[1]: Reached target Network. machine # [879186.548242] machine systemd[1]: Starting Roaming-friendly transport for herdr --remote... machine # [879186.549055] machine systemd[1]: Starting Nginx Web Server... machine # [879186.564583] machine herdr-eternal-server[307]: 2026-10-24T13:36:19.375052Z INFO herdr_eternal_server: listening addr=127.0.0.1:7433 machine # [879186.567263] machine herdr-eternal-server[307]: 2026-10-24T13:36:19.376513Z INFO herdr_eternal_server: listening (quic) addr=[::]:7443 machine # [879186.566162] machine systemd[1]: Started Roaming-friendly transport for herdr --remote. machine # [879186.734126] machine nsncd[249]: Oct 24 13:36:19.544 INFO started, config: Config { ignored_request_types: {}, worker_count: 8, handoff_timeout: 10s }, path: "/var/run/nscd/socket" machine # [879186.734153] machine systemd[1]: Started Name Service Cache Daemon (nsncd). machine # [879186.734203] machine systemd[1]: Reached target Host and Network Name Lookups. machine # [879186.734260] machine systemd[1]: Reached target User and Group Name Lookups. machine # [879186.735757] machine systemd[1]: Starting User Login Management... machine # [879186.736481] machine systemd[1]: Starting Permit User Sessions... machine # [879186.887431] machine systemd[1]: Finished Permit User Sessions. machine # [879186.888836] machine systemd[1]: Started Console Getty. machine # [879186.888861] machine systemd[1]: Getty on tty1 skipped, unmet condition check ConditionPathExists=/dev/tty0 machine # [879186.888878] machine systemd[1]: Reached target Login Prompts. machine # [879187.170210] machine sshd-keygen-start[198]: Generating public/private rsa key pair. machine # [879187.170210] machine sshd-keygen-start[198]: Your identification has been saved in /etc/ssh/ssh_host_rsa_key machine # [879187.170210] machine sshd-keygen-start[198]: Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub machine # [879187.170210] machine sshd-keygen-start[198]: The key fingerprint is: machine # [879187.170210] machine sshd-keygen-start[198]: SHA256:AY1QkCWC4bzIhsSEIU2svLOgqkGK6uUgIWmKEc9IDfY root@machine machine # [879187.170210] machine sshd-keygen-start[198]: The key's randomart image is: machine # [879187.170210] machine sshd-keygen-start[198]: +---[RSA 4096]----+ machine # [879187.170210] machine sshd-keygen-start[198]: |=@o +*+o | machine # [879187.170210] machine sshd-keygen-start[198]: |X *...... | machine # [879187.170210] machine sshd-keygen-start[198]: |oB E . | machine # [879187.170210] machine sshd-keygen-start[198]: |BB. . | machine # [879187.170210] machine sshd-keygen-start[198]: |O*+ S | machine # [879187.170210] machine sshd-keygen-start[198]: |@= | machine # [879187.170210] machine sshd-keygen-start[198]: |X.o. | machine # [879187.170210] machine sshd-keygen-start[198]: |+o+ | machine # [879187.170210] machine sshd-keygen-start[198]: |B. . | machine # [879187.170210] machine sshd-keygen-start[198]: +----[SHA256]-----+ machine # [879187.184231] machine sshd-keygen-start[466]: Generating public/private ed25519 key pair. machine # [879187.184231] machine sshd-keygen-start[466]: Your identification has been saved in /etc/ssh/ssh_host_ed25519_key machine # [879187.184231] machine sshd-keygen-start[466]: Your public key has been saved in /etc/ssh/ssh_host_ed25519_key.pub machine # [879187.184231] machine sshd-keygen-start[466]: The key fingerprint is: machine # [879187.184231] machine sshd-keygen-start[466]: SHA256:8/m++kqsVIl1Ochk4x1A/we7ShYrfRof/QqHuTQJXHs root@machine machine # [879187.184231] machine sshd-keygen-start[466]: The key's randomart image is: machine # [879187.184231] machine sshd-keygen-start[466]: +--[ED25519 256]--+ machine # [879187.184231] machine sshd-keygen-start[466]: | .*.. | machine # [879187.184231] machine sshd-keygen-start[466]: | = = o | machine # [879187.184231] machine sshd-keygen-start[466]: | = B . | machine # [879187.184231] machine sshd-keygen-start[466]: | + + + o | machine # [879187.184231] machine sshd-keygen-start[466]: | S = o E .| machine # [879187.184231] machine sshd-keygen-start[466]: | = + B + | machine # [879187.184231] machine sshd-keygen-start[466]: | . * & = .| machine # [879187.184231] machine sshd-keygen-start[466]: | . o * @ ..| machine # [879187.184231] machine sshd-keygen-start[466]: | . o=O.o..| machine # [879187.184231] machine sshd-keygen-start[466]: +----[SHA256]-----+ machine # [879187.185770] machine systemd[1]: sshd-keygen.service: Deactivated successfully. machine # [879187.186135] machine systemd[1]: Finished SSH Host Keys Generation. machine # [879187.679790] machine nginx-pre-start[468]: nginx: the configuration file /nix/store/ip420ix5hk85adnhdbkninnl4b6w4y4c-nginx.conf syntax is ok machine # [879187.680277] machine nginx-pre-start[468]: nginx: configuration file /nix/store/ip420ix5hk85adnhdbkninnl4b6w4y4c-nginx.conf test is successful machine # [879187.701365] machine systemd[1]: Started Nginx Web Server. machine # [879187.974978] machine systemd-logind[451]: New seat seat0. machine # [879188.006629] machine systemd[1]: Starting D-Bus System Message Bus... machine # [879188.006734] machine systemd[1]: Started User Login Management. machine # [879188.007550] machine systemd[1]: Starting linger-users.service... machine # [879188.037862] machine systemd[1]: linger-users.service: Deactivated successfully. machine # [879188.038069] machine systemd[1]: Finished linger-users.service. machine # [879188.038232] machine systemd[1]: Reached target Multi-User System. machine: (finished: waiting for unit herdr-eternal-server.service, in 4.15 seconds) machine: waiting for unit nginx.service machine: (finished: waiting for unit nginx.service, in 0.02 seconds) machine: waiting for TCP port 80 on localhost machine # [879188.396072] machine dbus-broker-launch[474]: Looking up NSS user entry for 'systemd-timesync'... machine # [879188.396694] machine dbus-broker-launch[474]: NSS returned no entry for 'systemd-timesync' machine # [879188.396694] machine dbus-broker-launch[474]: Invalid user-name in /nix/store/ryyrcl32knf944ncm8r6ccrxqgwh2ly9-system-path/share/dbus-1/system.d/org.freedesktop.timesync1.conf +16: user="systemd-timesync" machine # [879188.397353] machine systemd[1]: Started D-Bus System Message Bus. machine # [879188.402218] machine dbus-broker-launch[474]: Ready machine # [879188.402591] machine systemd[1]: Startup finished in 3.668s. Connection to localhost (::1) 80 port [tcp/http] succeeded! machine: (finished: waiting for TCP port 80 on localhost, in 1.02 seconds) machine: must succeed: mkdir -p /root/.config/herdr-eternal machine: (finished: must succeed: mkdir -p /root/.config/herdr-eternal, in 0.01 seconds) machine: must succeed: printf '[targets.testbox] url = "ws://localhost/herdr-eternal" token = "test-token" forward_agent = true [targets.testbox-quic] url = "ws://127.0.0.1:1" quic_addr = "127.0.0.1:7443" quic_ca = "/nix/store/0db6zcb6qa2186iivydl9x9838yhmgv4-herdr-eternal-test-cert/cert.pem" token = "test-token" ' > /root/.config/herdr-eternal/config.toml machine: (finished: must succeed: printf '[targets.testbox] url = "ws://localhost/herdr-eternal" token = "test-token" forward_agent = true [targets.testbox-quic] url = "ws://127.0.0.1:1" quic_addr = "127.0.0.1:7443" quic_ca = "/nix/store/0db6zcb6qa2186iivydl9x9838yhmgv4-herdr-eternal-test-cert/cert.pem" token = "test-token" ' > /root/.config/herdr-eternal/config.toml, in 0.00 seconds) machine: must succeed: herdr-eternal-ssh -T testbox 'id -un; echo $SHELL; echo $USER; echo $LOGNAME; echo $HOME; curl --version > /dev/null && echo curl-ok; echo systemd=$RUNTIME_DIRECTORY$LISTEN_FDS$INVOCATION_ID' < /dev/null machine: (finished: must succeed: herdr-eternal-ssh -T testbox 'id -un; echo $SHELL; echo $USER; echo $LOGNAME; echo $HOME; curl --version > /dev/null && echo curl-ok; echo systemd=$RUNTIME_DIRECTORY$LISTEN_FDS$INVOCATION_ID' < /dev/null, in 0.05 seconds) machine: must fail: herdr-eternal-ssh -T testbox 'exit 3' < /dev/null machine: (finished: must fail: herdr-eternal-ssh -T testbox 'exit 3' < /dev/null, in 0.04 seconds) machine: must succeed: herdr-eternal-ssh -T testbox-quic 'echo over-quic' < /dev/null machine: (finished: must succeed: herdr-eternal-ssh -T testbox-quic 'echo over-quic' < /dev/null, in 0.04 seconds) machine: must succeed: cat > /root/restart-client.sh <<'EOF' /nix/store/yh2zn7hbfc84hkf5sd284q0y7hbgipjh-herdr-eternal-0.1.0/bin/herdr-eternal-ssh -T testbox 'echo before; sleep 5; echo after; exit 5' /root/restart-out echo rc=$? >> /root/restart-out EOF machine: (finished: must succeed: cat > /root/restart-client.sh <<'EOF' /nix/store/yh2zn7hbfc84hkf5sd284q0y7hbgipjh-herdr-eternal-0.1.0/bin/herdr-eternal-ssh -T testbox 'echo before; sleep 5; echo after; exit 5' /root/restart-out echo rc=$? >> /root/restart-out EOF, in 0.01 seconds) machine: must succeed: systemd-run --unit=restart-client --setenv=HOME=/root sh /root/restart-client.sh Running as unit: restart-client.service; invocation ID: 7f25d1f73d9f467e91d4c5f5ea141f2c machine: (finished: must succeed: systemd-run --unit=restart-client --setenv=HOME=/root sh /root/restart-client.sh, in 0.01 seconds) machine: waiting for success: grep -q before /root/restart-out grep: /root/restart-out: No such file or directory machine # [879189.640515] machine systemd[1]: Started [systemd-run] /run/current-system/sw/bin/sh /root/restart-client.sh. machine: (finished: waiting for success: grep -q before /root/restart-out, in 1.01 seconds) machine: must succeed: systemctl show -p MainPID --value herdr-eternal-server machine: (finished: must succeed: systemctl show -p MainPID --value herdr-eternal-server, in 0.01 seconds) machine: must succeed: systemctl restart herdr-eternal-server machine: (finished: must succeed: systemctl restart herdr-eternal-server, in 0.15 seconds) machine: must succeed: systemctl show -p MainPID --value herdr-eternal-server machine: (finished: must succeed: systemctl show -p MainPID --value herdr-eternal-server, in 0.01 seconds) machine: waiting for success: grep -q rc= /root/restart-out machine # [879190.676796] machine systemd[1]: Stopping Roaming-friendly transport for herdr --remote... machine # [879190.679834] machine herdr-eternal-server[307]: 2026-10-24T13:36:23.488310Z INFO herdr_eternal_server: handed sessions over to the fd store fds=3 machine # [879190.685351] machine systemd[1]: herdr-eternal-server.service: Deactivated successfully. machine # [879190.685462] machine systemd[1]: herdr-eternal-server.service: Unit process 1022 (sh) remains running after unit stopped. machine # [879190.685540] machine systemd[1]: herdr-eternal-server.service: Unit process 1023 (zsh) remains running after unit stopped. machine # [879190.685611] machine systemd[1]: herdr-eternal-server.service: Unit process 1024 (sleep) remains running after unit stopped. machine # [879190.685802] machine systemd[1]: Stopped Roaming-friendly transport for herdr --remote. machine # [879190.699756] machine systemd[1]: herdr-eternal-server.service: Found left-over process 1022 (sh) in control group while starting unit. Ignoring. machine # [879190.699762] machine systemd[1]: herdr-eternal-server.service: This usually indicates unclean termination of a previous run, or service implementation deficiencies. machine # [879190.699831] machine systemd[1]: herdr-eternal-server.service: Found left-over process 1023 (zsh) in control group while starting unit. Ignoring. machine # [879190.699835] machine systemd[1]: herdr-eternal-server.service: This usually indicates unclean termination of a previous run, or service implementation deficiencies. machine # [879190.699897] machine systemd[1]: herdr-eternal-server.service: Found left-over process 1024 (sleep) in control group while starting unit. Ignoring. machine # [879190.699900] machine systemd[1]: herdr-eternal-server.service: This usually indicates unclean termination of a previous run, or service implementation deficiencies. machine # [879190.700962] machine systemd[1]: Starting Roaming-friendly transport for herdr --remote... machine # [879190.811334] machine herdr-eternal-server[1029]: 2026-10-24T13:36:23.621797Z INFO herdr_eternal_server: listening addr=127.0.0.1:7433 machine # [879190.811715] machine herdr-eternal-server[1029]: 2026-10-24T13:36:23.622073Z INFO herdr_eternal_server: listening (quic) addr=[::]:7443 machine # [879190.811715] machine herdr-eternal-server[1029]: 2026-10-24T13:36:23.622207Z INFO herdr_eternal_server: restored handed-over session token=307-1792848982508528838-3 machine # [879190.811842] machine systemd[1]: Started Roaming-friendly transport for herdr --remote. machine: (finished: waiting for success: grep -q rc= /root/restart-out, in 4.04 seconds) machine: must succeed: cat /root/restart-out machine: (finished: must succeed: cat /root/restart-out, in 0.01 seconds) machine: must succeed: journalctl -u herdr-eternal-server | grep -q 'restored handed-over session' machine: (finished: must succeed: journalctl -u herdr-eternal-server | grep -q 'restored handed-over session', in 0.01 seconds) machine: must succeed: ssh-keygen -t ed25519 -N "" -f /root/agent-key machine: (finished: must succeed: ssh-keygen -t ed25519 -N "" -f /root/agent-key, in 0.01 seconds) machine: must succeed: install -d -m 700 -o alice -g users /home/alice/.ssh machine: (finished: must succeed: install -d -m 700 -o alice -g users /home/alice/.ssh, in 0.01 seconds) machine: must succeed: install -m 600 -o alice -g users /root/agent-key.pub /home/alice/.ssh/authorized_keys machine: (finished: must succeed: install -m 600 -o alice -g users /root/agent-key.pub /home/alice/.ssh/authorized_keys, in 0.05 seconds) machine: must succeed: rm /root/agent-key.pub machine: (finished: must succeed: rm /root/agent-key.pub, in 0.01 seconds) machine: must succeed: ssh-agent sh -c 'ssh-add /root/agent-key && rm /root/agent-key && herdr-eternal-ssh -T testbox "ssh -o StrictHostKeyChecking=accept-new -o BatchMode=yes alice@localhost id -un"' < /dev/null Identity added: /root/agent-key (root@machine) machine # [879194.720350] machine systemd[1]: restart-client.service: Deactivated successfully. Warning: Permanently added 'localhost' (ED25519) to the list of known hosts. machine: (finished: must succeed: ssh-agent sh -c 'ssh-add /root/agent-key && rm /root/agent-key && herdr-eternal-ssh -T testbox "ssh -o StrictHostKeyChecking=accept-new -o BatchMode=yes alice@localhost id -un"' < /dev/null, in 0.29 seconds) (finished: run the VM test script, in 10.96 seconds) test script finished in 10.97s cleanup kill NspawnMachine (pid 49) machine # [879195.012375] machine systemd[1]: Created slice Slice /system/sshd. machine # [879195.012443] machine systemd[1]: SSH Host Keys Generation skipped, no trigger condition checks were met. machine # [879195.013496] machine systemd[1]: Started SSH per-connection Daemon ([::1]:59836). machine # [879195.229151] machine sshd-session[1314]: Accepted publickey for alice from ::1 port 59836 ssh2: ED25519 SHA256:GzF/eY6nGCY2OtPxwQTwGryB5ADHpF/YNCo6ldlYhN4 machine # [879195.244913] machine sshd-session[1318]: Received disconnect from ::1 port 59836:11: disconnected by user machine # [879195.245072] machine sshd-session[1318]: Disconnected from user alice ::1 port 59836 machine # [879195.246338] machine systemd[1]: sshd@0-585729-::1:22-::1:59836.service: Deactivated successfully. machine # [879195.246764] machine herdr-eternal-server[1029]: 2026-10-24T13:36:28.057219Z WARN herdr_eternal_server: connection failed: websocket error: WebSocket protocol error: Connection reset without closing handshake peer=127.0.0.1:60444 (finished: cleanup, in 0.31 seconds) additionally exposed symbols: machine, vlan1, start_all, test_script, machines, machines_qemu, machines_nspawn, vlans, driver, log, os, create_machine, subtest, run_tests, join_all, retry, serial_stdout_off, serial_stdout_on, polling_condition, BaseMachine, QemuMachine, NspawnMachine, t, debug, dump_machine_ssh