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 # [878209.678246] machine systemd-journald[57]: Journal started machine # [878209.678325] machine systemd-journald[57]: Runtime Journal (/run/log/journal/b5defe1660cf4e00bd61a9ea14291fd0) is 8M, max 4G, 3.9G free. machine # [878209.688308] machine systemd[1]: Finished Apply Kernel Variables. machine # [878209.703150] machine systemd[1]: Finished Create Static Device Nodes in /dev gracefully. machine # [878209.715365] machine systemd[1]: Starting Flush Journal to Persistent Storage... machine # [878209.716031] machine systemd[1]: Starting Create Static Device Nodes in /dev... machine # [878209.723064] machine systemd-journald[57]: Time spent on flushing to /var/log/journal/b5defe1660cf4e00bd61a9ea14291fd0 is 1.894ms for 6 entries. machine # [878209.723064] machine systemd-journald[57]: System Journal (/var/log/journal/b5defe1660cf4e00bd61a9ea14291fd0) is 512B, max 4G, 3.9G free. machine # [878209.730481] machine systemd[1]: Finished Create Static Device Nodes in /dev. machine # [878209.731031] machine systemd[1]: Reached target Preparation for Local File Systems. machine # [878209.731137] machine systemd[1]: Rule-based Manager for Device Events and Files skipped, unmet condition check ConditionPathIsReadWrite=/sys machine # [878209.734820] machine systemd[1]: Finished Flush Journal to Persistent Storage. machine # [878209.812781] machine systemd[1]: Finished Firewall. machine # [878210.674882] machine systemd[1]: Mounting /run/wrappers... machine # [878210.750055] machine systemd[1]: Mounted /run/wrappers. machine # [878210.750741] machine systemd[1]: Reached target Local File Systems. machine # [878210.751480] machine systemd[1]: Listening on Boot Loader Control Service Socket. machine # [878210.752339] machine systemd[1]: Starting Create SUID/SGID Wrappers... machine # [878210.752366] machine systemd[1]: Update Boot Loader Random Seed skipped, unmet condition check ConditionVirtualization=!container machine # [878210.753025] machine systemd[1]: Starting Save Transient machine-id to Disk... machine # [878210.753708] machine systemd[1]: Starting Create System Files and Directories... machine # [878210.770381] machine suid-sgid-wrappers-start[172]: chmod: changing permissions of '/run/wrappers/wrappers.rt872wFqL1/chsh': Operation not permitted machine # [878210.770433] machine systemd-tmpfiles[165]: Cannot set file attributes for '/var/empty', value=0x00000010, mask=0x00000010, ignoring: Operation not permitted machine # [878210.770825] machine systemd-tmpfiles[165]: fchmod() of /var/log/journal failed: Operation not permitted machine # [878210.771127] machine systemd-tmpfiles[165]: fchmod() of /var/log/journal/b5defe1660cf4e00bd61a9ea14291fd0 failed: Operation not permitted machine # [878210.771448] machine systemd-tmpfiles[165]: fchmod() of /run/log/journal failed: Operation not permitted machine # [878210.771728] machine systemd[1]: suid-sgid-wrappers.service: Main process exited, code=exited, status=1/FAILURE machine # [878210.771817] machine systemd[1]: suid-sgid-wrappers.service: Failed with result 'exit-code'. machine # [878210.771995] machine systemd[1]: Failed to start Create SUID/SGID Wrappers. machine # [878210.772652] machine systemd[1]: Finished Create System Files and Directories. machine # [878210.784275] machine systemd[1]: Starting Rebuild Journal Catalog... machine # [878210.784883] machine systemd[1]: Starting Record System Boot/Shutdown in UTMP... machine # [878210.794312] machine systemd[1]: Finished Record System Boot/Shutdown in UTMP. machine # [878210.801967] machine systemd[1]: Finished Rebuild Journal Catalog. machine # [878210.802959] machine systemd[1]: Starting Update is Completed... machine # [878210.810738] machine systemd[1]: Finished Update is Completed. machine # [878210.810862] machine systemd[1]: Reached target System Initialization. machine # [878210.810923] machine systemd[1]: Discard unused filesystem blocks once a week skipped, unmet condition check ConditionVirtualization=!container machine # [878210.810947] machine systemd[1]: Started Daily Cleanup of Temporary Directories. machine # [878210.810959] machine systemd[1]: Reached target Timer Units. machine # [878210.811060] machine systemd[1]: Listening on D-Bus System Message Bus Socket. machine # [878210.811134] machine systemd[1]: Listening on herdr-eternal-server.socket. machine # [878210.811295] machine systemd[1]: Listening on Nix Daemon Socket. machine # [878210.812028] machine systemd[1]: Listening on OpenSSH Server Socket (systemd-ssh-generator, AF_UNIX Export). machine # [878210.812625] machine systemd[1]: Listening on OpenSSH Server Socket (systemd-ssh-generator, AF_UNIX Local). machine # [878210.812963] machine systemd[1]: Listening on SSH Socket. machine # [878210.813062] machine systemd[1]: Listening on Virtual Machine and Container Registration Service Socket. machine # [878210.813076] machine systemd[1]: Reached target Socket Units. machine # [878210.813103] machine systemd[1]: Reached target Basic System. machine # [878210.814022] machine systemd[1]: Starting Import lastlog data into lastlog2 database... machine # [878210.814830] machine systemd[1]: Starting Name Service Cache Daemon (nsncd)... machine # [878210.815520] machine systemd[1]: Starting resolvconf update... machine # [878210.816301] machine systemd[1]: Starting SSH Host Keys Generation... machine # [878210.827969] machine systemd[1]: Finished Import lastlog data into lastlog2 database. machine # [878210.889687] machine systemd[1]: Finished resolvconf update. machine # [878210.889812] machine systemd[1]: Reached target Preparation for Network. machine # [878210.890671] machine systemd[1]: Starting Address configuration of eth1... machine # [878210.891453] machine systemd[1]: Starting Extra networking commands.... machine # [878210.891627] machine systemd[1]: nscd.service: Deactivated successfully. machine # [878210.891752] machine systemd[1]: Stopped Name Service Cache Daemon (nsncd). machine # [878210.894115] machine systemd[1]: Starting Name Service Cache Daemon (nsncd)... machine # [878210.908286] machine network-addresses-eth1-start[244]: adding address 192.168.1.1/24... done machine # [878210.911157] machine network-addresses-eth1-start[244]: adding address 2001:db8:1::1/64... done machine # [878210.914874] machine systemd[1]: Finished Address configuration of eth1. machine # [878210.942987] machine systemd[1]: Finished Extra networking commands.. machine # [878210.943482] machine systemd[1]: Reached target Network. machine # [878210.944540] machine systemd[1]: Starting Roaming-friendly transport for herdr --remote... machine # [878210.945459] machine systemd[1]: Starting Nginx Web Server... machine # [878210.964349] machine herdr-eternal-server[306]: 2026-10-24T13:20:03.774804Z INFO herdr_eternal_server: listening addr=127.0.0.1:7433 machine # [878211.031311] machine herdr-eternal-server[306]: 2026-10-24T13:20:03.779386Z INFO herdr_eternal_server: listening (quic) addr=[::]:7443 machine # [878211.022767] machine systemd[1]: Started Roaming-friendly transport for herdr --remote. machine # [878211.031441] machine sshd-keygen-start[197]: Generating public/private rsa key pair. machine # [878211.031441] machine sshd-keygen-start[197]: Your identification has been saved in /etc/ssh/ssh_host_rsa_key machine # [878211.031441] machine sshd-keygen-start[197]: Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub machine # [878211.031441] machine sshd-keygen-start[197]: The key fingerprint is: machine # [878211.031441] machine sshd-keygen-start[197]: SHA256:XtT2/qBqp5+dIPrwd7phuV8xQbI25VJzJ200pD7h8bU root@machine machine # [878211.031441] machine sshd-keygen-start[197]: The key's randomart image is: machine # [878211.031441] machine sshd-keygen-start[197]: +---[RSA 4096]----+ machine # [878211.031441] machine sshd-keygen-start[197]: | .oX+| machine # [878211.031441] machine sshd-keygen-start[197]: | . O.B| machine # [878211.031441] machine sshd-keygen-start[197]: | . oO +.| machine # [878211.031441] machine sshd-keygen-start[197]: | . .+.* +| machine # [878211.031441] machine sshd-keygen-start[197]: | S . +.E | machine # [878211.031441] machine sshd-keygen-start[197]: | . . o. o| machine # [878211.031441] machine sshd-keygen-start[197]: | o . = o .| machine # [878211.031441] machine sshd-keygen-start[197]: | +.ooB.= | machine # [878211.031441] machine sshd-keygen-start[197]: | .o=*B=+ .| machine # [878211.031441] machine sshd-keygen-start[197]: +----[SHA256]-----+ machine # [878211.022961] machine systemd[1]: sshd-keygen.service: Deactivated successfully. machine # [878211.031916] machine sshd-keygen-start[445]: Generating public/private ed25519 key pair. machine # [878211.031916] machine sshd-keygen-start[445]: Your identification has been saved in /etc/ssh/ssh_host_ed25519_key machine # [878211.031916] machine sshd-keygen-start[445]: Your public key has been saved in /etc/ssh/ssh_host_ed25519_key.pub machine # [878211.031916] machine sshd-keygen-start[445]: The key fingerprint is: machine # [878211.031916] machine sshd-keygen-start[445]: SHA256:uEM9TX+6qPH8Bv/3aTLrDpQT47urzyPAYLQg4i8RK3g root@machine machine # [878211.031916] machine sshd-keygen-start[445]: The key's randomart image is: machine # [878211.031916] machine sshd-keygen-start[445]: +--[ED25519 256]--+ machine # [878211.031916] machine sshd-keygen-start[445]: | | machine # [878211.031916] machine sshd-keygen-start[445]: |.o . . | machine # [878211.031916] machine sshd-keygen-start[445]: |+ + o . .o | machine # [878211.031916] machine sshd-keygen-start[445]: |o+E + o o..+ | machine # [878211.031916] machine sshd-keygen-start[445]: |..o . = S .=. . | machine # [878211.031916] machine sshd-keygen-start[445]: | . . . + .o oo | machine # [878211.031916] machine sshd-keygen-start[445]: | . o o =. | machine # [878211.031916] machine sshd-keygen-start[445]: | . =.o=+ .o| machine # [878211.031916] machine sshd-keygen-start[445]: | .oBBB=*oo| machine # [878211.031916] machine sshd-keygen-start[445]: +----[SHA256]-----+ machine # [878211.023241] machine systemd[1]: Finished SSH Host Keys Generation. machine # [878211.169622] machine nsncd[248]: Oct 24 13:20:03.980 INFO started, config: Config { ignored_request_types: {}, worker_count: 8, handoff_timeout: 10s }, path: "/var/run/nscd/socket" machine # [878211.169715] machine systemd[1]: Started Name Service Cache Daemon (nsncd). machine # [878211.169777] machine systemd[1]: Reached target Host and Network Name Lookups. machine # [878211.169835] machine systemd[1]: Reached target User and Group Name Lookups. machine # [878211.171305] machine systemd[1]: Starting User Login Management... machine # [878211.172030] machine systemd[1]: Starting Permit User Sessions... machine # [878211.240735] machine systemd[1]: Finished Save Transient machine-id to Disk. machine # [878211.248429] machine systemd[1]: Finished Permit User Sessions. machine # [878211.249656] machine systemd[1]: Started Console Getty. machine # [878211.249686] machine systemd[1]: Getty on tty1 skipped, unmet condition check ConditionPathExists=/dev/tty0 machine # [878211.249702] machine systemd[1]: Reached target Login Prompts. machine # [878211.676701] machine systemd[1]: etc-machine\x2did.mount: Deactivated successfully. machine # [878212.196061] machine nginx-pre-start[468]: nginx: the configuration file /nix/store/ip420ix5hk85adnhdbkninnl4b6w4y4c-nginx.conf syntax is ok machine # [878212.196825] machine nginx-pre-start[468]: nginx: configuration file /nix/store/ip420ix5hk85adnhdbkninnl4b6w4y4c-nginx.conf test is successful machine # [878212.208727] machine systemd[1]: Started Nginx Web Server. machine # [878212.414606] machine systemd-logind[457]: New seat seat0. machine # [878212.415743] machine systemd[1]: Starting D-Bus System Message Bus... machine # [878212.415831] machine systemd[1]: Started User Login Management. machine # [878212.416560] machine systemd[1]: Starting linger-users.service... machine # [878212.427864] machine systemd[1]: linger-users.service: Deactivated successfully. machine # [878212.428065] machine systemd[1]: Finished linger-users.service. machine # [878212.428223] 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.01 seconds) machine: waiting for TCP port 80 on localhost machine # [878212.823053] machine dbus-broker-launch[474]: Looking up NSS user entry for 'systemd-timesync'... machine # [878212.823698] machine dbus-broker-launch[474]: NSS returned no entry for 'systemd-timesync' machine # [878212.823698] machine dbus-broker-launch[474]: Invalid user-name in /nix/store/b7077akmgmm35f6d3ky6msj6q4p004ka-system-path/share/dbus-1/system.d/org.freedesktop.timesync1.conf +16: user="systemd-timesync" machine # [878212.824330] machine systemd[1]: Started D-Bus System Message Bus. machine # [878212.829259] machine dbus-broker-launch[474]: Ready machine # [878212.829637] machine systemd[1]: Startup finished in 3.576s. 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/1kk9nlwhgp4m5gmz8w88kj5198247b6l-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/1kk9nlwhgp4m5gmz8w88kj5198247b6l-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: 68d773ff3b744520bd5a8f3fe09d1049 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 # [878214.060395] 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.02 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.13 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 # [878215.097516] machine systemd[1]: Stopping Roaming-friendly transport for herdr --remote... machine # [878215.098104] machine herdr-eternal-server[306]: 2026-10-24T13:20:07.908261Z INFO herdr_eternal_server: handed sessions over to the fd store fds=3 machine # [878215.103583] machine systemd[1]: herdr-eternal-server.service: Deactivated successfully. machine # [878215.103689] machine systemd[1]: herdr-eternal-server.service: Unit process 1022 (sh) remains running after unit stopped. machine # [878215.103756] machine systemd[1]: herdr-eternal-server.service: Unit process 1023 (zsh) remains running after unit stopped. machine # [878215.103820] machine systemd[1]: herdr-eternal-server.service: Unit process 1024 (sleep) remains running after unit stopped. machine # [878215.104015] machine systemd[1]: Stopped Roaming-friendly transport for herdr --remote. machine # [878215.116070] machine systemd[1]: herdr-eternal-server.service: Found left-over process 1022 (sh) in control group while starting unit. Ignoring. machine # [878215.116075] machine systemd[1]: herdr-eternal-server.service: This usually indicates unclean termination of a previous run, or service implementation deficiencies. machine # [878215.116133] machine systemd[1]: herdr-eternal-server.service: Found left-over process 1023 (zsh) in control group while starting unit. Ignoring. machine # [878215.116137] machine systemd[1]: herdr-eternal-server.service: This usually indicates unclean termination of a previous run, or service implementation deficiencies. machine # [878215.116194] machine systemd[1]: herdr-eternal-server.service: Found left-over process 1024 (sleep) in control group while starting unit. Ignoring. machine # [878215.116197] machine systemd[1]: herdr-eternal-server.service: This usually indicates unclean termination of a previous run, or service implementation deficiencies. machine # [878215.116870] machine systemd[1]: Starting Roaming-friendly transport for herdr --remote... machine # [878215.214999] machine herdr-eternal-server[1029]: 2026-10-24T13:20:08.025462Z INFO herdr_eternal_server: listening addr=127.0.0.1:7433 machine # [878215.215450] machine herdr-eternal-server[1029]: 2026-10-24T13:20:08.025757Z INFO herdr_eternal_server: listening (quic) addr=[::]:7443 machine # [878215.215450] machine herdr-eternal-server[1029]: 2026-10-24T13:20:08.025904Z INFO herdr_eternal_server: restored handed-over session token=306-1792848007051266371-3 machine # [878215.215545] 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.04 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 # [878219.263069] machine systemd[1]: restart-client.service: Deactivated successfully. machine # [878219.403386] machine systemd[1]: Created slice Slice /system/sshd. machine # [878219.403485] machine systemd[1]: SSH Host Keys Generation skipped, no trigger condition checks were met. machine # [878219.404987] machine systemd[1]: Started SSH per-connection Daemon ([::1]:34814). 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.21 seconds) (finished: run the VM test script, in 10.83 seconds) test script finished in 10.84s cleanup kill NspawnMachine (pid 49) (finished: cleanup, in 0.26 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 Container machine terminated by signal KILL.