-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
debian/11/cloud doesn't run cloud-init in lxd #771
Labels
Incomplete
Waiting on more information from reporter
Comments
Below snippet is my from my packer workaround:
|
Is this still happening? We have automated daily tests of our images and they've not flagged this image as having an issue. |
This may be caused by the
|
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Hi,
I tend to run images with lxd on non-lxd managed networks (unmanaged networks in lxd speak).
With Debian/11/cloud (bullseye/cloud) I run into the situation that networking doesn't come up, which seems to be related to the fact that cloud-init doesn't run, when compared to e.g. debian/12/cloud (bookworm/cloud).
Here's my environment:
Note that at this stage I'm not passing in any cloud-init yet. (that happens in images that derive from this).
Now when I launch "vanilla" cloud images from both, I observe (in addition to networking being down) that cloud-init is disabled on bullseye but not on bookworm:
This behaviour is triggered by the systemd generator for cloud-init:
whereas the debian/12/cloud image reports this:
Similarly:
In short: I think my woes are due to the fact that cloud-init is disabled due to a failing cloud-init datasource identification in bullseye, that works in bookworm.
Upon further investigation:
And really, there's no lxd datasource capability defined:
My current take is that this lack of lxd capability is due to the cloud-init version:
When I install cloud-init from bullseye-backports and reboot (in order to trigger the systemd generator for cloud-init),
it all starts to work as expected and consistent with bookworm:
Summed up, I'd like to make the case for setting up debian/11/cloud with cloud-init 22.2 from bullseye-backports since that version includes support for LXD environments (i.e. cloud-init is broken for bullseye) and will have consistent cloud-init behaviour across os families.
To the very least I hope the above documents the work around well enough, though implementing the workaround requires a reboot of the container in my packer build pipeline which is a bit of a burden.
The text was updated successfully, but these errors were encountered: