Date: Mon, 6 Mar 2023 23:08:51 +0900 From: Koichiro Iwao <meta@FreeBSD.org> To: Colin Percival <cperciva@tarsnap.com> Cc: freebsd-cloud@FreeBSD.org Subject: Re: How are official EC2 images built? Message-ID: <20230306140851.hduau66beidb7rne@icepick.vmeta.jp> In-Reply-To: <01000186b5b4a976-9499f902-9004-4929-a9b3-6d6db764dc76-000000@email.amazonses.com> References: <20230306021533.ght5ouvxg6zrihfr@icepick.vmeta.jp> <01000186b5b4a976-9499f902-9004-4929-a9b3-6d6db764dc76-000000@email.amazonses.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 06, 2023 at 06:56:01AM +0000, Colin Percival wrote: > On 3/5/23 18:15, Koichiro Iwao wrote: > > Does anyone how offical EC2 images [1] are built? > > They are built using the `make ec2ami` target in the src/release directory. > That target builds a disk image and then converts it into an AMI using the > bsdec2-image-upload utility (available in the ports tree). > > > I mean if the build script is public. I would like to create private > > custom images with some customization based on official image. > > I wrote about some of the options a few years ago: > https://www.daemonology.net/blog/2018-12-26-the-many-ways-to-launch-FreeBSD-in-EC2.html > > I'm guessing the AMI Builder option will best suit your need for "some > customization" but if you need to make changes to the base system then > you'll > want to use `make ec2ami`. Thanks, what I actually wanted to create is a qcow2 image with cloud-init/firstboot enabled to be run by vm-bhyve, removing EC2-specific stuffs from official EC2 images. I'll try to make EC2 images next. Anyway, it helps a lot. Thanks! -- meta <meta@FreeBSD.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20230306140851.hduau66beidb7rne>