From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: Generating Amazon Machine Images from Guix? Date: Thu, 25 Jan 2018 10:02:36 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eej35-0008Et-Iy for help-guix@gnu.org; Thu, 25 Jan 2018 10:02:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eej30-0000J8-1k for help-guix@gnu.org; Thu, 25 Jan 2018 10:02:43 -0500 Received: from mail-vk0-x22f.google.com ([2607:f8b0:400c:c05::22f]:44012) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eej2z-0000IL-RK for help-guix@gnu.org; Thu, 25 Jan 2018 10:02:37 -0500 Received: by mail-vk0-x22f.google.com with SMTP id x203so4998807vkx.10 for ; Thu, 25 Jan 2018 07:02:37 -0800 (PST) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Ricardo Wurmus Cc: help-guix Hey Ricardo, On Thu, Jan 25, 2018 at 8:01 AM, Ricardo Wurmus 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