/srv/irclogs.ubuntu.com/2022/09/16/#cloud-init.txt

meenawhy are we trying to read the system-serial-number on NoCloud? What info could that possibly contain?10:45
falcojrmeena: it's a hacky way to provide ds configuration. See https://bugs.launchpad.net/cloud-init/+bug/169177213:50
ubottuLaunchpad bug 1691772 in cloud-init (Ubuntu Zesty) "provide a way to seed NoCloud from network without image modification." [Medium, Fix Released]13:50
falcojrand https://bugs.launchpad.net/cloud-init/+bug/1753558 is a long time open bug proposing an alternative13:50
ubottuLaunchpad bug 1753558 in cloud-init "NoCloud data source is mis-using the 'system-serial-number' SMBIOS field, should use 'OEM Strings' instead" [Medium, Confirmed]13:50
meenahow do you even assign a serial number? i don't have one in my libvirt13:53
meenaoh, it's right there in the bug13:54
meenaI guess what i wanna know is how to do that virt-manager13:55
falcojrpersonally, I have no idea :P13:56
meenamy laptop is too far away13:59
meenabut either way, using a thing called serial *number* to provide a URL feels very icky13:59
minimalmeena: there's other way to provide it, i.e. add "ds=nocloud-net;s=<base url>" to /proc/cmdline14:02
meenaminimal: i don't think FreeBSD has that14:03
meenaor any BSD, for that matter14:03
minimalmeena: right, not sure about that. Or you could add "NoCloud:\nseedfrom: <base url>" to /etc/cloud/cloud.cfg14:04
falcojryeah, looks like they wanted to add it without having to modify an image14:05
minimalfalcojr: I realise that, that way is sort of a halfway house, the image is modified to add a base url but the meta-data/user-data/network-config is not inside the image14:06
meenaand no one could decide on a standard IP to go check?14:08
falcojryeah...14:09
minimalmeena: so even a "standard" hostname, e.g. if the url was "http://metadata/" then your local network could resolve "metadata" to whatever you want14:09
meenasmbios.system.vendor=SomeCloud, smbios.system.serial=1654, means fetch from 10.2.64.17/$serial14:11
meenaminimal: or that14:11
minimalmeena: what about loader.conf? the manpage says "THrought it you can specify the kernel to be booted, parameters to be passed to it", couldn't that be used in a similar way to Grub/Syslinux passing stuff to /proc/cmdline on Linux?14:15
meenaminimal: is that how people do that with grub, too? in a Cloud setting? 14:17
minimalmeena: I thought we were talking about NoCloud rather than in a Cloud setting14:18
minimaltypically I'd expect a Cloud to either have a metadata server or else provide a NoCloud/ConfigDrive ISO/fs14:18
meenaminimal: right14:34
meenaminimal: i just thought i had seen other cloud providers' code also read from /proc/cmdline14:43
minimalmeena: from a quick grep I only see Scaleway (checking for presence of "scaleway" in cmdline) and Vultr (checking for "vultr" presence for their Baremetal machines) using cmdline14:56
meenaso, how i pass parameters to the kernel? (without modifying the image?)14:59
minimalmeena: wellI assume you can't as the act of passing parameters would involve changing the bootloader config in some fashion15:03
minimalunless you consider something like Grub where you can interrupt it at the boot menu to modify what it passes on without any change being stored (i.e. a temporary change)15:04
holmanWith qemu there's an argument that gets passed to the kernel.15:15
minimalI guess I'm confused as to what meena is trying to achieve and in which environment (specific Cloud Provider, specific hypervisor, etc)15:19
meenaholman: I'll try that and see if it arrives15:32
meenaqemu has -append, i wonder if I can add that thru virt-manager without editing XML15:45
meenahttps://bugzilla.redhat.com/show_bug.cgi?id=688060 yes, but carefully15:50
ubottubugzilla.redhat.com bug 688060 in Red Hat Enterprise Linux 6 "virt-manager: unclear that kernel args require manually specifying a kernel path" [Medium, Closed: Errata]15:50
falcojrblackboxsw: Oracle PR up https://github.com/canonical/cloud-init/pull/173515:56
ubottuPull 1735 in canonical/cloud-init "Fix Oracle DS not setting subnet when using IMDS" [Open]15:56

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