Commit Graph

42 Commits

Author SHA1 Message Date
Varun Biniwale
fe37bcee22 vmTools: add Ubuntu 26.04 "Resolute" (amd64) disk image
Adds `ubuntu2604x86_64` to the VM disk image definitions using a
snapshot from 2026-05-15, along with a corresponding test target
`testUbuntu2604x86_64Image` in test.nix.
2026-05-26 13:48:24 -07:00
Colin
86ada36e02 build-support/vm: fix unpopulated debsGrouped after structuredAttrs refactor
debsGrouped was a nested array, like `[ [ drv1 drv2 ] [ drv3 ] ... ]`.
that doesn't map to any bash item, so it would live only in the json attrs.

the `for component in "${debsGrouped[@]}"; ...` part of buildCommand
was thus referring to an unset variable... but the default bash behavior
is to treat that as an empty array even with `set -u` so the loop was
just doing nothing.

instead, flatten the array on the nix side. bash gets something like
`("drv1 drv2" "drv3" ...)` and the existing shell code destructures
that as expected.

verify by building a vm (e.g.
`tests.vmTools.buildPatchelfInDebian.diskImage`) and checking the
nix-log before and after for `INSTALLING COMPONENT` messages.

Co-Authored-By: Stefan Frijters <sfrijters@gmail.com>
2026-05-21 07:28:29 +00:00
Philip Taron
52fbdf3dee vmTools: drop CentOS Stream
As @uninsane points out, these are designed to rot rapidly.
2026-01-05 10:33:39 -08:00
Philip Taron
2fec9598a8 vmTools: shore up the tests with each image 2026-01-05 09:57:14 -08:00
Philip Taron
921c93ffbc vmTools: add in Amazon Linux 2023 2026-01-05 09:57:14 -08:00
Philip Taron
98b0461681 vmTools: add Oracle Linux 9 2026-01-05 09:57:14 -08:00
Philip Taron
e2127eb5d0 vmTools: add Alma Linux 9 and 10 2026-01-05 09:57:14 -08:00
Philip Taron
0101fa5e71 vmTools: add Rocky Linux 10 2026-01-05 09:57:14 -08:00
Philip Taron
89def9fcce vmTools: add Rocky Linux 9 2026-01-05 09:57:14 -08:00
Philip Taron
c906fa0b6d vmTools: introduce CentOS Stream 10 2026-01-05 09:57:13 -08:00
Philip Taron
627a540b23 vmTools: introduce CentOS Stream 9 2026-01-05 09:57:13 -08:00
Philip Taron
052667f525 vmTools: introduce Fedora 43
It uses unified sbin, which requires a slight tweak in the unifiedSystemDir setup
2026-01-05 09:57:13 -08:00
Philip Taron
b0bc312869 vmTools: add in Fedora 42 support 2026-01-05 09:57:13 -08:00
Philip Taron
db467c36ec vmTools: use callPackage and fix rotted tests 2026-01-05 09:57:09 -08:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Wolfgang Walther
de7867c226 runInLinuxVM: add simple structuredAttrs test 2024-11-30 12:26:26 +01:00
Philip Taron
102a33d30e Avoid top-level with ...; in pkgs/build-support/vm/test.nix 2024-03-19 22:31:19 +01:00
Jörg Thalheim
d6fee2a44a vmTools/test: fix pcmanfm instead of pan
This goes much quicker. Also disable parallel build for machines with
many cores to avoid running out of memory.
2021-12-31 16:47:22 +01:00
Alyssa Ross
37c5db5a29 vmTools/test: add missing backing format 2021-12-28 13:10:16 +00:00
Alyssa Ross
80b5b4917c vmTools/test: give pan build more memory 2021-12-28 13:10:15 +00:00
Alyssa Ross
812fe6a2b3 vmTools/test: update for new releases 2021-12-28 12:40:57 +00:00
Christian Kögler
9bf244964d runInLinuxImage: Add missing backing format 2021-10-28 00:05:27 +02:00
Christian Kögler
0625121793 buildInDebian: fix test 2021-10-28 00:03:27 +02:00
Felix Buehler
ae9337179b vm: deprecate phases 2021-08-20 23:31:26 +02:00
volth
08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
Eelco Dolstra
9f5f30a7e6 Remove runInGenericVM
It's not used anywhere and probably doesn't work anymore.
2013-07-05 00:17:04 +02:00
Eelco Dolstra
0e386d0c13 VM builds: Use 9p/virtfs instead of CIFS
9p (with caching enabled) is much faster than CIFS and doesn't require
Samba or virtual networking.  For instance, building GNU Hello with
CIFS takes ~323s on my laptop, but with 9p it takes 54s.

More measurements will be needed to see if "cache=fscache" is really
faster than "cache=loose" (the former seems to be a little bit
faster).
2013-07-05 00:17:04 +02:00
Eelco Dolstra
7afc1149d9 testRPMImage: Use x86_64 image 2013-07-04 18:27:26 +02:00
Eelco Dolstra
b6917d3b73 * Added Ubuntu 12.04.
svn path=/nixpkgs/trunk/; revision=34055
2012-05-11 02:04:14 +00:00
Eelco Dolstra
ed325cd1ae * We accidentally lost xz support in rpm. This broke RPM builds
(http://hydra.nixos.org/build/2230623).

svn path=/nixpkgs/trunk/; revision=32847
2012-03-07 09:47:22 +00:00
Rob Vermaas
adeb63e4c2 remove aterm242fixes
svn path=/nixpkgs/trunk/; revision=25407
2011-01-05 09:42:56 +00:00
Eelco Dolstra
81fa7ae7b2 * Added Fedora 13.
svn path=/nixpkgs/trunk/; revision=22259
2010-06-14 16:48:36 +00:00
Eelco Dolstra
6dddd07402 * vmTools: don't use klibc anymore. Just use utillinux/bash/etc.
svn path=/nixpkgs/trunk/; revision=22209
2010-06-10 12:28:04 +00:00
Eelco Dolstra
7782a3189e * Added Debian 5.0 (Lenny). Added the "login" package to the base
image, otherwise the post-installs script of the "passwd" package
  will fail because /etc/login.defs is missing.  This also fixes the
  Ubuntu 8.10 image generation, woohoo!

svn path=/nixpkgs/trunk/; revision=14217
2009-02-24 10:56:42 +00:00
Eelco Dolstra
8a3757b7f1 * Added Ubuntu 8.10. It doesn't work yet though (the passwd package
fails to install).

svn path=/nixpkgs/trunk/; revision=13272
2008-11-12 17:15:09 +00:00
Eelco Dolstra
bcf24b6683 * KVM 76.
svn path=/nixpkgs/trunk/; revision=13023
2008-10-09 13:33:29 +00:00
Eelco Dolstra
03f51200c2 * A function `runInGenericVM' that performs a build in an arbitrary VM
image (i.e., it can contain any OS that obeys the interface
  documented in the comment).  See `testFreeBSD' for an example that
  performs a build of the ATerm library on FreeBSD 7.0.  This will be
  used in the build farm to perform builds for platforms for which we
  cannot synthesize VM images automatically.

svn path=/nixpkgs/trunk/; revision=11753
2008-04-29 12:32:17 +00:00
Eelco Dolstra
9c8f2009f8 * Generate the Fedora 5 RPM closure automatically.
svn path=/nixpkgs/trunk/; revision=11514
2008-04-09 12:51:54 +00:00
Eelco Dolstra
cc07ee1c77 * Install RPMs without the --notriggers and --nodeps options in order
to construct an image that better approximates the Linux
  distribution in question.

svn path=/nixpkgs/trunk/; revision=11184
2008-03-18 14:56:47 +00:00
Eelco Dolstra
fd2a77eeb0 * Put all the RPM/Debian images in an attribute set `diskImage'.
svn path=/nixpkgs/trunk/; revision=11181
2008-03-18 12:54:21 +00:00
Eelco Dolstra
113fafd778 * buildRPM: print out the RPMs in the image.
svn path=/nixpkgs/trunk/; revision=11168
2008-03-17 17:29:07 +00:00
Eelco Dolstra
195c3788ed * Cleanup.
svn path=/nixpkgs/trunk/; revision=11166
2008-03-17 17:08:40 +00:00