about summary refs log tree commit diff
path: root/nixos/modules/virtualisation
AgeCommit message (Collapse)AuthorFilesLines
2023-01-08cri-o: 1.25.1 -> 1.26.0R. Ryantm1-2/+2
2023-01-08nixos/cri-o: source cni and crictl from packagezowoq1-4/+4
2023-01-08nixos/containers: source policy from separate skopeo outputzowoq1-2/+2
2023-01-04nixos/podman, podman: switch to `netavark` network stackzowoq2-58/+25
2023-01-03waydroid: 1.3.3 -> 1.3.4 (#206833)Charles Johnson1-5/+1
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-12-26Revert "treewide: use nativeBuildInputs with runCommand instead of inlining"K9002-18/+17
2022-12-26libvirtd: add parallelShutdown optionAlexander Bakker1-0/+12
This adds a new ``parallelShutdown`` option that allows users to control how many guests can be shut down concurrently. Allowing multiple virtual machines to be shut down at the same time reduces the amount of time it takes to reboot the host. Upstream documentation: https://www.libvirt.org/manpages/libvirt-guests.html#files
2022-12-25Merge pull request #206775 from SuperSandro2000/runCommand-nativeBuildInputsSandro2-17/+18
2022-12-24nixos/podman: add autoPrune optionFelix Buehler1-0/+48
2022-12-18treewide: use nativeBuildInputs with runCommand instead of inliningSandro Jäckel2-17/+18
2022-12-17nixos: fix typosfigsoda3-3/+3
2022-12-14Merge pull request #204480 from ncfavier/hv-kvpNaïm Favier1-2/+0
2022-12-09nixos/lxc-container: undo some of the minimal profile stuffIzorkin1-1/+7
2022-12-08nixos/doc: fix some optionsNaïm Favier1-4/+5
2022-12-04linuxPackages.hyperv-daemons: add path conditions for kvp and vssNaïm Favier1-2/+0
2022-12-03nixos/lxd: add missing util-linux to $PATHBjørn Forsman1-1/+2
This fixes `lxd init`, which previously failed like this: $ yes "" | lxd init [...] Error: Failed to create storage pool "default": Failed to run: losetup --find --nooverlap --direct-io=on --show /var/lib/lxd/disks/default.img: exec: "losetup": executable file not found in $PATH
2022-12-02Merge pull request #204103 from ncfavier/doc-mkOrderValentin Gagarin1-1/+1
nixos/doc: document `mkOrder` and friends
2022-12-02nixos/doc: document `mkOrder` and friendsNaïm Favier1-1/+1
Add a section on ordering option definitions. Also mention `mkDefault` in the section on `mkOverride`. Clarify the code a bit by renaming `defaultPriority` to `defaultOverridePriority` and introducing `defaultOrderPriority`.
2022-12-01ec2-amis: add release 22.11AmineChikhaoui1-1/+49
2022-12-01Merge pull request #189935 from baloo/baloo/qemu-vm/fixup-efi-partitionsRyan Lahfa1-1/+2
qemu-vm: ensure we do not overwrite the partition table when EFI is in use
2022-11-30nixos/lxc: apply recommendations from distrobuilderAaron Andersen1-6/+35
2022-11-29nixos/rosetta: init modulesandydoo1-0/+73
Run x86_64 binaries through Rosetta inside NixOS guests running on Apple silicon.
2022-11-29Merge pull request #203484 from asbachb/lxd/check-for-lxcfsMario Rodas1-2/+9
lxd: Check if `lxcfs` is enabled before adding it as service dependency
2022-11-28lxd: Check if `lxcfs` is enabled before adding it as service dependencyBenjamin Asbach1-2/+9
Without that check `lxc.service` cannot be manage manually as a manual start fails due to missing dependency to `lxcfs` when not enabled.
2022-11-24nixos/modprobe: replace boot.isContainer with boot.modprobeConfig.enableSandro Jäckel1-0/+2
2022-11-24Merge pull request #197925 from SuperSandro2000/lvm2Sandro1-0/+3
2022-11-23nixos/ec2: use only curl in metadata fetcher, log to consoleLinus Heckemann3-82/+71
We don't need both wget and curl, so let's use only curl (which is part of a minimal NixOS closure, unlike wget). Logging to the console is helpful for debugging.
2022-11-23ec2-metadata-fetcher: ignore failure when fetching metadata partsLinus Heckemann1-4/+4
Instances without SSH keys configured will receive a 404 from the metadata server when attempting to fetch an SSH key. This is not an actual problem though, and shouldn't result in the service failing. If the metadata server cannot be reached, the script will fail at an earlier stage when attempting to get authentication data.
2022-11-23amazon-image: fetch metadata only in stage-2Linus Heckemann2-70/+12
This also removes automatic enablement/mounting of instance store swap devices and ext3 filesystems. This behaviour is strongly opinionated and shouldn't be enabled by default. The unionfs behaviour never took effect anyway, because the AMI manifest path only exists for instance store-backed AMIs, which have not been supported by nixpkgs since 84742e22934d697e0476fab5a6c8886723ff92ef (2019).
2022-11-23nixos/ec2: remove paravirtualization-specific codeLinus Heckemann2-19/+6
Paravirtualized EC2 instances haven't been supported since 2017. It's safe to remove this now.
2022-11-21Merge pull request #182759 from otopetrik/proxmox-image-uefiSandro1-1/+58
2022-11-17Merge pull request #185129 from Munksgaard/fix-nixos-containeradisbladis1-4/+6
nixos-containers: Make sure same version of nixos-container is used
2022-11-14Merge pull request #200611 from fpletz/libvirtd-fix-autostartFranz Pletz1-0/+1
2022-11-12nixos/console: move enable option out of let inSandro Jäckel1-0/+3
2022-11-12Merge pull request #197917 from SuperSandro2000/kernel-enableSandro1-0/+2
2022-11-11nixos/libvirtd: always start libvirtdFranz Pletz1-0/+1
Previously we did socket-activation but this breaks the autostart feature since upstream expects libvirtd to be started unconditionally on boot. Fixes #171623.
2022-11-10Merge pull request #198526 from farnoy/nixos-container-unified-cgroupsEelco Dolstra1-0/+2
[nixos-container] Make nixos containers use unified cgroupsv2
2022-11-09nixos/lvm: replace boot.isContainer with services.lvm.enableSandro Jäckel1-0/+3
2022-11-09nixos/kernel: replace boot.isContainer with boot.kernel.enableSandro Jäckel1-0/+2
2022-11-09nixos/proxmox-image: allow building UEFI imagesOto Petřík1-1/+58
Allow building other than Legacy-BIOS-only Proxmox images. Default is unchanged. To build UEFI proxmox image use: proxmox.qemuConf.bios = "ovmf"; (default is "seabios") To build image bootable using both "seabios" and "ovmf" use: partitionTableType = "hybrid"; BIOS can be switched in Proxmox between "seabios" and "ovmf" and VM still boots. (GRUB2-only, systemd-boot does not boot under "seabios") To build systemd-boot UEFI image: proxmox.qemuConf.bios = "ovmf"; boot.loader.systemd-boot.enable = true;
2022-11-06nixos-container: force systemd-nspawn to use unified cgroups hierarchyJakub Okoński1-0/+2
2022-11-01nixos/vmware-guest: depend headless option on xserver availabilitySandro1-1/+2
2022-10-30Merge pull request #197870 from SuperSandro2000/udev-enableSandro1-0/+3
2022-10-27Merge pull request #195681 from maifel-maifel/mr-containers-hostPlatformRobert Hensing1-4/+6
nixos/containers: now uses nixpkgs.hostPlatform
2022-10-26nixos/udev: add enable optionSandro Jäckel1-0/+3
2022-10-19Merge branch 'master' into staging-nextJan Tojnar1-3/+4
; Conflicts: ; pkgs/development/tools/codespell/default.nix codespell 2.2.2 switched to pyproject & setuptools_scm: https://github.com/codespell-project/codespell/pull/2523
2022-10-18nixos/containers: support nixpkgs.hostPlatformdigital1-4/+6
Use hostPlatform if both the host and the containers nixpkgs supports hostPlatform, otherwise fall back to localSystem. This preseves backwards compatibility.
2022-10-17nixos/modules/virtualisation: fix oci-containers with dockerKarel Kočí1-3/+4
The empty attribute set is invalidly provided as service config and results in evaluation error.
2022-10-16Merge remote-tracking branch 'origin/master' into staging-nextMartin Weinelt1-4/+21
2022-10-15Merge pull request #177406 from davidkna/podman-genFlorian Klink1-4/+21
nixos/virtualisation.oci-containers: follow podman-generated systemd units more closely