/srv/irclogs.ubuntu.com/2022/07/11/#cloud-init.txt

=== Guest8232 is now known as Daniel
=== cpaelzer_ is now known as cpaelzer
mariusz35Hello. Could anyone point me to a way of passing user-data to cloud-init waiting in a fedora server 36 isntance? It's running on VMware 7.0313:49
mariusz35I've tried to get this working for 2 days, but passing user data as a base64 encoded string in vm parameters doesn't wor13:49
mariusz35and I've found another way where vsphere can apply guest customization, but that doesn't support the fedora OS13:50
mariusz35Is there a good article or tutorial available that describes the methods one can use to pass user-data to cloud init running inside fedora on VMware?13:51
minimalmariusz35: I think the problem is that there are several ways VMware can integrate with cloud-init and it also depends on the version of cloud-init being used14:01
mariusz35I've got cloud-init 22.1 installed14:02
mariusz35would mounting an .iso with user-data and meta-data work? like in this article - https://docs.vmware.com/en/VMware-SD-WAN/4.1/vmware-sd-wan-operator-guide/GUID-46F3C13D-038E-4C92-B639-864B516AE663.html14:02
minimalthere are VMware and OVF datasources, which are you trying to use?14:02
minimalmounting an iso is basically NoCloud (or ConfigDrive2 also?) and would always work14:03
minimalhttps://cloudinit.readthedocs.io/en/latest/topics/datasources/ovf.html14:04
minimalhttps://cloudinit.readthedocs.io/en/latest/topics/datasources/vmware.html14:04
minimalthat article is referencing creating an ISO for NoCloud14:05
minimalwhich DataSource are you trying to use?14:05
mariusz35Yes, I've tried passing guestinfo.userdata and guestinfo.userdata.encoding, but that didn't work before. Thanks for those links though, I'll read over those again to double-check if i skipped a step14:06
minimalmariusz35: guestinfo only seems to work with vSphere14:10
minimalI get confused by all the different VMware products etc so its not clear to me which VMware products work with which cloud-init DataSource, e.g. does "bare" ESXi (no vSphere) work with VMware DS14:11
mariusz35I'm not sure, but I've used vSphere. I've probably skipped a step so my plan is to start fresh and go through the cloudinit doc for VMware datasource exactly step-by-step. Thanks for pointing me in the right direction. I've seen a lot of articles about cloud-init but never actually found the one describing the VMware datasource itself in the14:14
mariusz35cloud-init docs.14:14
mariusz35Probably due to mostly using google for searching14:14
minimalmariusz35: the VMware datasource was only added to cloud-init in August 2021 so there are probably few docs online about it14:16
minimalhttps://github.com/canonical/cloud-init/pull/95314:16
ubottuPull 953 in canonical/cloud-init "Datasource for VMware" [Merged]14:16
minimalyou might find this useful: https://github.com/vmware-archive/cloud-init-vmware-guestinfo#walkthrough14:17
mariuszHello. I've gone through the following page https://cloudinit.readthedocs.io/en/latest/topics/datasources/vmware.html with a fedora 36 server image with cloud init installed to get the VMware vSphere datasource working but I see no signs of my VM seeing the metadata and userdata provided19:18
mariuszare there some things that need to be configured additionally to ensure the VM sees the configuration applied to it with govc?19:19
mariuszI'm getting "failed to find a valid data access method" inside /var/log/cloud-init-output.log and google only gives me the link to github https://github.com/canonical/cloud-init/blob/main/cloudinit/sources/DataSourceVMware.py19:41
mariuszWhich is worrying since I've followed the docs' walkthrough.19:42
mariuszand the VM has the metadata and userdata added to it's config in vSphere19:42
mariuszupdate: previously I had the data added, but after restoring a snapshot it disappeared. Now cloud-init noticed the data but notified me of an invalid format of the yaml file. looks like the biggest problem was solved!19:50
mariuszSorry for bothering, no need for any help anymore i think19:50
quintasanMy user data (https://pastebin.com/gsbS0YxA) creates only one apt repository entry in /etc/apt/sources.list.d. I have no idea what I am doing wrong, can anyone help me figure this out?20:11
blackboxswholmanb: thanks for the updates on https://github.com/canonical/cloud-init/pull/1517 good to land22:02
ubottuPull 1517 in canonical/cloud-init "Improve Schema For cc_set_passwords (SC-1105)" [Open]22:02
holmanbblackboxsw: \o/ thanks :D22:03
blackboxswquintasan: looks like there's a WARNING/Traceback in /var/log/cloud-init.log on that cloud-config. You specified $release in your user-data instead of $RELEASE. Case sensitive difference there I think22:10
blackboxsw      source: deb [arch=amd64] https://nginx.org/packages/ubuntu/ $release nginx22:10
blackboxswshould actually be22:10
blackboxsw      source: deb [arch=amd64] https://nginx.org/packages/ubuntu/ $RELEASE nginx22:10
blackboxswegrep 'WARNING|Traceback' /var/log/cloud-init.log on your system and you'll find the breadcrumb pointing to keyerror on "release"22:11

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!