Re: How are official EC2 images built?
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 06 Mar 2023 14:08:51 UTC
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>