cloud-init unable to run on Debian 11 cloud image

This was my problem with setting up debian cloud image as I am using UEFI
After changing from ide to scsi everything works as expected
Thank you
Can confirm that changing from ide0 to
Code:
scsi0: local-lvm:vm-102-cloudinit,media=cdrom
is working (i use scsi0 because I use virtio0 for primary hard drive, you might need to change the number from 0 to something else)
 
In case anyone finds this thread: switching from, in my case, ide2 to scsi2, solved the issue. Somehow this wasn't a problem for e.g. Ubuntu, but it is for Debian.

Debian 12.