From nobody Mon Mar 06 02:31:29 2023 X-Original-To: freebsd-cloud@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PVMzB11Fsz3wGwS for ; Mon, 6 Mar 2023 02:31:50 +0000 (UTC) (envelope-from pat@patmaddox.com) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PVMz95Gwdz3F37 for ; Mon, 6 Mar 2023 02:31:49 +0000 (UTC) (envelope-from pat@patmaddox.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=patmaddox.com header.s=fm3 header.b=k+K48mZf; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="E mEX5hf"; spf=pass (mx1.freebsd.org: domain of pat@patmaddox.com designates 66.111.4.28 as permitted sender) smtp.mailfrom=pat@patmaddox.com; dmarc=none Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A23305C00C1; Sun, 5 Mar 2023 21:31:49 -0500 (EST) Received: from imap41 ([10.202.2.91]) by compute2.internal (MEProxy); Sun, 05 Mar 2023 21:31:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=patmaddox.com; h=cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1678069909; x=1678156309; bh=42FPRap9hSJ/tKtAnOLycS5Xj2+SagwAyV/ ofeBkbM0=; b=k+K48mZfmGdWMd7EC5HhAofv1Qxo4Tla8bmMBARdLEyCIcAwHdk zRe49IAlmRKlQl/fxZaY+BEgFfNMVlwjSZEJ8ITUF7AKvvAlInO+MN51FnC8nUsG +AhJ/F0niWNhGNwAiKMd8DB+BLmArBYVx+f2Auz5eJUfqyv9bokf+ZsGZCP2FTU5 znL2KOSk/fehRmhxVnzB2Zi/CzO6VPDtTwYpSxSsmMTvGeoz060/gq0iLyk2bS9r 6rnkVOo5BIYHITU3XN+yip+GPQmgxbzhPLMgBzOQ/fxE8NXTNvgMgoAGJtAgYH/T U8/JbD2lr3TOtqMBhe4IJuhIkNimFr9G6Jg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1678069909; x= 1678156309; bh=42FPRap9hSJ/tKtAnOLycS5Xj2+SagwAyV/ofeBkbM0=; b=E mEX5hf/vy9dni56XQ8+TvOW4EReB22rvhXVZWndT0XS1PDQS4J1t06azrlSorsPM GWm0cVdqtHyf4Y+4c2C+iFqKTfRG/cSa3vTeOL8qc1RmL9icx0f4nT88eIePgpTD 71j03FdsD1kCfANlZUokaIwalQ7G3ZUZ7cZrSS4Eb5/PLfi+igfb3CrpufKXaEB+ f7SeocNVcy+vVE6tntyvD7f+gJ2Ybx1GvgAjOjAQjXkrOyxh/zQd8d5v6pnePukL wJazWWBuIDcjsxm05/gPaCLa0KYPTNl+F2dZNBp2/t2qzZyB04jKxQHdMbbcNpg4 2z0tc4ZmSb8YE1M5q2izQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddthedggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtgfesth hqredtreerjeenucfhrhhomhepfdfrrghtucforgguughogidfuceophgrthesphgrthhm rgguughogidrtghomheqnecuggftrfgrthhtvghrnhepleduleetteefueeivdffleelle etjeetvdekudefgfeitedtuddtteejueevhedunecuffhomhgrihhnpehfrhgvvggsshgu rdhorhhgpdhgihhthhhusgdrtghomhdprghmrgiiohhnrdgtohhmnecuvehluhhsthgvrh fuihiivgepudenucfrrghrrghmpehmrghilhhfrhhomhepphgrthesphgrthhmrgguugho gidrtghomh X-ME-Proxy: Feedback-ID: i8b6c40f9:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 67C77234007B; Sun, 5 Mar 2023 21:31:49 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-183-gbf7d00f500-fm-20230220.001-gbf7d00f5 List-Id: FreeBSD on cloud platforms (EC2, GCE, Azure, etc.) List-Archive: https://lists.freebsd.org/archives/freebsd-cloud List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-cloud@freebsd.org Mime-Version: 1.0 Message-Id: <39256c80-e375-44cf-9840-66eb8a43db2e@app.fastmail.com> In-Reply-To: References: <20230306021533.ght5ouvxg6zrihfr@icepick.vmeta.jp> Date: Sun, 05 Mar 2023 18:31:29 -0800 From: "Pat Maddox" To: freebsd-cloud@freebsd.org Subject: Re: How are official EC2 images built? Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-3.19 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[patmaddox.com:s=fm3,messagingengine.com:s=fm1]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.28:c]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.28:from]; MIME_GOOD(-0.10)[text/plain]; RWL_MAILSPIKE_GOOD(-0.10)[66.111.4.28:from]; XM_UA_NO_VERSION(0.01)[]; FREEFALL_USER(0.00)[pat]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[patmaddox.com]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[patmaddox.com:+,messagingengine.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-cloud@freebsd.org] X-Rspamd-Queue-Id: 4PVMz95Gwdz3F37 X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N 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