fixing vm issues

This commit is contained in:
ari committed 2026-09-17 15:16:29 -04:00
1 parent 49c6d6e6cc
commit 0e76632d2e
9 files changed
+138 -10

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env nu
#
# runvmtest-debug — build the guest-config VM test's interactive driver and
# drop into it, instead of just running it for pass/fail (see runvmtest).
#
# Opens a Python (ptpython) REPL with the test's node defined but not yet
# started. Useful from there:
# start_all()
# machine.wait_for_unit("multi-user.target")
# machine.shell_interact() # live shell inside the guest, over the console
# machine.succeed("...") # run any assertion from guest/vm-test.nix by hand
#
# Same --impure requirement as runvmtest, same reason (guest/common.nix
# reads /etc/hermenix/local.nix if present). Not run for you automatically
# — needs a real build, which agents in this repo don't run.
def main [] {
^nix build ".#checks.x86_64-linux.guest-vm.driverInteractive" --impure -L
^./result/bin/nixos-test-driver
}