Hi Jeremy,
the last ubuntu cloud image i was using
https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img
was working with Cloudstack User-Data out of the box, without any modifications.
Make sure to use
Advanced mode / Show advanced settings / Userdata /( Manual Userdata entry / in
case of cloudstack 4.18)
and paste your cloud-init config, for example ("#cloud-config" line is
required):
#cloud-config
users:
- name: stephan
ssh-authorized-keys:
- ssh-ed25519 <your ssh key>
lock_passwd: false
passwd: <your linux password hash>
sudo: ALL=(ALL) NOPASSWD:ALL
shell: /bin/bash
ssh_pwauth: true
Are you really sure networking was not brought up?
Make sure to use an Isolated network with a Virtual Router or any other network
with "Config Drive" feature enabled.
Networking is working without userdata - if this doesnt work you can give Nux
idea a try to be 100% sure.
Cheers,
Stephan
> Jeremy Hansen <[email protected]> hat am 27.03.2023 18:13 CEST
> geschrieben:
>
>
> I’m trying to setup a template for Ubuntu 22.04LTS and while the image boots
> successfully, I see no way to log in. It doesn’t seem to bring up networking
> by default so I can’t ssh in with my pub key.
>
> Is this where “User Data” comes in to play? If so, anyone have an example
> that sets the password or just brings up networking?
>
> Thanks!
>
>
>