about summary refs log tree commit diff
path: root/nixos/modules/virtualisation/proxmox-image.nix
AgeCommit message (Collapse)AuthorFilesLines
2024-04-13nixos: remove all uses of lib.mdDocstuebinm1-15/+15
these changes were generated with nixq 0.0.2, by running nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix two mentions of the mdDoc function remain in nixos/, both of which are inside of comments. Since lib.mdDoc is already defined as just id, this commit is a no-op as far as Nix (and the built manual) is concerned.
2023-08-02revert(proxmox-image): pull request #246120 from ↵Jake Schurch1-9/+1
jakeschurch/add-proxmox-image-addl-disk-size-override NOTES: @jakeschurch did not realize that is was already updated on master, but not backported to 23.05 channel Signed-off-by: Jake Schurch <jakeschurch@gmail.com>
2023-07-30Merge pull request #246120 from ↵Pol Dellaiera1-1/+9
jakeschurch/add-proxmox-image-addl-disk-size-override proxmox-image: add additionalDiskSpace parameter as input to make-disk-image.nix
2023-07-30respond to pr feedbackJake Schurch1-12/+2
Signed-off-by: Jake Schurch <jakeschurch@gmail.com>
2023-07-30Update nixos/modules/virtualisation/proxmox-image.nixJake Schurch1-2/+2
Co-authored-by: Pol Dellaiera <pol.dellaiera@protonmail.com>
2023-07-29proxmox-image: add additionalDiskSpace parameter as input to make-disk-image.nixJake Schurch1-0/+18
2023-07-27Merge pull request #238735 from MayNiklas/proxmox-image-settingsEmily1-0/+29
nixos/proxmox-image: add additionalSpace, bootSize and diskSize options
2023-06-30nixos/proxmox-image: fix example renderingSandro Jäckel1-4/+6
2023-06-21nixos/proxmox-image: add additionalSpace, bootSize and diskSize optionsMayNiklas1-0/+29
2023-05-25nixos/proxmox-image: fix qemu build failureillustris1-5/+6
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-03-31nixos/proxmox-image: don't assume virtio0 is using local-lvm storageAlan Strohm1-1/+2
2022-12-17nixos: fix typosfigsoda1-1/+1
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-09-08nixos/proxmox-image: fix broken build, reduce build timeillustris1-1/+21
2022-08-22nixos/proxmox-image: add hydra-build-products definitionillustris1-0/+3
2022-08-22nixos/proxmox-image: qemu 6.2.0 -> 7.0.0 and fix failing buildillustris1-15/+10
2022-08-19nixos/*: automatically convert option docspennae1-13/+13
2022-07-13nixos/proxmox-image: use qemu 6.2 for building VMAillustris1-6/+16
2021-11-07nixos/proxmox-image: init (#144013)illustris1-0/+169
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>