Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Mar 2023 18:31:29 -0800
From:      "Pat Maddox" <pat@patmaddox.com>
To:        freebsd-cloud@freebsd.org
Subject:   Re: How are official EC2 images built?
Message-ID:  <39256c80-e375-44cf-9840-66eb8a43db2e@app.fastmail.com>
In-Reply-To: <dff102d7-b46c-41db-ac82-676ffba0c485@app.fastmail.com>
References:  <20230306021533.ght5ouvxg6zrihfr@icepick.vmeta.jp> <dff102d7-b46c-41db-ac82-676ffba0c485@app.fastmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
One thing I left out - with the second approach I shared, you have to ma=
ke the AMI with UEFI mode. -Pat

On Sun, Mar 5, 2023, at 6:30 PM, Pat Maddox wrote:
> https://cgit.freebsd.org/src/tree/release/Makefile.ec2
>
> https://cgit.freebsd.org/src/tree/release/tools/ec2.conf
>
> I have opted to build images a bit differently, not using the stuff in=20
> src/release. I=E2=80=99ve done two approaches.
>
> The first is to attach a second disk to an EC2 instance, install=20
> FreeBSD onto it with customizations, and then image the disk=20
> (https://gist.github.com/patmaddox/9f20edcb50ff15fa9edd1d4e38d07e50).
>
> The way I=E2=80=99m doing it now is to use poudriere to make an img fi=
le, and=20
> then upload that image to S3, snapshot it (aws ec2 import-snapshot=20
> =E2=80=93disk-container Format=3Draw,Url=3Ds3://mybucket/myimage.img) =
and finally=20
> make an AMI from that snapshot.
>
> The stuff in src/release is good for knowing what changes to make to=20
> config files, or packages to install.
>
> Pat
>
> On Sun, Mar 5, 2023, at 6:15 PM, Koichiro Iwao wrote:
>> Hi,=20
>>
>> Does anyone how offical EC2 images [1] are built?
>> I mean if the build script is public.  I would like to create private
>> custom images with some customization based on official image.
>>
>> [1]=20
>> https://aws.amazon.com/marketplace/seller-profile?id=3D92bb514d-02bc-=
49fd-9727-c474863f63da&ref=3Ddtl_prodview-ukzmy5dzc6nbq
>>
>> --=20
>> meta <meta@FreeBSD.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39256c80-e375-44cf-9840-66eb8a43db2e>