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 133 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
      • First post
        Last post