Problem profile and cloud-init

Hello,
When I import a simple cloud-init in a profile.
under lxd with ubuntu in bionnic, it works perfectly.
under lxd with ubuntu in focal, impossible to make it work.

version lxd ubuntu focal (snap): 4.23
example of my profile:

config:
  user.user-data: |
    #cloud-config
    hostname: myhost
    users:
    - tintin
    packages:
    - nginx
    write_files:
      - content: |
          Hello  line
          second ligne
        path: /tmp/tintin.txt
description: Default LXD profile
devices:
  eth0:
    name: eth0
    network: lxdbr0
    type: nic
  root:
    path: /
    pool: default
    type: disk
name: myprofile
used_by:
- /1.0/instances/test

I thank you for your help.

Hi tintin,
Just suppose, Are you using ubuntu/focal/cloud images right? Also you can check the /var/log/cloud-init.log file for errors of the related container.
Regards.

Hello,
I use ubuntu/focal :

lxc launch images:ubuntu/focal vpntest-manual1 --profile perso

thank you for your answer.

thank you very much,
you helped me to understand I was not taking the right picture!
thank you again

You are welcome tintin, please mark as solved.
Regards.