I created a template from an Ubuntu 22.04 cloud img with Cloud-Init via the Proxmox GUI. When I try to start the new VM, Cloud-Init runs but fails at the end with "Failed execute cloud user/final scripts" resulting in me being unable to log into the VM with either a username/password or ssh.
I am using the console to view the output, but it doesn't provide much information why I'm experiencing this issue. Is there a better way for me to view the output of the error such as logs while I'm unable to log into the VM? Below is some information about my template, I realize I've overly redacted information but I don't think it's relevant to the issue anyway.
I am using the console to view the output, but it doesn't provide much information why I'm experiencing this issue. Is there a better way for me to view the output of the error such as logs while I'm unable to log into the VM? Below is some information about my template, I realize I've overly redacted information but I don't think it's relevant to the issue anyway.
Code:
$ qm cloudinit dump 100 user
#cloud-config
hostname: ubuntu-2204-template
manage_etc_hosts: true
user: admin
password: [redacted]
ssh_authorized_keys:
- ssh-ed25519 [redacted]
chpasswd:
expire: False
users:
- default
package_upgrade: true
Code:
$ qm config 100
qm config 100
agent: 1
boot: order=ide2;scsi0;net0;ide0
cipassword: **********
ciuser: admin
cores: 2
ide0: local-lvm:vm-100-cloudinit,media=cdrom
ide2: none,media=cdrom
ipconfig0: ip=dhcp,ip6=dhcp
memory: 4096
meta: creation-qemu=7.1.0,ctime=1672844707
name: ubuntu-2204-template
net0: virtio=[redacted],bridge=vmbr0,firewall=1
numa: 0
onboot: 1
ostype: l26
scsi0: local-lvm:vm-100-disk-0,discard=on,iothread=1,size=32G,ssd=1
scsihw: virtio-scsi-single
smbios1: uuid=[redacted]
sockets: 1
sshkeys: [redacted]
template: 1
vmgenid: [redacted]