/srv/irclogs.ubuntu.com/2022/04/08/#cloud-init.txt

Rohit31HI , I wanted to create multiple dns entry for no cloud datasource using eni legacy network configuration07:12
Rohit31this is how I am passing in the yaml -       dnsservers:07:13
Rohit31        - 10.184.77.3107:13
Rohit31        - 10.184.77.3207:13
Rohit31        - 8.8.8.807:13
Rohit31the corresponding interface file which is gnerated is showin entry like - [Network]07:14
Rohit31DHCP=no07:14
Rohit31DNS=[10.184.77.31,10.184.77.32,8.8.8.8]07:14
Rohit31but the same is not seeing applied in resolvectl command, if I pass only one that works and if I manually edit 10-cloud-init-eth0.network file like07:15
Rohit31DNS=10.184.77.3107:15
Rohit31DNS=10.184.77.3207:15
Rohit31both gets applied07:15
Rohit31can someone please help me over here how can I apply more than one dns servers for no cloud datasource using eni legacy network configuration07:16
Rohit31have anyone tried something around this?07:50
minwihi folks, I'm wondering if anyone was able to configure cloud-init to send ipv6 duid ll client id advertisement in an ipv6 environment... I've seen https://github.com/canonical/cloud-init/search?q=DHCPV6C_OPTIONS&type=code the only DHCPV6_OPTION available is '-S' and in this case for duid ll it requires to be '-D LL'. Thanks!09:03
=== cpaelzer_ is now known as cpaelzer
henkhi, I’m running a vm with qemu and a configdrive with a user-data.yaml http://ix.io/3UDK. still ens3 is configured for dhcp. I think I’m not understanding how to do the network-config correctly. I read https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html and the first two sentences already confuse me because their phrasing doesn’t make any sense to me: »By default,19:19
henkcloud-init does always consider this source to be a full-fledged datasource. Instead, the typical behavior is to assume it is really only present to provide networking information.« first sentence says "it does something" so starting the next sentence with "instead" confuses me. Is there a typo, a missing "not" maybe? any ideas about what’s wrong with my user-data.yaml? everything but the network19:19
henkconfig is applied …19:19
minimalhenk: any reason why you're using configdrive? what's your DataSource?19:22
henkhttps://cloudinit.readthedocs.io/en/latest/topics/network-config-format-eni.html indicates that I am supposed to use something like "renderer: 'legacy'" somewhere but I don’t find where19:23
henkminimal: hm, well, I’m just getting started with cloud-init, so I’m not so sure. It seemed to be the best suited approach given my limited knowledge.19:24
henkminimal: I’m not aware that I have a datasource o_O let me read up on datasource, maybe I can give a better answer then.19:24
minimalare you just running qemu locally? In that scenario I use NoCloud as the datasource19:24
minimalwhich works in a similar way but with a couple/few YAML files on a suitably setup ISO or partition19:25
henkminimal: ah, yes, I am. and I use configdrive as my datasource. I guess …19:26
henkI have the yaml http://ix.io/3UDK and create an iso from it that I pass to qemu with »-drive file=/home/vm-redmine/cloud-config.img,index=1,if=ide,media=cdrom«19:27
minimalI tend to associate cloudconfig with OpenStack19:28
minimalhttps://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html19:28
henkcloudconfig? do you mean configdrive? sorry, I don’t follow what you mean with cloudconfig19:28
henkyeah, I’m reading about it, sounds like that might be easier (:19:29
minimaloops, yeah I meant configdrive19:29
minimalwhat's your distro?19:29
henkthanks, I’ll read about and try it and see where that gets me19:29
henkdebian19:29
minimalok, install the cloud-image-utils package which will give you the cloud-localds package19:30
minimalyou can then use cloud-localds to take meta-data, user-data, and either v1 or v2 network-config files and create an ISO file (which then you can use instead of the cloud-config.img file you currently have)19:31
henk»cloud-localds seed.img user-data.yaml« is what I use to create the current iso19:33
minimalso its not configdrive then its nocloud you're using?19:34
minimalso then put your network stuff in a separate network-config file (as mentioned in the NoCloud link I sent you)19:35
henkhm, IIRC I was told to use "a configdrive" and read some howto that said to do that and called it a configdrive … it made sense because I was adding config using a (cdrom) drive … but now that you say that and I read the docs about nocloud and configdrive, it really does seem more like nocloud, yes. sorry for misleading you19:37
henkyes, I’ll definitely have to read more about nocloud. I was hung up on configdrive docs and didn’t even consider any other datasources … thanks for pointing me the right way (:19:38
henkhum, cloud-localds does not allow me to add anything but user-data and meta-data? so to add a network-config file I have to build the iso myself? or put the network-config in meta-data. is that all correct or am I missing something?19:55
minimalhenk: I use something like this:20:11
minimalcloud-localds --verbose --network-config=network-config-v2.yaml dhcp-seed.iso user-data.yaml  meta-data.yaml20:11
henkminimal: huh, thanks, the manpage does not mention that but --help does o_O21:04

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