nix-scripts/artiq-fast/wfvm
Sebastien Bourdeauducq 72d155c047 wfvm: Use OpenSSH instead of Paramiko
The Paramiko hack does not stream stdout/stderr and makes debugging or using expect problematic.
2020-06-13 18:57:50 +08:00
..
bundle add wfvm 2020-06-13 18:57:50 +08:00
openssh add wfvm 2020-06-13 18:57:50 +08:00
README.md add wfvm 2020-06-13 18:57:50 +08:00
autounattend.nix add wfvm 2020-06-13 18:57:50 +08:00
build.nix wfvm: Use OpenSSH instead of Paramiko 2020-06-13 18:57:50 +08:00
default.nix add wfvm 2020-06-13 18:57:50 +08:00
install.nix add wfvm 2020-06-13 18:57:50 +08:00
manual-test-run.nix add wfvm 2020-06-13 18:57:50 +08:00
pkgs.nix add wfvm 2020-06-13 18:57:50 +08:00
qemu.nix add wfvm 2020-06-13 18:57:50 +08:00
run-test.nix add wfvm 2020-06-13 18:57:50 +08:00
win.nix wfvm: Use OpenSSH instead of Paramiko 2020-06-13 18:57:50 +08:00

README.md

Preparation steps

Install a Windows image

  1. Adjust build.nix accordingly
  2. Run:

If in impure mode

nix-build build.nix
./result

Results in a file called c.img

If in pure mode

nix-build build.nix
ls -la ./result

Results in a symlink to the image in the nix store

Impure/pure mode

Sometimes it can be useful to build the image outside of the Nix sandbox for debugging purposes.

For this purpose we have an attribute called impureMode which outputs the shell script used by Nix inside the sandbox to build the image.