about summary refs log tree commit diff
path: root/pkgs/build-support/vm
AgeCommit message (Collapse)AuthorFilesLines
2023-02-20build-support/vm/deb/deb-closure: quote generated urlsajs1241-1/+1
otherwise, eval fails when the experimental no-url-literals feature is activated unquoted urls are discouraged after https://github.com/NixOS/rfcs/pull/45
2023-02-16Merge pull request #205156 from yu-re-ka/musl-runinlinuxvmsuperherointj1-5/+7
runInLinuxVM: fix on musl
2023-02-14Merge pull request #215713 from sikmir/vmtoolsNikolay Korotkiy1-8/+8
vmTools: update debian versions
2023-02-13treewide: use optionalStringFelix Buehler1-1/+1
2023-02-10vmTools: update debian versionsNikolay Korotkiy1-8/+8
2023-01-16treewide: remove usages of header and stopNestArtturin1-4/+2
they're obsolete
2022-12-26vmTools: add ubuntu 22.04Alexander Bich1-0/+34
2022-12-20Merge pull request #203117 from sikmir/vmtoolsSandro1-20/+20
vmTools: update current maintained debian versions
2022-12-17treewide: fix typosfigsoda1-1/+1
2022-12-08runInLinuxVM: fix on muslYureka1-5/+7
2022-11-26vmTools: update current maintained debian versionsNikolay Korotkiy1-20/+20
2022-05-27treewide: change some glibc to stdenv.cc.libcArtturin1-4/+4
2022-05-25treewide: stdenv.glibc -> glibcArtturin1-4/+4
2021-12-31vmTools/test: fix pcmanfm instead of panJörg Thalheim1-2/+4
This goes much quicker. Also disable parallel build for machines with many cores to avoid running out of memory.
2021-12-28vmTools/test: add missing backing formatAlyssa Ross1-0/+1
2021-12-28vmTools/test: give pan build more memoryAlyssa Ross1-1/+1
2021-12-28vmTools.buildRPM: properly derive source nameAlyssa Ross1-4/+1
This fixes e.g. building the rpm of patchelf as in pkgs/build-support/vm/test.nix. The glob won't work if there are multiple spec files but I don't think rpmbuild would work in that case either.
2021-12-28vmTools: fix phasesAlyssa Ross1-1/+1
These gave missing attribute errors. They should have been written as strings in ae9337179b7. Fixes: ae9337179b7 ("vm: deprecate phases") Fixes: 52b10ee8725 ("vmTools refactor: don't use huge `with pkgs;`")
2021-12-28vmTools/test: update for new releasesAlyssa Ross1-3/+3
2021-12-17runInLinuxVM: set 9p msize to 128KAlyssa Ross1-2/+2
This fixes the following warning from QEMU, by using the value that will be the default in newer kernels[1]. > 9p: degraded performance: a reasonable high msize should be chosen > on client/guest side (chosen msize is <= 8192). See > https://wiki.qemu.org/Documentation/9psetup#msize for details. For a runInLinuxVM derivation I have that does a large amount of IO[2], this change results in a fairly small but repeatable speed increase. [1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9c4d94dc9a64426d2fa0255097a3a84f6ff2eebe [2]: https://spectrum-os.org/git/spectrum/tree/installer/default.nix?id=06dd70500a9e475d23e3296dddf409d84abf9b9c#n52
2021-12-08vmTools.runInLinuxVM: create fd symlinks in /devAlyssa Ross1-0/+4
These are usually set up by systemd, but there's no systemd in the VM. /dev/fd is required for <(...) syntax in bash, and I'm sure lots of things depend on the stdin/stdout/stderr links as well.
2021-11-24Revert msize related commits (#147180)Artturi1-9/+2
2021-11-20treewide: refactor isi686 && isx86_64 -> isx86Ryan Burns1-1/+1
2021-11-21vmTools: set msize to 16KiB temporarilyArtturin1-1/+2
hopefully this will reduce the ram usage enough
2021-11-20vmTools: set msize to 128KiBArtturin1-2/+3
500KiB was causing issues https://github.com/NixOS/nixpkgs/pull/142577
2021-11-18vmTools: Make msize larger to silence warningJanne Heß1-2/+7
See https://issues.guix.gnu.org/47225
2021-10-28runInLinuxImage: Add missing backing formatChristian Kögler2-1/+2
2021-10-28buildInDebian: fix testChristian Kögler1-3/+2
2021-09-30vmTools refactor: don't use huge `with pkgs;`Vladimír Čunát1-10/+13
... especially when scoped over hundreds of lines of code.
2021-09-29vmTools.createEmptyImage: Add destination parameterRobert Hensing1-6/+15
2021-09-28Merge pull request #127933 from rnhmjoj/qemu-restorationTimothy DeHerrera1-4/+4
Qemu restoration
2021-09-22Merge pull request #109636 from mroi/patch-vmtoolsJörg Thalheim1-4/+8
vmTools: fix cross compilation
2021-09-18nixos/lib/qemu-flags: rename to qemu-commonrnhmjoj1-4/+4
The current name is misleading: it doesn't contain cli arguments, but several constants and utility functions related to qemu. This commit also removes the use of `with import ...` for clarity.
2021-08-20vm: deprecate phasesFelix Buehler2-3/+5
2021-05-27vmTools: update current maintained debian versionsJörg Thalheim1-23/+21
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-05-26vmTools: update current lts versions of ubuntuJörg Thalheim1-67/+28
2021-04-04lzma: deprecate aliasSandro Jäckel1-1/+1
2021-03-23vmTools: fix cross compilationMichael Roitzsch1-4/+8
executables used at build-time should be taken from buildPackages
2021-01-24treewide: stdenv.lib -> libPavol Rusnak1-2/+3
2021-01-23lib: Clean up how linux and gcc config is specifiedJohn Ericson1-1/+1
Second attempt of 8929989614589ee3acd070a6409b2b9700c92d65; see that commit for details. This reverts commit 0bc275e63423456d6deb650e146120c39c1e0723.
2021-01-22Revert "lib: Clean up how linux and gcc config is specified"Jonathan Ringer1-1/+1
This is a stdenv-rebuild, and should not be merged into master This reverts commit 8929989614589ee3acd070a6409b2b9700c92d65.
2021-01-21lib: Clean up how linux and gcc config is specifiedJohn Ericson1-1/+1
The `platform` field is pointless nesting: it's just stuff that happens to be defined together, and that should be an implementation detail. This instead makes `linux-kernel` and `gcc` top level fields in platform configs. They join `rustc` there [all are optional], which was put there and not in `platform` in anticipation of a change like this. `linux-kernel.arch` in particular also becomes `linuxArch`, to match the other `*Arch`es. The next step after is this to combine the *specific* machines from `lib.systems.platforms` with `lib.systems.examples`, keeping just the "multiplatform" ones for defaulting.
2020-12-30vmTools.debClosureGenerator: Fix non-determinism in dependency graphDamien Diederen1-1/+1
By default, Perl versions since 5.8.1 use randomization to make hashes resistant to complexity attacks. That randomization makes building VM images such as ubuntu1804x86_64 non-deterministic because the (imported) derivations built by deb/deb-closure.pl are not stable. This can easily be observed by repeating the following sequence of commands and noting the path of the image's .drv: nix-instantiate -E '(import <nixpkgs> {}).vmTools.diskImageFuns.ubuntu1804x86_64 {}' nix-store --delete /nix/store/*ubuntu-18.04-bionic-amd64.nix One source of non-determinism is the handling of Provides/Replaces, which depends on the order of iteration over %packages. Here is a diff showing the corresponding change in output: >>> awk -virtual awk: using original-awk - original-awk: libc6 (>= 2.14) +virtual awk: using mawk + mawk: libc6 (>= 2.14) - mawk: libc6 (>= 2.14) ->>> libc6 This patch sorts packages by name for Provides/Replaces processing, which seems to result in stable output. (If the above turns out not to be sufficient, one could also set the PERL_HASH_SEED and PERL_PERTURB_KEYS environment variables, documented in 'perlrun', to disable Perl's built-in randomization. Complexity attacks are not an issue as we control and trust all inputs.)
2020-12-17vm: Remove runInWindowsVM implementationaszlig8-722/+1
Originally this was meant to support other Windows versions than just Windows XP, but before I actually got a chance to implement this I left the project that I implemented this for. The code has been broken for years now and I highly doubt anyone is interested in resurrecting this (including me), so in order to make this less of a maintenance burden for everybody, let's remove it. Signed-off-by: aszlig <aszlig@nix.build>
2020-11-24utillinux: rename to util-linuxGraham Christensen1-16/+16
2020-06-01Merge pull request #82258 from erikarvstedt/fix-xchg-cachingFlorian Klink2-2/+2
fix inconsistent caching of VM xchg dirs
2020-06-01qemu-vm: fix inconsistent caching of xchg dirsErik Arvstedt2-2/+2
xchg is advertised as a bidirectional exchange dir, but file content transfer from host to VM fails due to caching: If a file is read in the VM and then modified on the host, subsequent re-reads in the VM can yield old, cached data. This is caused by the use of 9p's cache=loose mode that is explicitly meant for read-only mounts. 9p doesn't provide any suitable cache modes, so fix this by disabling caching. Also, remove a now unnecessary sync in the test driver.
2020-04-10treewide: Per RFC45, remove all unquoted URLsMichael Reilly1-38/+38
2020-03-29vmTools.diskImageFuns.debian9i386: update source urlSymphorien Gibol1-2/+2
referenced packets were removed from the mirrors Fixes #77396 #80041
2020-02-20runInLinuxVM: Ensure tools requiring /etc/passwd workSamuel Dionne-Riel1-0/+4
This includes, but is not limited to: * whoami * nix >= 2.3.1 See * https://github.com/NixOS/nixpkgs/issues/71157 * https://github.com/NixOS/nixops/issues/1216 * https://github.com/nix-community/nixops-libvirtd/issues/5