about summary refs log tree commit diff
path: root/nixos/modules/virtualisation
AgeCommit message (Collapse)AuthorFilesLines
2023-05-28nixos/qemu-vm: fix 32-bits assert for memorySizeRaito Bezarius1-1/+1
It should be an implication, rather than &&. (cherry picked from commit 09d102278285e4a8917cb94de4d578243b57f2d3)
2023-05-28nixos/qemu-vm: add `virtualisation.memorySize < 2048` assertion on 32bitemilylange1-1/+7
(cherry picked from commit 5dbd4f32433b4f8511c702ee8bb66e8b4fff7b87)
2023-05-25nixos/proxmox-image: fix qemu build failureillustris1-5/+6
(cherry picked from commit 6a20c1325880ff0f4d894fa4d008d901ceac4529)
2023-05-20nixos/libvirtd: enable polkitSandro Jäckel1-8/+11
it is enforced by an assert anyway
2023-05-16Merge pull request #231097 from aanderse/lxc/nixos-rebuild-bootMaciej Krüger1-0/+5
2023-05-12treewide: pass system argument to eval-config.nixFabian Möller1-0/+4
Calling `eval-config.nix` without a `system` from a Nix flake fails with `error: attribute 'currentSystem' missing` since #230523. Setting `system = null` removes the use of `currentSystem` and instead uses the value from the `nixpkgs` module.
2023-05-11Merge pull request #231140 from NixOS/rosetta-nix-buildArian van Putten1-1/+9
modules/rosetta: configure nix build sandbox to use rosetta
2023-05-10nixos/*: remove boot.grub.versionajs1242-2/+0
2023-05-10modules/rosetta: configure nix build sandbox to use rosettaArian van Putten1-1/+9
With this we can do x86_64 builds on aarch64
2023-05-10nixos/lxc-container: ensure /sbin/init is updated on nixos-rebuild bootAaron Andersen1-0/+5
2023-05-08Merge pull request #229313 from mped-oticon/mped_proxmox_assertRyan Lahfa1-0/+16
nixos/proxmox-image: Disable O_DIRECT to fix assert when writing to tmpfs
2023-05-08nixos/proxmox-image: Disable O_DIRECT to fix assertMark Ruvald Pedersen1-0/+16
Context summary: 'vma create' can't otherwise write to tmpfs such as /dev/shm. This is important when used from non-nixos machines which may have /build as tmpfs. VMA is Proxmox's virtual machine image format that wraps QEMU images, augmenting these with proxmox-specific configuration file. proxmox-image.nix uses the VMA tool to create vma image files. The VMA tool exists as a patchset ontop of QEMU. VMA writes its output with open() and O_DIRECT flag. O_DIRECT does not work on Linux tmpfs [1]. Thus: $ vma create ~/output.vma ... # works, assuming home isn't tmpfs. $ vma create /dev/shm/output.vma ... # fails since /dev/shm is tmpfs Failure results in assert(*errp == NULL). O_DIRECT is a cache performance hint. But it currently blocks our usage of nixos-generate -f proxmox from Non-NixOS hosts and Docker. The patch here simply removes O_DIRECT: vma-writer.c later performs memalign due to O_DIRECT, but this is safe to do with or without O_DIRECT. Ideally, this should be fixed in upstream Proxmox: Perhaps by falling back to open without O_DIRECT. Another attempt to fix this SIGABRT is [2], which writes the vma file directory to $out/ folder -- however that may still be tmpfs mounted which it is in our case. [1] https://lore.kernel.org/lkml/45A29EC2.8020502@tmr.com/t/ [2] https://github.com/NixOS/nixpkgs/pull/224282
2023-05-06Revert "nixos/qemu-vm: fix diskless VMs"Vladimír Čunát1-19/+8
2023-05-05Merge pull request #228047 from RaitoBezarius/diskless-vmRyan Lahfa1-8/+19
nixos/qemu-vm: fix diskless VMs
2023-05-04virtualisation/qemu-vm: escape bash variable in shell scriptPeter Kling1-1/+1
Fixes #229729
2023-05-02nixos/qemu-vm: make it possible to use UEFI without bootloadersRaito Bezarius1-10/+18
`useEFIBoot` is somewhat misleading, but we should make it possible to enable UEFI environment / firmware without buying into a bootloader. This makes it possible.
2023-04-25nixos/qemu-vm: fix diskless VMsRaito Bezarius1-8/+19
Previously, it was possible to run with a tmpfs / with `virtualisation.diskImage = null;`, this was likely broken by my changes in 4b4e4c3ef930c6106918d27a933de1b6965eff2c. It is reintroduced by disabling properly the bootloader for now, as it is complicated to make it work with.
2023-04-23nixos/qemu-vm: introduce `virtualisation.mountHostNixStore` optionRaito Bezarius1-2/+20
Now that `useBootLoader` produces a full system image, moving disk images can be slow because they have a full Nix store in them. It does not make sense to keep the 9p mountpoint to shadow the /nix/store of the VM. We disable it if we have `useBootLoader` and introduce an option for easy overrides.
2023-04-21Merge pull request #169116 from ElvishJerricco/systemd-stage-1-networkdFlorian Klink1-0/+2
Systemd stage 1 networkd
2023-04-21nixos/virtualisation/qemu-vm: remove persistBootDevice optionRaito Bezarius1-18/+1
This option has been introduced in 678eed323ffd90117472cd432ebe85dddaff07f1 without realizing there was this PR inflight, unfortunately, it collide with what this PR does and make it irrelevant. Therefore, I remove it here.
2023-04-21nixos/qemu-vm: refactor bootDisk generation using make-disk-imageRaito Bezarius1-150/+144
2023-04-21Merge pull request #226882 from wegank/parallels-guests-finalWeijia Wang1-1/+0
systemd.services.prlshprint: fix type
2023-04-20Merge pull request #222080 from Stunkymonkey/nixos-optionalStringArtturi2-6/+6
2023-04-19Merge pull request #225981 from jnsgruk/multipass-wait-onlineRyan Lahfa1-2/+2
multipass: don't start until online
2023-04-18systemd.services.prlshprint: fix typeWeijia Wang1-1/+0
2023-04-16Merge pull request #224171 from alan-strohm/masterSandro1-1/+2
nixos/proxmox-image: don't assume virtio0 is using local-lvm storage
2023-04-15Merge pull request #213036 from SuperSandro2000/cri-o/update_storagedriversadisbladis1-2/+5
nixos/cri-o: add aufs, devmapper, and zfs to storageDrivers
2023-04-15nixos/cri-o: add aufs, devmapper, and zfs to storageDriversCalum MacRae1-2/+5
Update the storageDrivers option to align with the supported drivers, as listed here: https://github.com/containers/storage/blob/master/docs/containers-storage.conf.5.md#storage-table
2023-04-14nixos/multipass: don't start until onlineJon Seager1-2/+2
2023-04-12Merge pull request #204534 from SuperSandro2000/boot-tmpSandro1-2/+2
2023-04-11systemd-initrd: Support secrets when boot loader doesn'tWill Fancher1-0/+2
initrd-secrets: Fix service config with systemd-stage-1
2023-04-07treewide: use more lib.optionalStringFelix Buehler2-6/+6
2023-03-31nixos/proxmox-image: don't assume virtio0 is using local-lvm storageAlan Strohm1-1/+2
2023-03-30maintainers: Update houstdav000 -> cyntheticfoxDavid Houston1-1/+1
2023-03-27nixos/podman: add example to enable network dnsSandro Jäckel1-0/+1
2023-03-27Merge pull request #212599 from SuperSandro2000/podman-cleanupSandro1-3/+2
2023-03-19nixos/tmp: move /tmp options under boot.tmpSandro Jäckel1-2/+2
2023-03-15Merge #219444: staging-next 2023-03-04Vladimír Čunát1-7/+9
2023-03-15Merge pull request #218482 from illustris/ec2-metadataSandro1-4/+3
nixos/ec2: don't populate nonexistent metadata files
2023-03-12Merge remote-tracking branch 'origin/master' into staging-nextMartin Weinelt1-3/+18
Conflicts: - pkgs/development/python-modules/aiopulse/default.nix - pkgs/development/python-modules/identify/default.nix - pkgs/development/python-modules/spur/default.nix
2023-03-12Merge pull request #209156 from pwaller/issue-114594Guillaume Girol1-3/+18
nixos/grub: Name initrd-secrets by system, not by initrd
2023-03-09Merge master into staging-nextgithub-actions[bot]1-2/+2
2023-03-08Merge pull request #217886 from lilyinstarlight/fix/qemu-vm-initrd-mkdir-0755Will Fancher1-2/+2
nixos/qemu-vm: fix minor typo
2023-03-04Merge remote-tracking branch 'origin/master' into staging-nextMartin Weinelt1-7/+7
2023-03-04nixos/virtualbox-image: remove the raw image trickK9001-7/+7
This is slower, but the raw image thing no longer works with VirtualBox 7.0.6.
2023-03-04Merge master into staging-nextFrederik Rietdijk1-28/+30
2023-03-04Merge pull request #206839 from lheckemann/stateless-vmsLinus Heckemann1-28/+30
nixos/qemu-vm: allow use without a disk image
2023-02-28Merge remote-tracking branch 'origin/staging-next' into stagingMartin Weinelt2-2/+2
2023-02-28Merge pull request #213604 from mikroskeem/feature/docker-local-log-drivermaxine1-1/+1
nixos/docker: add "local" as valid logDriver option
2023-02-28Merge staging-next into staginggithub-actions[bot]1-8/+0