+1
doc/builders/special.xml
+1
doc/builders/special.xml
+116
doc/builders/special/vm-tools.section.md
+116
doc/builders/special/vm-tools.section.md
···
···+Run a derivation in a Linux virtual machine (using Qemu/KVM). By default, there is no disk image; the root filesystem is+a `tmpfs`, and the nix store is shared with the host (via the 9P protocol). Thus, any pure Nix derivation should run+If the build fails and Nix is run with the `-K` option, a script `run-vm` will be left behind in the temporary build+* `preVM` (optional). Shell command to be evaluated *before* the VM is started (i.e., on the host).+* `diskImage` (optional). A file system image to be attached to `/dev/sda` (Note that currently we expect the image to+runInLinuxVM (hello.overrideAttrs (_: { preVM = createEmptyImage { size = 1024; fullName = "vm-image"; }; }))+Like [](#vm-tools-runInLinuxVM), but run the build not using the `stdenv` from the Nix store, but using the tools+provided by `/bin`, `/usr/bin`, etc. from the specified filesystem image, which typically is a filesystem containing a+* `extraPackages` (optional). A list names of additional packages from the distribution that should be included in the
+1
doc/manpage-urls.json
+1
doc/manpage-urls.json
···
···