<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Wait for IP(v4) address similar to terraform]]></title><description><![CDATA[<p dir="auto">Is there anything similar to <a href="https://xcp-ng.org/forum/topic/8288/terraform-wait_for_ip-flag-returning-apipa-address">this</a> in the xo-cli or API? I don't want to use Terraform or OpenTofu for this, as it significantly complicates the system I'm building.</p>
<p dir="auto">Right now, I have a Python script that just waits 120 seconds before continuing to make sure the VM gets an IP address via DHCP and is reported properly. My only concern (even with Terraform/OpenTofu) is that Windows returns a 169.254.x.x address to XCP-ng tools almost immediately after fully booting. Is there a way to get around this?</p>
]]></description><link>https://xcp-ng.org/forum/topic/10497/wait-for-ip-v4-address-similar-to-terraform</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 19:37:55 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/10497.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 Feb 2025 19:59:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wait for IP(v4) address similar to terraform on Wed, 19 Nov 2025 15:52:51 GMT]]></title><description><![CDATA[<p dir="auto">Ping <a class="plugin-mentions-group plugin-mentions-a" href="/forum/groups/team-documentation-knowledge-management" aria-label="Profile: Team-Documentation-Knowledge-Management">@<bdi>Team-Documentation-Knowledge-Management</bdi></a></p>
]]></description><link>https://xcp-ng.org/forum/post/99780</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/99780</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Wed, 19 Nov 2025 15:52:51 GMT</pubDate></item><item><title><![CDATA[Reply to Wait for IP(v4) address similar to terraform on Wed, 19 Nov 2025 15:49:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/nathanael-h" aria-label="Profile: nathanael-h">@<bdi>nathanael-h</bdi></a> said in <a href="/forum/post/89968">Wait for IP(v4) address similar to terraform</a>:</p>
<blockquote>
<p dir="auto">expected_ip_cidr = "10.0.0.0/16" is available in Terraform</p>
</blockquote>
<p dir="auto">THIS!!</p>
<p dir="auto">i was losing my mind trying to get terraform to pass the IP of VM to ansible for further configuration...</p>
<p dir="auto">Had to dig deep for 3 days to find this and that "wait_for_ip" was replaced by this logic.</p>
<p dir="auto">This is not part of the vates/xenorchestra terraform documentation, it could use some updating.</p>
]]></description><link>https://xcp-ng.org/forum/post/99779</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/99779</guid><dc:creator><![CDATA[anik]]></dc:creator><pubDate>Wed, 19 Nov 2025 15:49:31 GMT</pubDate></item><item><title><![CDATA[Reply to Wait for IP(v4) address similar to terraform on Fri, 21 Feb 2025 23:22:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/nathanael-h" aria-label="Profile: nathanael-h">@<bdi>nathanael-h</bdi></a> Dang, do any of you sleep?! This is pretty much what I need, and would actually significantly improve what I'm building! Will <code>wait_for_ip</code> be included? As well as the rest of the Terraform logic?</p>
<blockquote>
<p dir="auto">But as you're building a Python script you could implements there the same logic: define a variable for your expected cidr, and poll the IP of the VM until it matches.</p>
</blockquote>
<p dir="auto">Duhh, Why didn't I think of that <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f605.png?v=0594cb2b96d" class="not-responsive emoji emoji-android emoji--sweat_smile" style="height:23px;width:auto;vertical-align:middle" title=":sweat_smile:" alt="😅" />. Thanks for the help!!</p>
]]></description><link>https://xcp-ng.org/forum/post/90035</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/90035</guid><dc:creator><![CDATA[nick.lloyd]]></dc:creator><pubDate>Fri, 21 Feb 2025 23:22:15 GMT</pubDate></item><item><title><![CDATA[Reply to Wait for IP(v4) address similar to terraform on Fri, 21 Feb 2025 08:50:26 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/nick.lloyd" aria-label="Profile: nick.lloyd">@<bdi>nick.lloyd</bdi></a>, the logic of <code>expected_ip_cidr = "10.0.0.0/16"</code> is available in Terraform, not in XO. But as you're building a Python script you could implements there the same logic: define a variable for your expected cidr, and poll the IP of the VM until it matches.</p>
<p dir="auto">Else, as you're using Python, you might be interested by the Pulumi Python SDK we will release this month. It allows you to easily define your infrastructure as code like with Terraform, but using Python <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f40d.png?v=0594cb2b96d" class="not-responsive emoji emoji-android emoji--snake" style="height:23px;width:auto;vertical-align:middle" title=":snake:" alt="🐍" /> <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=0594cb2b96d" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=":wink:" alt="😉" /> There you will also have the <a href="https://github.com/vatesfr/pulumi-xenorchestra/blob/6b242fb758af4e6d987fd68b39d0810649e635ee/sdk/python/pulumi_xenorchestra/_inputs.py#L277" target="_blank" rel="noopener noreferrer nofollow ugc">expected_ip_cidr</a> param, in Python..</p>
<p dir="auto"><a href="https://pypi.org/project/pulumi-xenorchestra/" target="_blank" rel="noopener noreferrer nofollow ugc">https://pypi.org/project/pulumi-xenorchestra/</a><br />
<a href="https://github.com/vatesfr/pulumi-xenorchestra/" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/vatesfr/pulumi-xenorchestra/</a><br />
<a href="https://www.pulumi.com/product/infrastructure-as-code/" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.pulumi.com/product/infrastructure-as-code/</a></p>
]]></description><link>https://xcp-ng.org/forum/post/89968</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/89968</guid><dc:creator><![CDATA[nathanael-h]]></dc:creator><pubDate>Fri, 21 Feb 2025 08:50:26 GMT</pubDate></item><item><title><![CDATA[Reply to Wait for IP(v4) address similar to terraform on Thu, 20 Feb 2025 20:38:00 GMT]]></title><description><![CDATA[<p dir="auto">Question for <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/nathanael-h" aria-label="Profile: nathanael-h">@<bdi>nathanael-h</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/butcat" aria-label="Profile: Butcat">@<bdi>Butcat</bdi></a> or <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/cyrille" aria-label="Profile: Cyrille">@<bdi>Cyrille</bdi></a></p>
]]></description><link>https://xcp-ng.org/forum/post/89954</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/89954</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Thu, 20 Feb 2025 20:38:00 GMT</pubDate></item></channel></rss>