[01:48] blackboxsw: I don't feel strongly about a bot, thanks for the reviews and feedback today! [15:16] I'm trying to write a simple cloud-init config that just creates 1 mbr ext4 partition on sda but I've had no luck yet. My target is a VirtualBox VM. [15:16] I have my reasons for it being VB [15:16] VMDK is the best disk format to use with LTSP [15:17] and qemu doesn't seem to support vmdk [15:18] I'm trying to automate the installation of Ubuntu server 22.04 via cloud-init. I can share my latest non working attempt if anyone wants to see it [15:19] I've had the default example work but I don't want LVM, don't want GPT and I only want 1 ext4 partition [15:19] Is there a working example of this anywhere? [15:21] Maybe I don't do it with cloud-init at all but curtin? [15:21] danboid: share away with paste.opendev.org or paste.ubuntu.com or similar. walk us through what you are tring to do [15:22] *trying [15:23] I'm basically following this guide: [15:23] https://ubuntu.com/server/docs/install/autoinstall-quickstart [15:24] but I need different partitioning to what you get if you run that example as is [15:24] Here's my current effort, not working [15:24] https://pastebin.ubuntu.com/p/8V55ggRXPB/ [15:25] I don't want LVM and I just want a mbr disk label [15:25] for 1 ext4 partition filling sda [15:26] I've checked that VB calls it sda and not vda in my test VM [15:27] I'm using the method that uses cloud-localds to create a seed iso [15:28] That seems to be my only option with VB [15:29] cloud-init schema -c user-data [15:29] says the syntax is supposedly OK but its not doing what I want it to [15:29] danboid: thanks. ok, so that would be related to the ubuntu live-installer (desktop and/or server) which happens to drive both curtin for disk/partition setup and cloud-init for users/packages/credentials etc. I'm processing your suggestion, but I also want to make sure we steer the conversation to the right channel so that curtin/live-installer folks can also participate [15:29] blackboxsw, OK, thanks! [15:30] @danboid `sudo cloud-init query userdata` to see what cloud-init "got" from the installer [15:33] blackboxsw, The output of that command, when tun on my test vm, doesn't list any details relating to my partition creation attempt [15:33] I have tried to adapt the code from here, unsuccessfully of course: [15:34] https://cloudinit.readthedocs.io/en/latest/topics/examples.html [15:34] danboid: ok at least that confirms that the storage portion of that config is being driven by curtin (not cloud-init) in this environment. I would have expected you to see at least "users:" key that represents your ubuntu user and password [15:35] The Disk Setup section of that page [15:35] blackboxsw, Yes I see Users [15:35] blackboxsw, I also see [15:36] blackboxsw, growpart mode is off and resize_rootfs is false [15:36] They're obviously disk related [15:37] but nothing appear about ext4 or mbr [15:38] danboid: the complexity here is that if you want something to be driven by cloud-init specifically (and you are using this installer's autoinstall, you want any passthrough config for cloud-init to be provided through "autoinstall:user-data:{cloud-config-stuff here}". So if you wanted to manipulate storage using cloud-config directives, you'd put supplemental config content under that autoinstall:user-data YAML path. [15:38] The locale is getting set too [15:40] danboid: that said, I think you want to drive storage config best using the autoinstall top-level storage directives that are passed to curtin. But,I'm trying to parse your use-case to understand how that'd align with existing https://ubuntu.com/server/docs/install/autoinstall-reference [15:41] I'm writing a script that automates the process of creating a VB VM and then auto installing a bare bones Ubuntu server. I've got it all working now except the automation of the Ubuntu partitioning [15:42] The default not being to my liking [15:42] So whats the easiest way to get the partitions how I want them? [15:43] It seems you know most of the solution now but I didn't quite undestand your response. Put the config where? [15:44] this is a good use-case. I think we need to figure the best way to direct your config there. Sorry I'm context switching a bit in a meeting but I'd like to get back to you here on prefered suggestions. It may be a bit before I can dive into the solution/context here. [15:44] blackboxsw, OK thanks [16:13] https://bugs.launchpad.net/subiquity/+bug/1983041 [16:14] Launchpad bug 1983041 in subiquity "Add partitioning example to autoinstall-quickstart" [Undecided, New] [20:14] holmanb: nice catch on https://github.com/canonical/cloud-init/pull/1619 hotplug select_activators fix needed. I'll address that now [20:14] Pull 1619 in canonical/cloud-init "network: add system_info network activator cloud.cfg overrides" [Open] [20:16] thanks :) === th3machine is now known as t0day === EugenMayer9 is now known as EugenMayer