Public bug reported:

When cloud-init calls lxd waitready --timeout=300 on a system without
LXD snap imstalled lxd-installer's /usr/sbin/lxd blocks on an
interactive prompt "Would you like to install LXD (Y/n)" in Ubuntu
Plucky 25.04 and newer Ubuntu images.which cannot be skipped using
command-line arguments. This prevents cloud-init from installing lxd
snap and setting up LXD inside a VM or container.

cloud-init version: 25.2-0ubuntu1~25.04.1 and all 25.3 derivatives

# reproducer

cat > lxd-preseed-user-data.yaml <<EOF
#cloud-config
lxd:
  preseed: |
    config: {}
    networks:
    - config:
        ipv4.address: auto
        ipv6.address: auto
      description: ""
      name: lxdbr0
      type: ""
    storage_pools:
    - config:
        source: /var/snap/lxd/common/lxd/storage-pools/default
      description: ""
      name: default
      driver: dir
    profiles:
    - config: {}
      description: ""
      devices:
        eth0:
          name: eth0
          nictype: bridged
          parent: lxdbr0
          type: nic
        root:
          path: /
          pool: default
          type: disk
      name: default
    cluster: null
EOF

lxc launch ubuntu-daily:plucky  -c cloud-init.user-data="$(cat lxd-
preseed-user-data.yaml)" test-lxd-preseed


lxc exec test-lxd-preseed -- cloud-init status --wait --format yaml

** Affects: cloud-init (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: cloud-init (Ubuntu Plucky)
     Importance: Undecided
         Status: New

** Affects: cloud-init (Ubuntu Questing)
     Importance: Undecided
         Status: New

** Affects: cloud-init (Ubuntu Resolute)
     Importance: Undecided
         Status: New

** Also affects: cloud-init (Ubuntu Plucky)
   Importance: Undecided
       Status: New

** Also affects: cloud-init (Ubuntu Questing)
   Importance: Undecided
       Status: New

** Also affects: cloud-init (Ubuntu Resolute)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2136198

Title:
  plucky and newer: lxd user-data is unable to install LXD snap

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2136198/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to