XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    cloud-init instance (meta) data

    Scheduled Pinned Locked Moved Advanced features
    1 Posts 1 Posters 233 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • enkaskalE Offline
      enkaskal
      last edited by enkaskal

      Hello,

      I've been using cloud-init (both cloud & network configs) successfully for a couple years now in XO, but one thing that has always annoyed me is during first boot instances first register their DNS hostname as localhost after which they quickly register with the proper hostname. This will occassionally casuse issues with reverse DNS lookups, but can easily be remedied manually. I was recently digging into this when refactoring my network config from v1 to v2, and I have a hypothesis that it is because the cloud_init_modules set_hostname & update_hostname that are part of the network boot stage run after DHCP which I believe is running as part of the local boot stage [1]. In order to test this hypothesis I'd like to be able to inject instance (meta) data [2] and I've searched, but haven't found a way to do that.

      Does anybody know if this is possible?

      1. https://cloudinit.readthedocs.io/en/latest/explanation/boot.html#local
      2. https://cloudinit.readthedocs.io/en/latest/explanation/instancedata.html

      EDIT: fixed a typo

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post