summary refs log tree commit diff
path: root/nixos/maintainers/scripts/ec2/amazon-image.nix
Commit message (Collapse)AuthorAge
* amis: enable setting ami boot mode on registrationTimothy DeHerrera2021-11-10
| | | | | | | This is important since legacy bios mode is still the default for Intel and AMD based instances on AWS. That is, even if your image is setup to use UEFI on the OS level, the AMI will still use BIOS unless the boot mode is explicitly set during registration.
* Merge pull request #136909 from ncfavier/cleanup-defaults-examplesRobert Hensing2021-10-04
|\ | | | | nixos/doc: clean up defaults and examples
| * nixos/doc: clean up defaults and examplesNaïm Favier2021-10-04
| |
* | create-amis.sh: fix typoTimothy DeHerrera2021-10-03
|/
* amazon images: extend the image-info.json to have a disks objectGraham Christensen2021-08-25
| | | | | | | | Having a disks object with a dictionary of all the disks and their properties makes it easier to process multi-disk images. Note the rename of `label` to `system_label` is because `$label`i is something of a special token to jq.
* NixOS/amazonImageZfs: initGraham Christensen2021-08-25
| | | | | | | | | | Introduce an AWS EC2 AMI which supports aarch64 and x86_64 with a ZFS root. This uses `make-zfs-image` which implies two EBS volumes are needed inside EC2, one for boot, one for root. It should not matter which is identified `xvda` and which is `xvdb`, though I have always uploaded `boot` as `xvda`.
* amazonImage: make statically sized againLuke Granger-Brown2021-05-01
| | | | | | | | | For reasons we haven't been able to work out, the aarch64 EC2 image now regularly exceeds the output image size on hydra.nixos.org. As a workaround, set this back to being statically sized again. The other images do seem to build - it's just a case of the EC2 image now being too large (occasionally non-determinstically).
* treewide: use auto diskSize for make-disk-imagelassulus2021-04-24
| | | | (cherry picked from commit f3aa040bcbf39935e7e9ac7a7296eac9da7623ec)
* Revert "treewide: use auto diskSize for make-disk-image"Luke Granger-Brown2021-04-24
| | | | This reverts commit f3aa040bcbf39935e7e9ac7a7296eac9da7623ec.
* Revert "nixos/amazon-image: (temporarily) use fixed disk size again"Luke Granger-Brown2021-04-24
| | | | This reverts commit 6a8359a92ab501ae62739e9d3302f48e3e73c750.
* nixos/amazon-image: (temporarily) use fixed disk size againLuke Granger-Brown2021-04-24
| | | | | | | | | As a temporary workaround for #120473 while the image builder is patched to correctly look up disk sizes, partially revert f3aa040bcbf39935e7e9ac7a7296eac9da7623ec for EC2 disk images only. We retain the type allowing "auto" but set the default back to the previous value.
* treewide: use auto diskSize for make-disk-imagelassulus2021-04-22
|
* nixos.amazonAmi: use legacy+gpt disk images to support partitions >2TGraham Christensen2020-10-30
|
* nixos/ec2: remove dependency on NIX_PATHJörg Thalheim2020-08-16
| | | | This is required when migrating to flakes
* nixos-ami: update nvme_core.io_timeout for linux kernel >= 4.15Benjamin Hipple2020-03-22
| | | | | | NixOS 20.03 is built on kernel 5.4 and 19.09 is on 4.19, so we should update this option to the highest value possible, per linked upstream instructions from Amazon.
* amazon-image.nix: upload prebuilt imagesAndrew Childs2019-09-05
|
* amazon-image.nix: add hydra-build-products and improve metadataAndrew Childs2019-09-05
|
* amazon-image.nix: default to vpc formatted imagesAndrew Childs2019-09-05
| | | | These can be imported without converison.
* amazon-image.nix: add EFI support, enable by default for aarch64Andrew Childs2019-09-05
|
* amazon-image.nix: Resolve failure to include resize2fstalyz2019-03-15
| | | | | | Since 34234dcb511, for resize2fs to be automatically included in initrd, a filesystem needed for boot must be explicitly defined as an ext* type filesystem.
* Fix kernel crash caused by absent root deviceIhor Antonov2018-05-12
|
* Fix kernel panic on ec2 kvm instances caused by io timeout on nvme root volumeIhor Antonov2018-05-12
|
* nixos/make-disk-image.nix: Support EFI imagesTuomas Tynkkynen2018-01-22
| | | | | | | | | | | | | | | | | | | | - Add a new parameter `imageType` that can specify either "efi" or "legacy" (the default which should see no change in behaviour by this patch). - EFI images get a GPT partition table (instead of msdos) with a mandatory ESP partition (so we add an assert that `partitioned` is true). - Use the partx tool from util-linux to determine exact start + size of the root partition. This is required because GPT stores a secondary partition table at the end of the disk, so we can't just have mkfs.ext4 create the filesystem until the end of the disk. - (Unrelated to any EFI changes) Since we're depending on the `-E offset=X` option to mkfs which is only supported by e2fsprogs, disallow any attempts of creating partitioned disk images where the root filesystem is not ext4.
* amazon-image: make derivation name configurableDan Peebles2017-10-23
| | | | | I'm getting dozens of nixos-disk-image entries in my store and it's getting hard to track :)
* amazon-image: fix typo in last commitDan Peebles2017-08-11
|
* amazon-image: make image size configurableDan Peebles2017-08-11
|
* amazon-image: support VPC/VHD as an output format for the builderDan Peebles2017-08-10
|
* amazon-image: Add disk format option to image builder moduleDan Peebles2017-08-10
|
* make-disk-image: change to be less VM-centricDan Peebles2017-04-24
| | | | | | | | | | This changes much of the make-disk-image.nix logic (and thus most NixOS image building) to use LKL to set up the target directory structure rather than a Linux VM. The only work we still do in a VM is less IO-heavy stuff that while still time-consuming, is less of the overall load. The goal is to kill more of that stuff, but that will require deeper changes to NixOS activation scripts and switch-to-configuration.pl, and I don't want to bite off too much at once.
* make-disk-image.nix: support additional filesystem contentsDan Peebles2017-02-22
| | | | | | | | | This makes make-disk-image.nix slightly more consistent with other image builders we have. Unfortunately I duplicated some code in doing so, but this is temporary duplication on the path to consolidating everything. See https://github.com/NixOS/nixpkgs/issues/23052 for more details on that. I'm also exposing the option in the amazon-image.nix maintainer module.
* Fix the EC2 testEelco Dolstra2016-03-30
| | | | | | | We now generate a qcow2 image to prevent hitting Hydra's output size limit. Also updated /root/user-data -> /etc/ec2-metadata/user-data. http://hydra.nixos.org/build/33843133
* Make EBS volumes much smallerEelco Dolstra2015-09-28
| | | | Since they're resized on first boot anyway, they don't need to be big.
* Update AMI generatorEelco Dolstra2015-09-27
The EBS and S3 (instance-store) AMIs are now created from the same image. HVM instance-store AMIs are also generated. Disk image generation has been factored out into a function (nixos/lib/make-disk-image.nix) that can be used to build other kinds of images.