From nobody Fri Jul 26 13:59:25 2024 X-Original-To: freebsd-questions@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 4WVqBW4Sx7z5S9H4 for ; Fri, 26 Jul 2024 13:59:47 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from fhigh2-smtp.messagingengine.com (fhigh2-smtp.messagingengine.com [103.168.172.153]) (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 4WVqBW1nJ9z4pHq for ; Fri, 26 Jul 2024 13:59:47 +0000 (UTC) (envelope-from dch@skunkwerks.at) Authentication-Results: mx1.freebsd.org; none Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfhigh.nyi.internal (Postfix) with ESMTP id D795C114011F; Fri, 26 Jul 2024 09:59:45 -0400 (EDT) Received: from wimap21 ([10.202.2.81]) by compute4.internal (MEProxy); Fri, 26 Jul 2024 09:59:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skunkwerks.at; h=cc: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:subject:subject:to:to; s=fm1; t=1722002385; x=1722088785; bh=0KeqsI7vc9qhmiPlGyPgxlCXZm+k1QFc oNQnaOjQRtc=; b=UyUpyfcS0Q+4WDcK/sX4sRvCga7j6ptc2iv++0tRj1opesfm yS0w3Ps0X6MSzVtIPH4wq4JsaRof4lfAgtRE0MORAOfVKeamRvuTvJsEXxywGMNv L1rBf/Dto/eszIh2Zal1WzFl3v1pcf2h2WFExNdX0dSc8Zos44ZqIV8ZhUAWZ5zL +2/RmWvosML/XiHUZt/2AJqr0UAaEK/Z3isogWSXDaa4BVvrpSiEluhcoGU7/ZZS oo7ZwlTs/gZWCVPi8Q8gpWOj8egUycpRW47ZsIJx7nT3gDlBgKVe4zpr6fGcpdBa vfRSEgV94t+2rYnj0LL1t0lWLUhl+QHocjOB4Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1722002385; x= 1722088785; bh=0KeqsI7vc9qhmiPlGyPgxlCXZm+k1QFcoNQnaOjQRtc=; b=N 83OlWKi+bt0IjZiqoPoEBK1pXnXqeEjJfNMvY4rSlszEGq6Ok/3hpXngD+e+T/D+ 16BueF8At0hnKxNpqSL5rBaZRGB5MVu7bVzyvdSk7c7YnDmVH+/P9oSCwM74Evw2 rZGf53dNhzDQFXXjlZ9295vQOw8BOOm2xd8ykZAs+m3dkJJl4lyAPMvqQJXUVXEI FDVtBo7xMUpZE23cw9mhERNbNtwUUTE/lfVvlxMAZH3+u/rgHlP94xNtcV9Cc/5S 4qtIIe5Nu5xiy4SHVQHBeznofJRDWNoUgaMvETdX+6uck5Qm5+q4KXwvXH9qObZG XIAqR7yRwtbMpeLiI85Qw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrieehgdejfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedfffgr vhgvucevohhtthhlvghhuhgsvghrfdcuoegutghhsehskhhunhhkfigvrhhkshdrrghtqe enucggtffrrghtthgvrhhnpeegudefveetudfhgeeutefhtdekteettdejgefhtdffiefh ledvffefgfetjeeuudenucffohhmrghinhepfhhrvggvsghsugdrohhrghdpghhithhhuh gsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mhepuggthhesshhkuhhnkhifvghrkhhsrdgrthdpnhgspghrtghpthhtoheptd X-ME-Proxy: Feedback-ID: ic0e84090:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8E0E237A0084; Fri, 26 Jul 2024 09:59:45 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-582-g5a02f8850-fm-20240719.002-g5a02f885 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Message-Id: <337fe5a5-2af2-41a2-859d-c4a3df64eccf@app.fastmail.com> In-Reply-To: <3a161d6a-8941-4eb9-a532-1f82d3db99f9@sentex.net> References: <841999d9-7e4a-41c1-93b9-c927f28ed41a@app.fastmail.com> <3a161d6a-8941-4eb9-a532-1f82d3db99f9@sentex.net> Date: Fri, 26 Jul 2024 13:59:25 +0000 From: "Dave Cottlehuber" To: "Mike Tancsa" Cc: freebsd-questions Subject: Re: cloud init documentation ? Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:209242, ipnet:103.168.172.0/24, country:US] X-Rspamd-Queue-Id: 4WVqBW1nJ9z4pHq On Fri, 26 Jul 2024, at 13:38, mike tancsa wrote: > Hi Dave, > > =C2=A0=C2=A0=C2=A0 Thanks for the detailed response and information!=C2= =A0 I think where I=20 > run afoul is what has and what does not have CI support. What I have=20 > > https://download.freebsd.org/releases/VM-IMAGES/14.1-RELEASE/amd64/Lat= est/FreeBSD-14.1-RELEASE-amd64-BASIC-CLOUDINIT-zfs.raw.xz Aaah https://cgit.freebsd.org/src/tree/release/tools/basic-cloudinit.con= f yes so these enable nuageinit, so you only have the subset of what's in clou= dinit. > Then create=C2=A0 the seed.iso > genisoimage -output ./seed.iso -volid cidata -joliet -rock=20 > .cloud-init/meta-data .cloud-init/user-data if that matches what the qemu doc has, its probably fine. > and then run > ./vmrun.sh -t tap0 -d FreeBSD-14.1-RELEASE-amd64-BASIC-CLOUDINIT-zfs.r= aw=20 > -i -E -I ./seed.iso -H vm0/host vm0 > > The lock_passwd does not seem to work, but the passwd: value for alice=20 > works well enough.=C2=A0 But I guess thats where my confusion is. I am= making=20 > use of nuageinit and not cloudinit here it seems. I think so too. > I guess the step I am missing is download the FreeBSD VM image file. D= o=20 > *something* to it to make it fully cloudinit capable, and then create = my=20 > full seed.iso file.=C2=A0 What is that something ?=C2=A0 Is that the=20 > net/clould-init package you mention in=20 > https://people.freebsd.org/~dch/posts/2024-07-25-cloudinit/ ? yep, the image only needs cloud-init package and the service enabled. However, this adds ~ 350MiB of pythonic garbage into your image. Worth noting are the EC2 configs cperciva built: - cloudinit flavoured https://cgit.freebsd.org/src/tree/release/tools/ec= 2-cloud-init.conf - firstboot flavoured https://cgit.freebsd.org/src/tree/release/tools/ec= 2-base.conf the latter uses ec2-scripts which work quite well on non-ec2 with firstb= oot-freebsd-update and firstboot-pkgs. There is support for executing an= archive or similar, I am hazy on the details but https://github.com/cpe= rciva/ec2-scripts has the sources :-) This might be sufficient. A+ Dave