Date: Fri, 26 Jul 2024 13:59:25 +0000 From: "Dave Cottlehuber" <dch@skunkwerks.at> To: "Mike Tancsa" <mike@sentex.net> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: cloud init documentation ? Message-ID: <337fe5a5-2af2-41a2-859d-c4a3df64eccf@app.fastmail.com> In-Reply-To: <3a161d6a-8941-4eb9-a532-1f82d3db99f9@sentex.net> References: <fb2f4ea3-7c05-43f6-9f9c-af93c4aa54a9@sentex.net> <841999d9-7e4a-41c1-93b9-c927f28ed41a@app.fastmail.com> <3a161d6a-8941-4eb9-a532-1f82d3db99f9@sentex.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?337fe5a5-2af2-41a2-859d-c4a3df64eccf>