|
=== janitha74 is now known as janitha7 |
|
=== janitha70 is now known as janitha7 |
|
=== janitha70 is now known as janitha7 |
|
=== janitha72 is now known as janitha7 |
|
=== not_phunyguy is now known as phunyguy |
|
[20:15] <SuperLag> I'm trying to use one of the Ubuntu cloud images to spin up a KVM VM, and it seems like it's not taking the cloud-init config I'm trying to pass. https://termbin.com/bh1a <-- this one works. https://termbin.com/1n76 <-- this one, which is what I'm *really* trying to use, does not. What am I getting wrong? |
|
[20:18] <waldi> SuperLag: those configs are not at all related. maybe you should start with a working one and add one part at a time? |
|
[20:25] <SuperLag> I've tried that, as well. It's not working. The one that I provided that was working, was an example provided. But when I try to start over and create a new one from scratch, it doesn't work either. |
|
[20:27] <waldi> don't create a new one. modify the working one until it stops working |
|
[20:28] <waldi> and i would check your example, as the second one is missing the "#cloud-config" marker |
|
[20:30] <SuperLag> is that marker required? |
|
[20:32] <SuperLag> I added one more block (the block to add my normal user and password, and set hostname) and now none of it works |
|
[21:03] <minimal> SuperLag: as I mentioned in the ubuntu-cloud channel the 2nd one is not valid cloud-init user-data |
|
[21:03] <minimal> SuperLag: have you checked the cloud-init documentation, there are lots of examples there |
|
[21:10] <blackboxsw> minimal: right. Superlag: that autoinstall YAML you provideed is autoinstall configuration not strict #cloud-config user-data)[1] which is applicable for server-live installers and desktop canary live installers[2]. If you are providing "autoinstall:" to cloud-init as user-data, it needs to be prefaced with the `#cloud-config` header and will only be honored if run within a live server[3] or live-desktop[4] installer |
|
[21:10] <blackboxsw> [1]: https://cloudinit.readthedocs.io/en/latest/topics/modules.html#ubuntu-autoinstall |
|
[21:10] <blackboxsw> [2]: https://ubuntu.com/server/docs/install/autoinstall-quickstart |
|
[21:10] <blackboxsw> [3]: https://cdimage.ubuntu.com/ubuntu-server/jammy/daily-live/current/ |
|
[21:10] <blackboxsw> [4]: http://cdimage.ubuntu.com/daily-canary/current/ |
|
[21:11] * blackboxsw copies that text and links for "next time" |
|
[21:11] <blackboxsw> as this is a fairly frequent type of question |
|
[21:11] <SuperLag> thank you |
|
[21:11] <blackboxsw> no worries thanks for the questions |
|
[21:12] <blackboxsw> any rough edges around docs, please let us know so we can better steer folks down the right path. |
|
[21:15] <blackboxsw> Also note, cloud-init does log warnings in /var/log/cloud-init.lg about ignoring user-data if it doesn't come with the right #cloud-config header (or some other known user-data header). So that'd give you a hint that cloud-init didn't understand your autoinstall config |
|
[21:21] <SuperLag> UGH |
|
[21:22] <SuperLag> I took a working copy of something, edited it to put my info in... and it doesn't work. |
|
=== janitha76 is now known as janitha7 |
|
[21:33] <SuperLag> boom |
|
[21:33] <SuperLag> finally |
|
|