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

    Network pool + Cloud Init

    Scheduled Pinned Locked Moved Xen Orchestra
    7 Posts 4 Posters 892 Views 6 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.
    • B Offline
      brm
      last edited by

      I have created a network pool and am wanting to use the assigned address from the pool in my cloud-init network configuration. I have successfully created a cloud configuration, and a network configuration to use with my template. But I am not sure how to reference the pool assigned IP address from within my network configuration.

      Like the {name} variable in the cloud config, I'm expecting there to be some kind of {address} variable for the network config.

      How are people doing this?

      Thanks in advance.

      And at the risk of being an annoying n00b, based on the reading I have done in the forum, tagging @fohdeesha here in case since he seems to know this stuff 🙂

      1 Reply Last reply Reply Quote 0
      • B Offline
        brm
        last edited by

        Anyone have any ideas?

        fohdeeshaF 1 Reply Last reply Reply Quote 0
        • fohdeeshaF Offline
          fohdeesha Vates 🪐 Pro Support Team @brm
          last edited by fohdeesha

          @brm Hmm, I actually am not sure if we ever added support for this specifically (specifying an IP from IP pools in a cloud-init configuration). I've never seen IP variables used or referenced so I don't think it's currently possible. @olivierlambert who was it on the team that implemented the IP Pools feature?

          1 Reply Last reply Reply Quote 1
          • olivierlambertO Offline
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            I don't remember, ask @julien-f or @pdonias I think

            julien-fJ 1 Reply Last reply Reply Quote 0
            • julien-fJ Offline
              julien-f Vates 🪐 Co-Founder XO Team @olivierlambert
              last edited by

              @olivierlambert Nope, {address} is not supported in the cloud configs.

              AFAIK, there is no IP configuration done during VM creation, what value should it take?

              1 Reply Last reply Reply Quote 0
              • olivierlambertO Offline
                olivierlambert Vates 🪐 Co-Founder CEO
                last edited by

                There's no value outside Cloudinit yes, because the IP address is something for "inside" the VM and not for the virt platform.

                B 1 Reply Last reply Reply Quote 0
                • B Offline
                  brm @olivierlambert
                  last edited by

                  Cloud configs allow {{name}}% substitutions. From my perspective (as a user), for how {{name}} is used in my cloud configs something like {{address}} would be identical.

                  What is the intended use case for the IPAM functionality in XOA if it can't be used like this? Real question, not trolling 🙂

                  1 Reply Last reply Reply Quote 1

                  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