[00:03] <MICROburst> minimal: Does this (https://pastebin.com/6TnsSirb) make things clearer? BTW is does not matter whether "en_DK" or "en_DK.UTF-8" is used. "locale-gen en_DK.UTF-8"  completes w/o error.
[00:05] <minimal> that shows you specifying an invalid locale value: "en_DK", what happens with "en_DK.UTF-8"?
[00:06] <minimal> from the "update-locale" manpage *IT* updates /etc/default/locale, so obviously if the call to update-locale (by cloud-init) fails then that's why the file is unchanged
[00:10] <MICROburst> "en_DK", what happens with "en_DK.UTF-8"? -- To quote myself '''BTW is does not matter whether "en_DK" or "en_DK.UTF-8" is used.'''
[00:11] <minimal> MICROburst: you have not shown (debug) logs with en_DK.UTF-8 specified though
[00:12] <MICROburst> the excerpt is from /var/log/cloud-init-output.log. 
[00:13] <minimal> ok, I'd asked for cloud-init.log with debug enabled...
[00:14] <MICROburst> So I need to re-install the VM? - where do I need to enable 'debug' exactly?
[00:15] <minimal> so if "update-locale --locale-file=/etc/default/locale LANG=en_DK.UTF-8" does not work when run by hand then obviously it also will not work when run by cloud-init
[00:18] <MICROburst> "update-locale --locale-file=/etc/default/locale LANG=en_DK.UTF-8" works as expected
[00:21] <minimal> you'd need to edit the /etc/cloud/cloud.cfg.d/05_logging.cfg to change things from INFO to DEBUG, then clear up the cloud-init files so it thinks it has never been run and then reboot the VM
[00:22] <MICROburst> minimal: bedtime here: 01:21 (AM) -- Hope to catch you later.
[00:22] <minimal> MICROburst: ok, so if that ran manually it should also work from cloud-init ASSUMING the required packages (locales, not sure about locales-all) are already installed when the VM first boots
[00:22] <minimal> MICROburst: who created this VM image?
[07:51] <meena> minimal: that would've been my first question. Who's making these Debian images where you can't even set a locale
[15:06] <minimal> meena: well one of my first questions was which distro were they using as that wasn't originally indicated;-)
[15:33] <meena> anyone wanna take a look at https://github.com/canonical/cloud-init/pull/1957 and see if this is going in the right direction?
[15:33] -ubottu:#cloud-init- Pull 1957 in canonical/cloud-init "add function is_virtual to distro/FreeBSD" [Open]
[15:38] <meena> I think vurtual() could be better named virtualization() or virtualisation()? whatever the canonical form
[15:39] <meena> which I guess is a pretty good argument for calling it virtual() lol
[15:40] <minimal> meena: Canonical form? MAAS or LXD perhaps? ;-)
[15:42] <minimal> s/MAAS/Multipass/
[15:43] <meena> :D