Commit graph

37 commits

Author SHA1 Message Date
lassulus
6433571556
Merge pull request #713 from nix-community/interactiveVM
add interactive VMs
2024-08-21 16:12:23 +02:00
matthewcroughan
d8a1d5e1f0 make-disk-image: allow vmTools qemu usage to be overriden by disko configuration
This is needed to prevent two layers of emulation when offering a build for a host running binfmt such as an x86 host trying to compile for aarch64 via binfmt
2024-08-14 20:05:56 +01:00
matthewcroughan
de015d2a44 make-disk-image: allow pkgs to be overriden by disko configuration
This is needed when the nixosConfig you're building for modifies nixpkgs options that lead to evaluation failing unnecessarily
2024-08-14 20:05:56 +01:00
matthewcroughan
f5cc4b55e5 make-disk-image: allow kernel to be overriden by disko configuration
This is especially useful when trying to build images for embedded systems such as the pi, which have a vendor kernel that can't be booted as part of the disko image builder process
2024-08-14 20:05:56 +01:00
lassulus
c5e5018a04 make-disk-image: add testMode, copyNixStore & extraConfig params 2024-07-21 22:40:29 +02:00
Jörg Thalheim
804ab2de77 treewide: reformat with nix fmt 2024-06-09 06:40:59 +00:00
Jörg Thalheim
6de2014749 make-disk-image: make efi variables writeable 2024-06-03 11:52:20 +00:00
pedohorse
c194451352 keep only origBuilder env from host 2024-06-03 11:35:13 +00:00
matthewcroughan
6c37763eb8 make-disk-image: use OVMF efi always 2024-05-19 23:16:38 +01:00
matthewcroughan
4444751300 make-disk-image: make extraPostVM configurable from module.nix 2024-05-19 14:38:05 +01:00
danjujan
d62af72c22 Fix xargs command not found in make-disk-image script 2024-05-14 21:38:05 +00:00
Jörg Thalheim
718565dfbb drop dependency on xcp
It's actually not faster in combination with xargs...
2024-05-07 08:53:10 +02:00
Jörg Thalheim
cdefe26742 load database with checksum again but do the same in disko-install 2024-05-07 08:53:10 +02:00
Jörg Thalheim
8a4585a200 disko-images: replace nix-copy with cp
This hopefully fixes the large memory consumption we have seen in the
past. Also presumably coreutils cp is more tuned for performance than
whatever nix does.
2024-05-06 20:51:39 +02:00
Jörg Thalheim
4f8c8580b4 fix building images when non-binary reproducible builds are present
closure-info has one flaw, it's possible that this file contains stale
information when build are not reproducible and the local checksum
doesn't match what the remote build created.
The work-around here is that we disregard the hashes and re-compute with
what nar's we actually have locally instead.
2024-05-06 19:29:20 +02:00
Qubasa
9f5d4e45cd nix fmt 2024-04-29 14:57:02 +00:00
Wim de With
f78b6498f6 make-disk-image: optionally include ZFS module in kernel 2024-01-12 15:58:58 +00:00
Wim de With
b4afc8bab8 make-disk-image: set image format explicitly
QEMU warns if format=raw is implied, and protects block 0 from getting
overwritten.
2024-01-12 15:54:48 +00:00
Wim de With
c38f369ee4 make-disk-image: umount filesystems after install
The vmTools in nixpkgs shuts the VM down with poweroff -f, which does
not cleanly umount the filesystems. This may lead to filesystem
corruption on the newly created image.
2024-01-12 15:54:48 +00:00
matthewcroughan
4c4634bbcb make-disk-image: allow extra dependencies to be passed into image builder 2023-12-14 14:24:37 +00:00
matthewcroughan
bb75ad0b1d make-disk-image: inherit kernel from nixosConfiguration 2023-12-14 14:05:13 +00:00
matthewcroughan
bd8fbc3f27 make-disk-image: make memSize configurable per disk
Sometimes the VM builder can run out of memory and fail to allocate memory when installing the system toplevel
2023-12-13 15:02:45 +00:00
Janik H
4fec5f515c make-disk-image: make generating the image more efficent 2023-11-11 16:14:15 +01:00
Janik H
b6fb19891f make-disk-image: add --build-memory 2023-11-11 16:14:15 +01:00
Janik H
da38eb67aa make-disk-image: improve --help 2023-11-11 16:14:15 +01:00
lassulus
d48930701c lib.makeDiskImages: also execute postVM 2023-09-26 13:29:13 +00:00
Janik H
fbfd7567c2 make-disk-image: allow secrets-pre-install but after portioning 2023-09-25 16:45:37 +00:00
lassulus
98a6ab9b52 make-disk-image: fix pre/post files with empty glob 2023-09-22 10:56:30 +00:00
lassulus
689873ae4f types *: run udevadm settle after partprobe 2023-09-13 22:07:35 +00:00
lassulus
79785c1cfc add pkgs.parted where partprobe is needed 2023-09-12 09:45:57 +00:00
Rudolf Vesely
fc6f863fe1 Fix problem with missing part. labels. 2023-09-11 19:42:40 +00:00
Jörg Thalheim
b32f0e2876 apply treefmt 2023-08-11 08:45:46 +00:00
lassulus
32e7d56c08 make-disk-image: get nixos-install from the instantiated system 2023-08-10 15:08:59 +02:00
lassulus
ab5f8eea75 make-disk-image: add impure variant 2023-08-07 15:57:14 +00:00
lassulus
5e253d949f makeDiskImage: add extraPostVM arg 2023-07-28 12:43:42 +00:00
lassulus
578ad4ef34 types disk: add imageSize for makeDiskImage 2023-07-28 12:43:42 +00:00
lassulus
a8834f94f3 lib: add makeDiskImage 2023-07-28 12:43:42 +00:00