There is a LXD property which should have it update the relevant files
for you.

lxc config set <container> user.network_mode link-local

Setting that prior to the first container startup should fix your
problem.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1619238

Title:
  #cloud-config in user.user-data not running without ip

Status in lxc package in Ubuntu:
  New

Bug description:
  I'm having the darndest issue that a cloud config script that is
  present in a lxc profile and should beapplied on creation is not being
  run on boot on any image on three different servers when there is no
  dhcp server or IP present on spun up image.

  There is nothing in the logs that indicate an error, the process to
  apply the cloud data just doesn't run. I can see that data read into
  /var/lib/cloud/seed/nocloud-net/user-data and it's present. But it is
  not applied unless I manually give the machine an IP address, not
  before which is quite annoying as I am applying the IP address through
  the profile in this instance.

  The logs are no help, they just say it ran successfully when I add an
  IP address manually or are silent about running cloud-init when it
  doesn't have one.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1619238/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to