about summary refs log tree commit diff
path: root/pkgs/build-support/vm
Commit message (Collapse)AuthorAge
* fillDiskWithRPMs: Pass --extract-over-symlinks to cpioEelco Dolstra2015-02-27
| | | | http://hydra.nixos.org/build/20003320
* Fix conflict between fedora-release and generic-releaseEelco Dolstra2015-02-12
| | | | http://hydra.nixos.org/build/19594340
* Remove tabsEelco Dolstra2015-02-12
|
* Remove ancient RedHat 9 / SuSE 9 imagesEelco Dolstra2015-02-12
| | | | These are 12 years old and I don't think anybody is using them.
* fillDiskWithRPMs: Shut up some warningsEelco Dolstra2015-02-12
|
* Add Fedora 21Eelco Dolstra2015-02-10
|
* Update Debian to 7.8Eelco Dolstra2015-01-15
|
* Fix a warning in initrd generationEelco Dolstra2015-01-12
| | | | | ${pkgs.busybox}/bin and ${pkgs.busybox}/sbin are now the same directory, so don't copy both.
* Remove RHEL 7 RCEelco Dolstra2015-01-12
| | | | It no longer exists on the RedHat FTP site.
* Fix CentOS 6.5 URLsEelco Dolstra2015-01-12
|
* Ubuntu 14.10: Update hashesEelco Dolstra2014-12-05
|
* Update to Debian 7.7Eelco Dolstra2014-11-20
|
* Add Ubuntu 14.10Eelco Dolstra2014-11-20
|
* vmTools: Fix permissions on /tmp and /dev/*Eelco Dolstra2014-11-18
|
* Debain 7.6-amd64 tarball was updated in placeShea Levy2014-10-20
|
* debian packages tarball was updated in placeShea Levy2014-10-20
|
* Remove references to <nixpkgs>Eelco Dolstra2014-09-23
| | | | | | Nixpkgs should not use <nixpkgs> to refer to itself, because $NIX_PATH might not be set or not point to the same Nixpkgs. It's also unnecessary.
* VM builds: Use default kernelMathijs Kwik2014-09-23
| | | | | (this was set to 3.10 when 3.4 was our default) See commit d846e976564350b247600b87cd065b3e42440846.
* rpm-closure.pl: Reduce verbosityEelco Dolstra2014-09-05
|
* debian: Update to 6.0.10Eelco Dolstra2014-08-10
|
* Merge remote-tracking branch 'origin/master' into stagingEelco Dolstra2014-07-14
|\
| * debian: Update to 7.6Eelco Dolstra2014-07-14
| |
* | Another attempt to eradicate ensureDirEelco Dolstra2014-06-30
|/ | | | See c556a6ea46e71e1907d78b71fab36df30297b3ad.
* Update Ubuntu Packages.bz2 hashesEelco Dolstra2014-05-20
|
* vm/windows: Wait for migration to finish.aszlig2014-05-07
| | | | | | | | | This ensures that the intermediate machine is shut down only after the migration has finished writing the memory dump to disk, to ensure we don't end up with empty state files depending on how fast the migration finished before we actually shut down the VM. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* vm/windows: Exit if VM has dropped out.aszlig2014-05-07
| | | | | | | | | This ensures that the builder isn't waiting forever if the Windows VM drops dead while we're waiting for the controller VM to signal that a particular command has been executed on the Windows VM. It won't ever happen in such cases so it doesn't make sense to wait for the timeout. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* debian: Update to 7.5Eelco Dolstra2014-05-03
| | | | | | | [Note from Austin: I think @edolstra forgot to merge this to master.] (cherry picked from commit 02b056c5b180b4b8ba22ddc3061d78258e2ef98f on release-14.04)
* build-support/vm: add Ubuntu 14.04 Trusty TahirAustin Seipp2014-05-03
| | | | Signed-off-by: Austin Seipp <aseipp@pobox.com>
* Add RHEL7 to vm functions.Rob Vermaas2014-05-01
|
* debian: Update to 6.0.9Eelco Dolstra2014-04-25
|
* runInLinuxVM: Set the clock properlyEelco Dolstra2014-03-18
|
* vm/windows: Allow to specify a different arch.aszlig2014-03-04
| | | | | | | | | | | So far, we determined this based on stdenv.is64bit, but there are cases where you want to run/build a 32bit program on a 64 bit Windows. This is now possible, by passing windowsImage.arch = "i686" | "x86_64" to runInWindowsVM. Based an what was passed, the corresponding Cygwin packages and setup.exe are bootstrapped. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* vm/windows: Update SHAs for Cygwin setup.ini.aszlig2014-03-03
| | | | | | | | Another very annoying part. Unfortunately, the only option we might have here is to include it in nixpkgs or maybe make a fixed Hash on the result of the closure fetcher. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* vm/windows: Replace binary with cross cygwinSetup.aszlig2014-03-03
| | | | | | | | | | | | | | | | | As the official Cygwin setup binary download doesn't come in snapshots or even versioned, the fetchurl of setup.exe will frequently fail, which in turn will annoy us as hell (or at least me). One warning though: The fetchurl is currently broken and the cross-build might not work yet for example on mingw32 (mingw-w64 branch on its way), but the upstream URL has already changed and the new version contains a bug (not yet tracked down) which breaks our Windows bootstrap process. So to conclude: If it's already broken, make it at least "less broken". "Not broken" is coming soon with the merge of the mingw-w64 branch. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* vm/windows: Remove stray "import <nixpkgs>".aszlig2014-03-03
| | | | Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* vm/windows: Fix typo in runInWindowsVM.aszlig2014-03-03
| | | | | | | Coincidentally, even with this typo, most tests work anyway, so I didn't notice it in the first place. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* vmTools: Hook in runInWindowsVM function.aszlig2014-02-26
| | | | Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* vm/windows: Add setup.ini for 32bit architecture.aszlig2014-02-26
| | | | | | | | Also update 64bit setup.ini and check whether we have a 64 bit stdenv in order to choose the proper Cygwin version. Otherwise we now have the setup.ini for 32bit available as well. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* vm/windows: Make list of dependencies explicit.aszlig2014-02-26
| | | | | | | | | | So far, the VMs have always been using the native architecture, because it was reimporting <nixpkgs> several times. Now, we propagate a list of packages down to all sub-imports, which not only makes clearer which dependencies a part actually has, but also will make it easier in case we want to refactor those parts to use callPackage. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* vm/windows: Factor out bootstrapping process.aszlig2014-02-26
| | | | | | | | This now isolates the vmTools integration from the bootstrap process and thus removes our fixed Windows ISO and product key. The latter can now be provided by an attribute "windowsImage" to runInWindowsVM. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* vm/windows: Collect exit code from xchg.aszlig2014-02-26
| | | | | | | | | | This is the last item that was missing to get a fully working runInWindowsVM function. Apart from checking exit codes, we also now have preVM/postVM hooks which we can use to write arbitrary constructs around this architecture, without the need to worry about specific details. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* vm/windows: Add new runInWindowsVM function.aszlig2014-02-26
| | | | | | | | | | | | | | | | | | | This function is quite similar to runInLinuxVM, but also ensures that the builder is run decoupled of the Nix store and using the userland inside the VM. We're now picking up the environment variables saved in the previous commit. The reason we suppress all errors from the source operation is that it would emit a ton of errors because we're trying to set read-only variables. Also, detecting whether the origBuilder is using the default builder from the stdenv is currently a bit of a workaround until we have a specialized pseudo-cross-stdenv someday in the future[TM]. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* vm/windows: Save envirenoment before running VM.aszlig2014-02-26
| | | | | | | | | | | | | Later, when we start the actual builder, we're going to restore those environment variables. We're using "(set; declare -p)", here, because the former is just printing _all_ environment variables, even those not supported, and the latter only lists specifically declared variables, which also encludes exports. The "declare -p" command also emits those variables in a format similar to the "export" command. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* vm/windows: Generate mounts from an attribute set.aszlig2014-02-26
| | | | | | | This is mainly to make it easier to quickly change mappings, without making room for errors such as typos. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* vm/windows: Create fstab entries in suspended VM.aszlig2014-02-26
| | | | | | | | Cygwin initializes mounts on _every_ login via SSH and doesn't keep them consistently like on Unix systems, that's why we need to also add fstab entries for the bind mounts to the store and xchg shares. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* vm/windows: Use &&, not set -e in runAndSuspend.aszlig2014-02-26
| | | | | | | We now have proper quoting, so we no longer need the workaround using "set -e". Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* vm/windows: Fix perms of the Samba shares.aszlig2014-02-26
| | | | | | | | | | | | | | We now map all guest accounts to the root user, because in the end the permissions of the current user boil down to the build user of the Nix builder of the host. That way it's not possible to gain more permissions at all and just makes the VM communication a lot easier. However, setting "writable" to yes instead of "read only" to no doesn't change anything here, I just found it to be clearer. Also, we now no longer need to have a "nobody" user. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* vm/windows: Avoid shadowing the Nix store.aszlig2014-02-26
| | | | | | | | | | | This is done by putting the non-initrd /nix/store into a subdirectory, which we then chroot to and pass along the SSH command. Also, we now collect the exit code after the chroot command and power off the VM thereafter, because the store is no longer shadowed and we have still access to the busybox inside the initrd. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* vm/windows: Remove Samba from installMode.aszlig2014-02-26
| | | | | | | | | This should trim down possible dependencies on the base installation and hereby reduce the need for reinstallation of the damn VM to only changes that affect the Windows installation and the base Cygwin + OpenSSH setup. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* vm/windows: Implement and use "xchg" share.aszlig2014-02-26
| | | | | | | | | This now finally introduces our xchg share and also uses it for exchanging state while suspending a VM. However, accessing the _real_ Nix store still isn't possible because we're shadowing the directory in the initrd. Signed-off-by: aszlig <aszlig@redmoonstudios.org>