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.0 seconds run the VM test script 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 machine: waiting for unit multi-user.target machine: systemd-nspawn running (pid 50) 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 # [296219.925665] machine systemd-journald[57]: Journal started machine # [296219.925716] machine systemd-journald[57]: Runtime Journal (/run/log/journal/7dab6d6bf9d14ef8a1c2b0ef1ff03fc7) is 8M, max 2.5G, 2.5G free. machine # [296219.940981] machine systemd[1]: Finished Apply Kernel Variables. machine # [296219.957133] machine systemd[1]: Finished Create Static Device Nodes in /dev gracefully. machine # [296219.981670] machine systemd[1]: Starting Flush Journal to Persistent Storage... machine # [296219.982166] machine systemd[1]: Starting Create Static Device Nodes in /dev... machine # [296219.988314] machine systemd-journald[57]: Time spent on flushing to /var/log/journal/7dab6d6bf9d14ef8a1c2b0ef1ff03fc7 is 848us for 6 entries. machine # [296219.988314] machine systemd-journald[57]: System Journal (/var/log/journal/7dab6d6bf9d14ef8a1c2b0ef1ff03fc7) is 512B, max 4G, 3.9G free. machine # [296220.001281] machine systemd[1]: Finished Create Static Device Nodes in /dev. machine # [296220.001941] machine systemd[1]: Reached target Preparation for Local File Systems. machine # [296220.002033] machine systemd[1]: Rule-based Manager for Device Events and Files skipped, unmet condition check ConditionPathIsReadWrite=/sys machine # [296220.006384] machine systemd[1]: Finished Flush Journal to Persistent Storage. machine # [296220.032897] machine systemd[1]: Finished Firewall. machine # [296220.924899] machine systemd[1]: Mounting /run/wrappers... machine # [296220.946100] machine systemd[1]: Mounted /run/wrappers. machine # [296220.946528] machine systemd[1]: Reached target Local File Systems. machine # [296220.947298] machine systemd[1]: Listening on Boot Loader Control Service Socket. machine # [296220.947849] machine systemd[1]: Starting Create SUID/SGID Wrappers... machine # [296220.947874] machine systemd[1]: Update Boot Loader Random Seed skipped, unmet condition check ConditionVirtualization=!container machine # [296220.948464] machine systemd[1]: Starting Save Transient machine-id to Disk... machine # [296220.948929] machine systemd[1]: Starting Create System Files and Directories... machine # [296220.963695] machine suid-sgid-wrappers-start[168]: chmod: changing permissions of '/run/wrappers/wrappers.qqjBPKwfCu/chsh': Operation not permitted machine # [296220.963941] machine systemd-tmpfiles[161]: Cannot set file attributes for '/var/empty', value=0x00000010, mask=0x00000010, ignoring: Operation not permitted machine # [296220.964065] machine systemd-tmpfiles[161]: fchmod() of /var/log/journal failed: Operation not permitted machine # [296220.964135] machine systemd-tmpfiles[161]: fchmod() of /var/log/journal/7dab6d6bf9d14ef8a1c2b0ef1ff03fc7 failed: Operation not permitted machine # [296220.964237] machine systemd-tmpfiles[161]: fchmod() of /run/log/journal failed: Operation not permitted machine # [296220.973987] machine systemd[1]: etc-machine\x2did.mount: Deactivated successfully. machine # [296220.988640] machine systemd[1]: suid-sgid-wrappers.service: Main process exited, code=exited, status=1/FAILURE machine # [296220.988750] machine systemd[1]: suid-sgid-wrappers.service: Failed with result 'exit-code'. machine # [296220.988871] machine systemd[1]: Failed to start Create SUID/SGID Wrappers. machine # [296220.989048] machine systemd[1]: Finished Save Transient machine-id to Disk. machine # [296220.989232] machine systemd[1]: Finished Create System Files and Directories. machine # [296221.004563] machine systemd[1]: Starting Rebuild Journal Catalog... machine # [296221.005095] machine systemd[1]: Starting Record System Boot/Shutdown in UTMP... machine # [296221.016904] machine systemd[1]: Finished Record System Boot/Shutdown in UTMP. machine # [296221.022754] machine systemd[1]: Finished Rebuild Journal Catalog. machine # [296221.023427] machine systemd[1]: Starting Update is Completed... machine # [296221.030854] machine systemd[1]: Finished Update is Completed. machine # [296221.030977] machine systemd[1]: Reached target System Initialization. machine # [296221.031065] machine systemd[1]: Discard unused filesystem blocks once a week skipped, unmet condition check ConditionVirtualization=!container machine # [296221.031099] machine systemd[1]: Started Daily Cleanup of Temporary Directories. machine # [296221.031123] machine systemd[1]: Reached target Timer Units. machine # [296221.031233] machine systemd[1]: Listening on D-Bus System Message Bus Socket. machine # [296221.031333] machine systemd[1]: Listening on Virtual Machine and Container Registration Service Socket. machine # [296221.031357] machine systemd[1]: Reached target Socket Units. machine # [296221.031387] machine systemd[1]: Reached target Basic System. machine # [296221.032297] machine systemd[1]: Starting Import lastlog data into lastlog2 database... machine # [296221.033107] machine systemd[1]: Starting Name Service Cache Daemon (nsncd)... machine # [296221.033548] machine systemd[1]: Starting resolvconf update... machine # [296221.045668] machine systemd[1]: Finished Import lastlog data into lastlog2 database. machine # [296221.084080] machine systemd[1]: nscd.service: Deactivated successfully. machine # [296221.094991] machine resolvconf-start[232]: setfacl: /run/resolvconf: Operation not supported machine # [296221.098257] machine systemd[1]: Stopped Name Service Cache Daemon (nsncd). machine # [296221.099883] machine systemd[1]: resolvconf.service: Main process exited, code=exited, status=1/FAILURE machine # [296221.100048] machine systemd[1]: resolvconf.service: Failed with result 'exit-code'. machine # [296221.100276] machine systemd[1]: Failed to start resolvconf update. machine # [296221.100878] machine systemd[1]: Reached target Preparation for Network. machine # [296221.101482] machine systemd[1]: Starting Address configuration of eth1... machine # [296221.101978] machine systemd[1]: Starting Extra networking commands.... machine # [296221.102451] machine systemd[1]: Starting Name Service Cache Daemon (nsncd)... machine # [296221.120058] machine network-addresses-eth1-start[236]: adding address 192.168.1.1/24... done machine # [296221.122176] machine network-addresses-eth1-start[236]: adding address 2001:db8:1::1/64... done machine # [296221.125354] machine systemd[1]: Finished Address configuration of eth1. machine # [296221.153417] machine systemd[1]: Finished Extra networking commands.. machine # [296221.153521] machine systemd[1]: Reached target Network. machine # [296221.267733] machine nsncd[238]: Oct 19 07:09:42.290 INFO started, config: Config { ignored_request_types: {}, worker_count: 8, handoff_timeout: 10s }, path: "/var/run/nscd/socket" machine # [296221.267832] machine systemd[1]: Started Name Service Cache Daemon (nsncd). machine # [296221.267935] machine systemd[1]: Reached target Host and Network Name Lookups. machine # [296221.268042] machine systemd[1]: Reached target User and Group Name Lookups. machine # [296221.269511] machine systemd[1]: Starting User Login Management... machine # [296221.270251] machine systemd[1]: Starting Permit User Sessions... machine # [296221.278710] machine systemd[1]: Finished Permit User Sessions. machine # [296221.279432] machine systemd[1]: Started Console Getty. machine # [296221.279460] machine systemd[1]: Getty on tty1 skipped, unmet condition check ConditionPathExists=/dev/tty0 machine # [296221.279475] machine systemd[1]: Reached target Login Prompts. machine # [296221.963573] machine systemd-logind[306]: New seat seat0. machine # [296221.965312] machine systemd[1]: Starting D-Bus System Message Bus... machine # [296221.965493] machine systemd[1]: Started User Login Management. machine # [296221.966710] machine systemd[1]: Starting linger-users.service... machine # [296221.990142] machine systemd[1]: linger-users.service: Deactivated successfully. machine # [296221.990449] machine systemd[1]: Finished linger-users.service. machine # [296221.990827] machine systemd[1]: Reached target Multi-User System. machine # [296222.422623] machine dbus-broker-launch[316]: Looking up NSS user entry for 'systemd-timesync'... machine # [296222.425467] machine dbus-broker-launch[316]: NSS returned no entry for 'systemd-timesync' machine # [296222.425467] machine dbus-broker-launch[316]: Invalid user-name in /nix/store/pr0idv94qd89b56sr35as7cwcm3pmcdy-system-path/share/dbus-1/system.d/org.freedesktop.timesync1.conf +16: user="systemd-timesync" machine # [296222.426040] machine systemd[1]: Started D-Bus System Message Bus. machine # [296222.426309] machine systemd[1]: Startup finished in 2.876s. machine # [296222.433967] machine dbus-broker-launch[316]: Ready machine: (finished: waiting for unit multi-user.target, in 3.65 seconds) machine: must succeed: /nix/store/phhjngxgfhr1lrzk0w7ms3775mh0pxd5-writable-store /nix/store/hgn2j5h2zr77wm8g0wxxsa1288w6iklp-closure-info warning: '--json' without '--json-format' is deprecated; please specify '--json-format 1' or '--json-format 2'. This will become an error in a future release. machine: (finished: must succeed: /nix/store/phhjngxgfhr1lrzk0w7ms3775mh0pxd5-writable-store /nix/store/hgn2j5h2zr77wm8g0wxxsa1288w6iklp-closure-info, in 11.16 seconds) machine: must succeed: systemctl start nix-daemon.socket machine: (finished: must succeed: systemctl start nix-daemon.socket, in 0.01 seconds) machine: must succeed: cp -r /nix/store/yk8iwm6lhgpxffrrbcrqlangihnawxl0-source /home/alice/iets && chmod -R u+w /home/alice/iets && chown -R alice /home/alice/iets machine: (finished: must succeed: cp -r /nix/store/yk8iwm6lhgpxffrrbcrqlangihnawxl0-source /home/alice/iets && chmod -R u+w /home/alice/iets && chown -R alice /home/alice/iets, in 0.12 seconds) machine: must succeed: runuser -l alice -c 'cd iets && git init -q && git add -A && git -c user.name=e2e -c user.email=e2e@example.com commit -q -m e2e' machine # [296233.937337] machine systemd[1]: Listening on Nix Daemon Socket. machine # [296234.072961] machine runuser[4935]: pam_unix(runuser-l:session): session opened for user alice(uid=1000) by (uid=0) machine: (finished: must succeed: runuser -l alice -c 'cd iets && git init -q && git add -A && git -c user.name=e2e -c user.email=e2e@example.com commit -q -m e2e', in 0.21 seconds) machine: must succeed: runuser -l alice -c 'cd iets && IETS=/nix/store/s1knhqmd8dk0g9aah2mwhggr2537dkms-iets-0.1.0/bin/iets NIXPKGS=/nix/store/2010s04mqpq7q1kch0ddc9b429s2vh9v-source E2E_OFFLINE=1 DAEMON=/nix/store/pj0xhx1h30zprwa08dmf19ifjv9h0k0k-nix-grpc-daemon-0.1.0 nu scripts/grpc-e2e.nu' >&2 daemon: /nix/store/pj0xhx1h30zprwa08dmf19ifjv9h0k0k-nix-grpc-daemon-0.1.0 url: grpc://127.0.0.1:9699?insecure=1 == 1. custom derivation with a source tree, built on the gRPC daemon machine # [296234.267203] machine runuser[4935]: pam_unix(runuser-l:session): session closed for user alice machine # [296234.277095] machine runuser[4948]: pam_unix(runuser-l:session): session opened for user alice(uid=1000) by (uid=0) machine # [296234.617726] machine systemd[1]: Started Nix Daemon. drv: /nix/store/ari76nr211jk1abffj7njcpx71y1i3f3-iets-grpc-e2e.drv machine # [296234.681788] machine nix-daemon[5110]: accepted connection from pid 5092, user alice (trusted) machine # [296234.715264] machine nix-daemon[5110]: accepted connection from pid 5129, user alice (trusted) machine # [296234.754700] machine nix-daemon[5110]: accepted connection from pid 5150, user alice (trusted) machine # [296234.815869] machine nix-daemon[5110]: accepted connection from pid 5171, user alice (trusted) eval: 1 derivations, 1 sources, 0.083s plan: 1 sources, 1 drvs, 0.000s connect: gRPC, trusted, 0.006s query: 2 paths, 2 missing, 0.005s add: 2 paths, 731 bytes, 0.007s build: 1 drvs, 0 already valid, 0.218s outputs: 0.000s fetch: 1 outputs, 0.002s grpc: 7 calls ok: /nix/store/zmi2zgzj52rjlggz79ygcjv20hr0jh8b-iets-grpc-e2e, fetched == 2. hello cold, --no-build machine # [296235.419664] machine nix-daemon[5110]: accepted connection from pid 5251, user alice (trusted) eval: 742 derivations, 158 sources, 0.363s plan: 158 sources, 607 drvs, 0.012s connect: gRPC, trusted, 0.006s query: 765 paths, 765 missing, 0.006s add: 765 paths, 449720 bytes, 0.214s grpc: 5 calls ok: query: 765 paths, 765 missing, 0.006s == 3. hello warm, --no-build machine # [296236.926801] machine nix-daemon[5110]: accepted connection from pid 5398, user alice (trusted) query: 1 paths, 0 missing, 0.001s add: 0 paths, 0 bytes, 0.000s grpc: 2 calls ok == 4. classic nix build --store grpc://… --eval-store auto note: the `nix` on PATH loads no matching nix-grpc-store plugin; comparing against the worker protocol on the same store instead ok: same as the reference nix, /nix/store/38wadq58zmghrm8xxvqi9446ln8gqaiy-iets-grpc-e2e-classic == 5. classic out-link: the output is fetched back and registered locally machine # [296237.863799] machine nix-daemon[5110]: accepted connection from pid 5551, user alice (trusted) ok: fetched back, and the local daemon refused the unsigned scratch output as `nix copy --from` would == 6. a set of checks over grpc: the same verdicts as over the worker protocol machine # [296238.318171] machine nix-daemon[5110]: accepted connection from pid 5575, user alice (trusted) ok: 4 records, exit 100, the same either way == 7. a multi-root iets build over grpc names every attribute ok: 2 roots, one progress line each PASS machine: (finished: must succeed: runuser -l alice -c 'cd iets && IETS=/nix/store/s1knhqmd8dk0g9aah2mwhggr2537dkms-iets-0.1.0/bin/iets NIXPKGS=/nix/store/2010s04mqpq7q1kch0ddc9b429s2vh9v-source E2E_OFFLINE=1 DAEMON=/nix/store/pj0xhx1h30zprwa08dmf19ifjv9h0k0k-nix-grpc-daemon-0.1.0 nu scripts/grpc-e2e.nu' >&2, in 5.54 seconds) (finished: run the VM test script, in 20.69 seconds) test script finished in 20.80s cleanup kill NspawnMachine (pid 50) (finished: cleanup, in 0.11 seconds) Container machine terminated by signal KILL.