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 # [879004.575905] machine systemd-journald[57]: Journal started machine # [879004.575978] machine systemd-journald[57]: Runtime Journal (/run/log/journal/7b313589763742f9b8667105ad2acb14) is 8M, max 4G, 3.9G free. machine # [879004.582444] machine systemd[1]: Finished Apply Kernel Variables. machine # [879004.591866] machine systemd[1]: Finished Create Static Device Nodes in /dev gracefully. machine # [879004.603048] machine systemd[1]: Starting Flush Journal to Persistent Storage... machine # [879004.603733] machine systemd[1]: Starting Create Static Device Nodes in /dev... machine # [879004.610520] machine systemd-journald[57]: Time spent on flushing to /var/log/journal/7b313589763742f9b8667105ad2acb14 is 2.002ms for 6 entries. machine # [879004.610520] machine systemd-journald[57]: System Journal (/var/log/journal/7b313589763742f9b8667105ad2acb14) is 512B, max 4G, 3.9G free. machine # [879004.617383] machine systemd[1]: Finished Create Static Device Nodes in /dev. machine # [879004.617564] machine systemd[1]: Finished Flush Journal to Persistent Storage. machine # [879004.618500] machine systemd[1]: Reached target Preparation for Local File Systems. machine # [879004.618598] machine systemd[1]: Rule-based Manager for Device Events and Files skipped, unmet condition check ConditionPathIsReadWrite=/sys machine # [879004.715238] machine systemd[1]: Finished Firewall. machine # [879005.573570] machine systemd[1]: Mounting /run/wrappers... machine # [879005.699241] machine systemd[1]: Mounted /run/wrappers. machine # [879005.699973] machine systemd[1]: Reached target Local File Systems. machine # [879005.700742] machine systemd[1]: Listening on Boot Loader Control Service Socket. machine # [879005.701767] machine systemd[1]: Starting Create SUID/SGID Wrappers... machine # [879005.701794] machine systemd[1]: Update Boot Loader Random Seed skipped, unmet condition check ConditionVirtualization=!container machine # [879005.702553] machine systemd[1]: Starting Save Transient machine-id to Disk... machine # [879005.703192] machine systemd[1]: Starting Create System Files and Directories... machine # [879005.720134] machine systemd-tmpfiles[165]: Cannot set file attributes for '/var/empty', value=0x00000010, mask=0x00000010, ignoring: Operation not permitted machine # [879005.720555] machine systemd-tmpfiles[165]: fchmod() of /var/log/journal failed: Operation not permitted machine # [879005.720871] machine systemd-tmpfiles[165]: fchmod() of /var/log/journal/7b313589763742f9b8667105ad2acb14 failed: Operation not permitted machine # [879005.721212] machine suid-sgid-wrappers-start[172]: chmod: changing permissions of '/run/wrappers/wrappers.INDTFVr73x/chsh': Operation not permitted machine # [879005.721237] machine systemd-tmpfiles[165]: fchmod() of /run/log/journal failed: Operation not permitted machine # [879005.721827] machine systemd[1]: suid-sgid-wrappers.service: Main process exited, code=exited, status=1/FAILURE machine # [879005.721917] machine systemd[1]: suid-sgid-wrappers.service: Failed with result 'exit-code'. machine # [879005.722103] machine systemd[1]: Failed to start Create SUID/SGID Wrappers. machine # [879005.722558] machine systemd[1]: Finished Create System Files and Directories. machine # [879005.733869] machine systemd[1]: Starting Rebuild Journal Catalog... machine # [879005.734529] machine systemd[1]: Starting Record System Boot/Shutdown in UTMP... machine # [879005.745036] machine systemd[1]: Finished Record System Boot/Shutdown in UTMP. machine # [879005.751799] machine systemd[1]: Finished Rebuild Journal Catalog. machine # [879005.752669] machine systemd[1]: Starting Update is Completed... machine # [879005.760768] machine systemd[1]: Finished Update is Completed. machine # [879005.760890] machine systemd[1]: Reached target System Initialization. machine # [879005.760942] machine systemd[1]: Discard unused filesystem blocks once a week skipped, unmet condition check ConditionVirtualization=!container machine # [879005.760965] machine systemd[1]: Started Daily Cleanup of Temporary Directories. machine # [879005.760977] machine systemd[1]: Reached target Timer Units. machine # [879005.761075] machine systemd[1]: Listening on D-Bus System Message Bus Socket. machine # [879005.761150] machine systemd[1]: Listening on herdr-eternal-server.socket. machine # [879005.761332] machine systemd[1]: Listening on Nix Daemon Socket. machine # [879005.762155] machine systemd[1]: Listening on OpenSSH Server Socket (systemd-ssh-generator, AF_UNIX Export). machine # [879005.762768] machine systemd[1]: Listening on OpenSSH Server Socket (systemd-ssh-generator, AF_UNIX Local). machine # [879005.763111] machine systemd[1]: Listening on SSH Socket. machine # [879005.763206] machine systemd[1]: Listening on Virtual Machine and Container Registration Service Socket. machine # [879005.763217] machine systemd[1]: Reached target Socket Units. machine # [879005.763243] machine systemd[1]: Reached target Basic System. machine # [879005.764215] machine systemd[1]: Starting Import lastlog data into lastlog2 database... machine # [879005.765148] machine systemd[1]: Starting Name Service Cache Daemon (nsncd)... machine # [879005.765907] machine systemd[1]: Starting resolvconf update... machine # [879005.766543] machine systemd[1]: Starting SSH Host Keys Generation... machine # [879005.781401] machine systemd[1]: Finished Import lastlog data into lastlog2 database. machine # [879005.823214] machine systemd[1]: Finished resolvconf update. machine # [879005.823332] machine systemd[1]: Reached target Preparation for Network. machine # [879005.824165] machine systemd[1]: Starting Address configuration of eth1... machine # [879005.824886] machine systemd[1]: Starting Extra networking commands.... machine # [879005.842255] machine systemd[1]: nscd.service: Deactivated successfully. machine # [879005.842486] machine systemd[1]: Stopped Name Service Cache Daemon (nsncd). machine # [879005.863329] machine systemd[1]: etc-machine\x2did.mount: Deactivated successfully. machine # [879005.864088] machine systemd[1]: Finished Save Transient machine-id to Disk. machine # [879005.865946] machine systemd[1]: Starting Name Service Cache Daemon (nsncd)... machine # [879005.867384] machine network-addresses-eth1-start[243]: adding address 192.168.1.1/24... done machine # [879005.870349] machine network-addresses-eth1-start[243]: adding address 2001:db8:1::1/64... done machine # [879005.874105] machine systemd[1]: Finished Address configuration of eth1. machine # [879005.897967] machine systemd[1]: Finished Extra networking commands.. machine # [879005.898074] machine systemd[1]: Reached target Network. machine # [879005.899226] machine systemd[1]: Starting Roaming-friendly transport for herdr --remote... machine # [879005.900230] machine systemd[1]: Starting Nginx Web Server... machine # [879005.930935] machine sshd-keygen-start[197]: Generating public/private rsa key pair. machine # [879005.930935] machine sshd-keygen-start[197]: Your identification has been saved in /etc/ssh/ssh_host_rsa_key machine # [879005.930935] machine sshd-keygen-start[197]: Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub machine # [879005.930935] machine sshd-keygen-start[197]: The key fingerprint is: machine # [879005.930935] machine sshd-keygen-start[197]: SHA256:wZYG8dJ/smz3jRnCsFR4UurZLmY/nByfrvLNH+m6zKg root@machine machine # [879005.930935] machine sshd-keygen-start[197]: The key's randomart image is: machine # [879005.930935] machine sshd-keygen-start[197]: +---[RSA 4096]----+ machine # [879005.930935] machine sshd-keygen-start[197]: | o. . | machine # [879005.930935] machine sshd-keygen-start[197]: | = . + | machine # [879005.930935] machine sshd-keygen-start[197]: | . O + o | machine # [879005.930935] machine sshd-keygen-start[197]: | + + * | machine # [879005.930935] machine sshd-keygen-start[197]: | S B o | machine # [879005.930935] machine sshd-keygen-start[197]: | o O. .| machine # [879005.930935] machine sshd-keygen-start[197]: | Oo=+.+ | machine # [879005.930935] machine sshd-keygen-start[197]: | +.+O=+=.| machine # [879005.930935] machine sshd-keygen-start[197]: | E.++OXoo| machine # [879005.930935] machine sshd-keygen-start[197]: +----[SHA256]-----+ machine # [879005.934294] machine herdr-eternal-server[307]: 2026-10-24T13:33:18.744668Z INFO herdr_eternal_server: listening addr=127.0.0.1:7433 machine # [879005.936064] machine herdr-eternal-server[307]: 2026-10-24T13:33:18.746180Z INFO herdr_eternal_server: listening (quic) addr=[::]:7443 machine # [879005.935841] machine systemd[1]: Started Roaming-friendly transport for herdr --remote. machine # [879005.943277] machine sshd-keygen-start[446]: Generating public/private ed25519 key pair. machine # [879005.943277] machine sshd-keygen-start[446]: Your identification has been saved in /etc/ssh/ssh_host_ed25519_key machine # [879005.943277] machine sshd-keygen-start[446]: Your public key has been saved in /etc/ssh/ssh_host_ed25519_key.pub machine # [879005.943277] machine sshd-keygen-start[446]: The key fingerprint is: machine # [879005.943277] machine sshd-keygen-start[446]: SHA256:T10CPtk3kQ9QtNxUpFtIngyRymJHX86dQ0PsbAFHND4 root@machine machine # [879005.943277] machine sshd-keygen-start[446]: The key's randomart image is: machine # [879005.943277] machine sshd-keygen-start[446]: +--[ED25519 256]--+ machine # [879005.943277] machine sshd-keygen-start[446]: | . +B@O=| machine # [879005.943277] machine sshd-keygen-start[446]: | ..+.**&.| machine # [879005.943277] machine sshd-keygen-start[446]: | o+oo+/E*| machine # [879005.943277] machine sshd-keygen-start[446]: | o +o.+oX+| machine # [879005.943277] machine sshd-keygen-start[446]: | .So. . o .| machine # [879005.943277] machine sshd-keygen-start[446]: | o | machine # [879005.943277] machine sshd-keygen-start[446]: | . | machine # [879005.943277] machine sshd-keygen-start[446]: | | machine # [879005.943277] machine sshd-keygen-start[446]: | | machine # [879005.943277] machine sshd-keygen-start[446]: +----[SHA256]-----+ machine # [879005.944611] machine systemd[1]: sshd-keygen.service: Deactivated successfully. machine # [879005.944805] machine systemd[1]: Finished SSH Host Keys Generation. machine # [879006.139436] machine nsncd[258]: Oct 24 13:33:18.949 INFO started, config: Config { ignored_request_types: {}, worker_count: 8, handoff_timeout: 10s }, path: "/var/run/nscd/socket" machine # [879006.139516] machine systemd[1]: Started Name Service Cache Daemon (nsncd). machine # [879006.139559] machine systemd[1]: Reached target Host and Network Name Lookups. machine # [879006.139599] machine systemd[1]: Reached target User and Group Name Lookups. machine # [879006.140787] machine systemd[1]: Starting User Login Management... machine # [879006.141562] machine systemd[1]: Starting Permit User Sessions... machine # [879006.150196] machine systemd[1]: Finished Permit User Sessions. machine # [879006.151081] machine systemd[1]: Started Console Getty. machine # [879006.151105] machine systemd[1]: Getty on tty1 skipped, unmet condition check ConditionPathExists=/dev/tty0 machine # [879006.151118] machine systemd[1]: Reached target Login Prompts. machine # [879007.193953] machine systemd-logind[458]: New seat seat0. machine # [879007.194580] machine systemd[1]: Started User Login Management. machine # [879007.198009] machine nginx-pre-start[468]: nginx: the configuration file /nix/store/ip420ix5hk85adnhdbkninnl4b6w4y4c-nginx.conf syntax is ok machine # [879007.198302] machine nginx-pre-start[468]: nginx: configuration file /nix/store/ip420ix5hk85adnhdbkninnl4b6w4y4c-nginx.conf test is successful machine # [879007.281818] machine systemd[1]: Starting D-Bus System Message Bus... machine # [879007.283228] machine systemd[1]: Starting linger-users.service... machine # [879007.284389] machine systemd[1]: Started Nginx Web Server. machine # [879007.322405] machine systemd[1]: linger-users.service: Deactivated successfully. machine # [879007.322600] machine systemd[1]: Finished linger-users.service. machine # [879007.322772] 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.03 seconds) machine: waiting for TCP port 80 on localhost machine # [879007.765430] machine dbus-broker-launch[469]: Looking up NSS user entry for 'systemd-timesync'... machine # [879007.766164] machine dbus-broker-launch[469]: NSS returned no entry for 'systemd-timesync' machine # [879007.766164] machine dbus-broker-launch[469]: Invalid user-name in /nix/store/gafx90k9h3spgfzs3f7k2h1irhm060v1-system-path/share/dbus-1/system.d/org.freedesktop.timesync1.conf +16: user="systemd-timesync" machine # [879007.766786] machine systemd[1]: Started D-Bus System Message Bus. machine # [879007.772488] machine dbus-broker-launch[469]: Ready machine # [879007.772928] machine systemd[1]: Startup finished in 3.677s. 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.03 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/c19bip1afygvchy2saf6wyl31bnalnlh-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/c19bip1afygvchy2saf6wyl31bnalnlh-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: fd55b520d5bd4639a3996a954f06cf20 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 # [879009.017876] 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.24 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 # [879010.052639] machine systemd[1]: Stopping Roaming-friendly transport for herdr --remote... machine # [879010.053278] machine herdr-eternal-server[307]: 2026-10-24T13:33:22.863414Z INFO herdr_eternal_server: handed sessions over to the fd store fds=3 machine # [879010.059105] machine systemd[1]: herdr-eternal-server.service: Deactivated successfully. machine # [879010.059228] machine systemd[1]: herdr-eternal-server.service: Unit process 1022 (sh) remains running after unit stopped. machine # [879010.059295] machine systemd[1]: herdr-eternal-server.service: Unit process 1023 (zsh) remains running after unit stopped. machine # [879010.059363] machine systemd[1]: herdr-eternal-server.service: Unit process 1024 (sleep) remains running after unit stopped. machine # [879010.059524] machine systemd[1]: Stopped Roaming-friendly transport for herdr --remote. machine # [879010.071245] machine systemd[1]: herdr-eternal-server.service: Found left-over process 1022 (sh) in control group while starting unit. Ignoring. machine # [879010.071250] machine systemd[1]: herdr-eternal-server.service: This usually indicates unclean termination of a previous run, or service implementation deficiencies. machine # [879010.071318] machine systemd[1]: herdr-eternal-server.service: Found left-over process 1023 (zsh) in control group while starting unit. Ignoring. machine # [879010.071320] machine systemd[1]: herdr-eternal-server.service: This usually indicates unclean termination of a previous run, or service implementation deficiencies. machine # [879010.071374] machine systemd[1]: herdr-eternal-server.service: Found left-over process 1024 (sleep) in control group while starting unit. Ignoring. machine # [879010.071376] machine systemd[1]: herdr-eternal-server.service: This usually indicates unclean termination of a previous run, or service implementation deficiencies. machine # [879010.072157] machine systemd[1]: Starting Roaming-friendly transport for herdr --remote... machine # [879010.284059] machine herdr-eternal-server[1029]: 2026-10-24T13:33:23.094519Z INFO herdr_eternal_server: listening addr=127.0.0.1:7433 machine # [879010.284448] machine herdr-eternal-server[1029]: 2026-10-24T13:33:23.094798Z INFO herdr_eternal_server: listening (quic) addr=[::]:7443 machine # [879010.284504] machine herdr-eternal-server[1029]: 2026-10-24T13:33:23.094950Z INFO herdr_eternal_server: restored handed-over session token=307-1792848801971627172-3 machine # [879010.284593] 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 # [879014.180448] machine systemd[1]: restart-client.service: Deactivated successfully. machine: (finished: must succeed: install -m 600 -o alice -g users /root/agent-key.pub /home/alice/.ssh/authorized_keys, in 1.55 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) 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.28 seconds) (finished: run the VM test script, in 12.54 seconds) test script finished in 12.55s cleanup kill NspawnMachine (pid 49) machine # [879015.978370] machine systemd[1]: Created slice Slice /system/sshd. machine # [879015.978419] machine systemd[1]: SSH Host Keys Generation skipped, no trigger condition checks were met. machine # [879015.979230] machine systemd[1]: Started SSH per-connection Daemon ([::1]:45162). machine # [879016.183265] machine sshd-session[1313]: Accepted publickey for alice from ::1 port 45162 ssh2: ED25519 SHA256:da+b36JBlJ3mWH+pTDKbYju90aSqrUIJXU0kH/ySLJk machine # [879016.205051] machine sshd-session[1317]: Received disconnect from ::1 port 45162:11: disconnected by user machine # [879016.205335] machine sshd-session[1317]: Disconnected from user alice ::1 port 45162 machine # [879016.206303] machine systemd[1]: sshd@0-581633-::1:22-::1:45162.service: Deactivated successfully. machine # [879016.206741] machine herdr-eternal-server[1029]: 2026-10-24T13:33:29.017193Z WARN herdr_eternal_server: connection failed: websocket error: WebSocket protocol error: Connection reset without closing handshake peer=127.0.0.1:53490 (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