[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Generating Amazon Machine Images from Guix?
From: |
Thompson, David |
Subject: |
Re: Generating Amazon Machine Images from Guix? |
Date: |
Thu, 25 Jan 2018 10:02:36 -0500 |
Hey Ricardo,
On Thu, Jan 25, 2018 at 8:01 AM, Ricardo Wurmus
<address@hidden> wrote:
> Hi Guix,
>
> I may need to provide Amazon Machine Images (AMIs) allowing the
> execution of a Guix package on the Amazon compute services.
>
> There only seems to be a very convoluted way to produce AMIs from raw
> virtual machine images[1], so I wonder if we could generate AMIs
> directly with Guix.
>
> Has anyone of you played with this successfully?
>
> [1]: https://www.wavether.com/2016/11/import-qcow2-images-into-aws
I'm very interested in this, too, but haven't followed through with
writing a script to do it. NixOps works on EC2 so I looked into how
they do it, only to find that the NixOS developers generate a public
base AMI whose id is stored in the NixOps code. Not the solution I was
expecting. So I found the nixpkgs script that generates the base
NixOS AMIs. Maybe reading it will help you:
https://github.com/NixOS/nixpkgs/blob/master/nixos/maintainers/scripts/ec2/create-amis.sh
- Dave