holmanb | blackboxsw: I don't feel strongly about a bot, thanks for the reviews and feedback today! | 01:48 |
---|---|---|
danboid | 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 |
danboid | I have my reasons for it being VB | 15:16 |
danboid | VMDK is the best disk format to use with LTSP | 15:16 |
danboid | and qemu doesn't seem to support vmdk | 15:17 |
danboid | 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:18 |
danboid | 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 |
danboid | Is there a working example of this anywhere? | 15:19 |
danboid | Maybe I don't do it with cloud-init at all but curtin? | 15:21 |
blackboxsw | danboid: share away with paste.opendev.org or paste.ubuntu.com or similar. walk us through what you are tring to do | 15:21 |
blackboxsw | *trying | 15:22 |
danboid | I'm basically following this guide: | 15:23 |
danboid | https://ubuntu.com/server/docs/install/autoinstall-quickstart | 15:23 |
danboid | but I need different partitioning to what you get if you run that example as is | 15:24 |
danboid | Here's my current effort, not working | 15:24 |
danboid | https://pastebin.ubuntu.com/p/8V55ggRXPB/ | 15:24 |
danboid | I don't want LVM and I just want a mbr disk label | 15:25 |
danboid | for 1 ext4 partition filling sda | 15:25 |
danboid | I've checked that VB calls it sda and not vda in my test VM | 15:26 |
danboid | I'm using the method that uses cloud-localds to create a seed iso | 15:27 |
danboid | That seems to be my only option with VB | 15:28 |
danboid | cloud-init schema -c user-data | 15:29 |
danboid | says the syntax is supposedly OK but its not doing what I want it to | 15:29 |
blackboxsw | 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 |
danboid | blackboxsw, OK, thanks! | 15:29 |
blackboxsw | @danboid `sudo cloud-init query userdata` to see what cloud-init "got" from the installer | 15:30 |
danboid | 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 |
danboid | I have tried to adapt the code from here, unsuccessfully of course: | 15:33 |
danboid | https://cloudinit.readthedocs.io/en/latest/topics/examples.html | 15:34 |
blackboxsw | 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:34 |
danboid | The Disk Setup section of that page | 15:35 |
danboid | blackboxsw, Yes I see Users | 15:35 |
danboid | blackboxsw, I also see | 15:35 |
danboid | blackboxsw, growpart mode is off and resize_rootfs is false | 15:36 |
danboid | They're obviously disk related | 15:36 |
danboid | but nothing appear about ext4 or mbr | 15:37 |
blackboxsw | 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 |
danboid | The locale is getting set too | 15:38 |
blackboxsw | 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:40 |
danboid | 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:41 |
danboid | The default not being to my liking | 15:42 |
danboid | So whats the easiest way to get the partitions how I want them? | 15:42 |
danboid | It seems you know most of the solution now but I didn't quite undestand your response. Put the config where? | 15:43 |
blackboxsw | 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 |
danboid | blackboxsw, OK thanks | 15:44 |
danboid | https://bugs.launchpad.net/subiquity/+bug/1983041 | 16:13 |
ubottu | Launchpad bug 1983041 in subiquity "Add partitioning example to autoinstall-quickstart" [Undecided, New] | 16:14 |
blackboxsw | holmanb: nice catch on https://github.com/canonical/cloud-init/pull/1619 hotplug select_activators fix needed. I'll address that now | 20:14 |
ubottu | Pull 1619 in canonical/cloud-init "network: add system_info network activator cloud.cfg overrides" [Open] | 20:14 |
holmanb | thanks :) | 20:16 |
=== th3machine is now known as t0day | ||
=== EugenMayer9 is now known as EugenMayer |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!