From nobody Mon Mar 06 02:30:40 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 4PVMyF6xlTz3wH3N for ; Mon, 6 Mar 2023 02:31:01 +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) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PVMyF130kz3Dsh for ; Mon, 6 Mar 2023 02:31:01 +0000 (UTC) (envelope-from pat@patmaddox.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=patmaddox.com header.s=fm3 header.b=M7pClutx; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="a gVNFiu"; 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 8A3605C00F5; Sun, 5 Mar 2023 21:31:00 -0500 (EST) Received: from imap41 ([10.202.2.91]) by compute2.internal (MEProxy); Sun, 05 Mar 2023 21:31:00 -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= 1678069860; x=1678156260; bh=1acgjJJImjGQuq2pmqIHYttPwksntoZ9848 PM/Xbkzc=; b=M7pClutxpCuq7QLuCC8WWwN5iN2mOQgYic/SG/HP9w4gdp/Kxuu 9he723uOMqpRklNlAwaoy3TRQ5tJusex09L2DicK9PQbBwByQkJpDoPxVfA4x8Wq QmdUSluTL5O5vwTfNztYZ7jZf7pzzOJFq79xA5UXDH8+LSgq6tQTcFUGe+3H50Tf Ak/pa4lCCG+2YtA9EemrcGGQxEghlcVVMXL1h/94BATZLh2sDoz6XsF0iXsTtol+ YyTpbciA6FIwz+K9AH1BdRhm84qHos8bzTkBNu9OyaBT6TXERTZp+/rMSSJQs2vg B4PucCpjjqgRTW9E9jN6sD+/KGXek2bhY3w== 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=1678069860; x= 1678156260; bh=1acgjJJImjGQuq2pmqIHYttPwksntoZ9848PM/Xbkzc=; b=a gVNFiuet0WUVSAh/ra1clhXC0akcC7Ptd5alZEBavD2GE1bD8UEGX49R3na73zfe w7+MXOcT0AAT44t8rT+rfA8Hg9JpJKkWepbDOlCUIY6krsJcY+TeKe5rhjU9DGef ADNRHzeQKvYfYukggUNgCIqHzlR6umdG80jtXxaegeMuoyRZoYBwzbcYmHu7j7de o0Od/LcfqUwklkKYZwExIu3Q2RbzPI00p9Jqcidxph6IBxxQX0PAiqDKL3Gbojtv eLkC/QxxPJQQfrzpN6keG3BmXZzy/9Gv1KvZ+mAsrz4//DPBYSNDB+pozfbuWtJi 4wwuqsZ1wzfS2mUzrrE+w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddthedggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtgfesth hqredtreerjeenucfhrhhomhepfdfrrghtucforgguughogidfuceophgrthesphgrthhm rgguughogidrtghomheqnecuggftrfgrthhtvghrnhepleduleetteefueeivdffleelle etjeetvdekudefgfeitedtuddtteejueevhedunecuffhomhgrihhnpehfrhgvvggsshgu rdhorhhgpdhgihhthhhusgdrtghomhdprghmrgiiohhnrdgtohhmnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgrthesphgrthhmrgguugho gidrtghomh X-ME-Proxy: Feedback-ID: i8b6c40f9:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 33570234007B; Sun, 5 Mar 2023 21:31:00 -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: In-Reply-To: <20230306021533.ght5ouvxg6zrihfr@icepick.vmeta.jp> References: <20230306021533.ght5ouvxg6zrihfr@icepick.vmeta.jp> Date: Sun, 05 Mar 2023 18:30:40 -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]; 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: 4PVMyF130kz3Dsh X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N 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 s= rc/release. I=E2=80=99ve done two approaches. The first is to attach a second disk to an EC2 instance, install FreeBSD= onto it with customizations, and then image the disk (https://gist.gith= ub.com/patmaddox/9f20edcb50ff15fa9edd1d4e38d07e50). The way I=E2=80=99m doing it now is to use poudriere to make an img file= , and then upload that image to S3, snapshot it (aws ec2 import-snapshot= =E2=80=93disk-container Format=3Draw,Url=3Ds3://mybucket/myimage.img) a= nd finally make an AMI from that snapshot. The stuff in src/release is good for knowing what changes to make to con= fig 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-4= 9fd-9727-c474863f63da&ref=3Ddtl_prodview-ukzmy5dzc6nbq > > --=20 > meta