3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/lib
Eelco Dolstra 89ef5c979b * New nixos-rebuild action: "nixos-rebuild build-vm" builds a virtual
machine containing a replica (minus the state) of the system
  configuration.  This is mostly useful for testing configuration
  changes prior to doing an actual "nixos-rebuild switch" (or even
  "nixos-rebuild test").  The VM can be started as follows:

  $ nixos-rebuild build-vm
  $ ./result/bin/run-*-vm

  which starts a KVM/QEMU instance.  Additional QEMU options can be
  passed through the QEMU_OPTS environment variable
  (e.g. QEMU_OPTS="-redir tcp:8080::80" to forward a host port to the
  guest).  The fileSystem attribute of the regular system
  configuration is ignored (using mkOverride), because obviously we
  can't allow the VM to access the host's block devices.  Instead, at
  startup the VM creates an empty disk image in ./<hostname>.qcow2 to
  store the VM's root filesystem.

  Building a VM in this way is efficient because the VM shares its Nix
  store with the host (through a CIFS mount).  However, because the
  Nix store of the host is mounted read-only in the guest, you cannot
  run Nix build actions inside the VM.  Therefore the VM can only be
  reconfigured by re-running "nixos-rebuild build-vm" on the host and
  restarting the VM.

svn path=/nixos/trunk/; revision=16662
2009-08-11 01:35:56 +00:00
..
check-config.nix Inline the require attribute and move the set into lib/check-config.nix. 2009-07-06 16:21:03 +00:00
eval-config.nix * New nixos-rebuild action: "nixos-rebuild build-vm" builds a virtual 2009-08-11 01:35:56 +00:00
from-env.nix * Make eval-config.nix a bit more general to make it easier to build 2009-06-05 13:19:39 +00:00
make-iso9660-image.nix * Modularise the building of the installation CD/DVD. The module 2009-06-05 13:35:27 +00:00
make-iso9660-image.sh * Break the cyclic dependency between the system derivation and 2009-06-10 21:46:42 +00:00
make-squashfs.nix * A function for generating squashfs filesystem images. 2009-06-10 13:40:35 +00:00
unpack-theme.nix * helpers -> lib. 2009-05-29 14:46:27 +00:00
unpack-theme.sh * helpers -> lib. 2009-05-29 14:46:27 +00:00