<?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[Ansible and XCP-ng]]></title><description><![CDATA[<p dir="auto">Hello everyone,</p>
<p dir="auto">On this gray weather here in Malta, I was thinking about some things I could try on XCP-ng with Ansible. Ansible will be my next learning priority and I would like to automate and extend some things on XCP-ng (i'ill be back in the XCP-ng game on my lab soon). So there are some ideas on what I will work and obviously I will put this open to everyone.</p>
<ul>
<li>
<p dir="auto"><strong>Automatic installation of PVHVM drivers/Xen Tools for Linux (native) and Windows (native with WinRM module)</strong>.  Seems very simple on Linux, maybe less on Windows.<br />
With this possibility, I was wondering if it's possible to imagine a feature that "call" an Ansible playbook in XenOrchestra to directly install these drivers in an hassle-free way. For example, is it possible to wait for a reboot of a Windows VM so this could give the opportunity to install the XCP-ng drivers without doing some manual reboot and so on. And maybe manage the inventory file on XO or directly fill this file with the VM installed on XO. (just ideas, pure theory <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f605.png?v=041a08e19dc" class="not-responsive emoji emoji-android emoji--sweat_smile" style="height:1.4em;width:auto;vertical-align:middle" title=":sweat_smile:" alt="😅" /> )</p>
</li>
<li>
<p dir="auto"><strong>Deployment of virtual machine and management querying the XO API or XAPI</strong>. This is something very important to me, deploy VM from templates to gain time, and it could be better with Ansible <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=041a08e19dc" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=":wink:" alt="😉" /> Or maybe imagine some others common task to automate.</p>
</li>
<li>
<p dir="auto"><strong>Build XenOrchestra from sources</strong>. There are already some scripts, but I would like to deploy XO instances on hosts remotly using Ansible. I have other ideas around this, I will continue thinking on it.</p>
</li>
</ul>
<p dir="auto">There are my first ideas on which I will working on on the next months, if you have opinions, advices or other ideas, don't hesitate.</p>
]]></description><link>https://xcp-ng.org/forum/topic/903/ansible-and-xcp-ng</link><generator>RSS for Node</generator><lastBuildDate>Thu, 15 Oct 2026 19:42:50 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/903.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 30 Jan 2019 12:23:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ansible and XCP-ng on Thu, 31 Jan 2019 08:35:15 GMT]]></title><description><![CDATA[<p dir="auto">Perfect ! I was thinking that is only available during the deployment of a VM (I need more experience on Ansible <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f602.png?v=041a08e19dc" class="not-responsive emoji emoji-android emoji--joy" style="height:1.4em;width:auto;vertical-align:middle" title=":joy:" alt="😂" />)</p>
<p dir="auto">I will give a try as soon as I get the possibility to use Ansible.</p>
]]></description><link>https://xcp-ng.org/forum/post/8085</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/8085</guid><dc:creator><![CDATA[ruskofd]]></dc:creator><pubDate>Thu, 31 Jan 2019 08:35:15 GMT</pubDate></item><item><title><![CDATA[Reply to Ansible and XCP-ng on Thu, 31 Jan 2019 08:30:10 GMT]]></title><description><![CDATA[<p dir="auto">@Ruskofff said in <a href="/forum/post/8077">Ansible and XCP-ng</a>:</p>
<blockquote>
<p dir="auto">I have a question about your module "xenserver_guest". Is it able to modify settings of the VM ? My main interest will be to mount the guest-tools.iso file to the VM. It's easy with the xe cli but I can't test it now that why I'm asking this.</p>
</blockquote>
<p dir="auto">Of course. Check out "cdrom" module parameter in the docs.</p>
]]></description><link>https://xcp-ng.org/forum/post/8084</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/8084</guid><dc:creator><![CDATA[bvitnik]]></dc:creator><pubDate>Thu, 31 Jan 2019 08:30:10 GMT</pubDate></item><item><title><![CDATA[Reply to Ansible and XCP-ng on Thu, 31 Jan 2019 08:21:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/bvitnik" aria-label="Profile: bvitnik">@<bdi>bvitnik</bdi></a> I propose to put your explanation of the other topic to the XCP-ng wiki, it could be very useful for everyone who want to use the module.</p>
<p dir="auto">The link : <a href="https://github.com/xcp-ng/xcp/wiki" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/xcp-ng/xcp/wiki</a></p>
<p dir="auto">I have a question about your module "xenserver_guest". Is it able to modify settings of the VM ? My main interest will be to mount the guest-tools.iso file to the VM. It's easy with the xe cli but I can't test it now that why I'm asking this.</p>
]]></description><link>https://xcp-ng.org/forum/post/8077</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/8077</guid><dc:creator><![CDATA[ruskofd]]></dc:creator><pubDate>Thu, 31 Jan 2019 08:21:52 GMT</pubDate></item><item><title><![CDATA[Reply to Ansible and XCP-ng on Thu, 31 Jan 2019 03:58:31 GMT]]></title><description><![CDATA[<p dir="auto">This thread reminds  me I should think about open sourcing our ruby implementation of the XO API...</p>
]]></description><link>https://xcp-ng.org/forum/post/8072</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/8072</guid><dc:creator><![CDATA[nhanlon]]></dc:creator><pubDate>Thu, 31 Jan 2019 03:58:31 GMT</pubDate></item><item><title><![CDATA[Reply to Ansible and XCP-ng on Wed, 30 Jan 2019 22:52:58 GMT]]></title><description><![CDATA[<p dir="auto">@Ruskofff I've updated the thread with new info regarding my modules.</p>
<p dir="auto">The biggest advantage to using the modules instead of using xe tool or calling XAPI methods is that modules follow Ansible's idempotency principle. So you can run your Ansible playbooks multiple times without worrying that Ansible will do anything more times than expected.</p>
]]></description><link>https://xcp-ng.org/forum/post/8065</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/8065</guid><dc:creator><![CDATA[bvitnik]]></dc:creator><pubDate>Wed, 30 Jan 2019 22:52:58 GMT</pubDate></item><item><title><![CDATA[Reply to Ansible and XCP-ng on Wed, 30 Jan 2019 22:24:54 GMT]]></title><description><![CDATA[<p dir="auto">Indeed, this is this one ! I will check your module to see what can it bring to me. I already tried with the XAPI how can I do certain things for the first idea that I posted above, I will check later how can I do that with your module.</p>
]]></description><link>https://xcp-ng.org/forum/post/8064</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/8064</guid><dc:creator><![CDATA[ruskofd]]></dc:creator><pubDate>Wed, 30 Jan 2019 22:24:54 GMT</pubDate></item><item><title><![CDATA[Reply to Ansible and XCP-ng on Wed, 30 Jan 2019 22:08:02 GMT]]></title><description><![CDATA[<p dir="auto">@Ruskofff said in <a href="/forum/post/8061">Ansible and XCP-ng</a>:</p>
<blockquote>
<p dir="auto">Edit : I found the Ansible module you talking about <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/cheese" aria-label="Profile: cheese">@<bdi>cheese</bdi></a> (with the other topic talking about Ansible on XenServer). I could start from this point for the deployment of VM yes. Seems good for me !</p>
</blockquote>
<p dir="auto">This is the thread:</p>
<p dir="auto"><a href="https://xcp-ng.org/forum/topic/159/deploy-vms-using-ansible">https://xcp-ng.org/forum/topic/159/deploy-vms-using-ansible</a></p>
<p dir="auto">I'm the author of the module. The thread is a little outdated but I will update it ASAP. Feel free to ask me anything regarding the module.</p>
]]></description><link>https://xcp-ng.org/forum/post/8063</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/8063</guid><dc:creator><![CDATA[bvitnik]]></dc:creator><pubDate>Wed, 30 Jan 2019 22:08:02 GMT</pubDate></item><item><title><![CDATA[Reply to Ansible and XCP-ng on Wed, 30 Jan 2019 19:28:00 GMT]]></title><description><![CDATA[<p dir="auto">Edit : I found the Ansible module you talking about <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/cheese" aria-label="Profile: cheese">@<bdi>cheese</bdi></a> (with the other topic talking about Ansible on XenServer). I could start from this point for the deployment of VM yes. Seems good for me !</p>
<p dir="auto">Concerning Terraform, I check some code source on Github with the official documentation from Hashicorp, I need much more time to understand everything... I need more development practice <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f627.png?v=041a08e19dc" class="not-responsive emoji emoji-android emoji--anguished" style="height:1.4em;width:auto;vertical-align:middle" title=":anguished:" alt="😧" /></p>
<p dir="auto">But for now, I will fully focus on Ansible.</p>
]]></description><link>https://xcp-ng.org/forum/post/8061</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/8061</guid><dc:creator><![CDATA[ruskofd]]></dc:creator><pubDate>Wed, 30 Jan 2019 19:28:00 GMT</pubDate></item><item><title><![CDATA[Reply to Ansible and XCP-ng on Wed, 30 Jan 2019 16:03:19 GMT]]></title><description><![CDATA[<p dir="auto">I already check xenserver with Ansible and I didn't find some things that seems up to date. And I agree with Olivier, I would like to query directly XO than the XAPI.</p>
<p dir="auto">These are idea for Ansible playbook in the first time, I need to learn Go and Python from scratch before thinking create some modules.</p>
]]></description><link>https://xcp-ng.org/forum/post/8057</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/8057</guid><dc:creator><![CDATA[ruskofd]]></dc:creator><pubDate>Wed, 30 Jan 2019 16:03:19 GMT</pubDate></item><item><title><![CDATA[Reply to Ansible and XCP-ng on Wed, 30 Jan 2019 15:54:16 GMT]]></title><description><![CDATA[<p dir="auto">I would suggest terraform on <code>xo-cli</code> or XO API (easier to have one entry point for the whole infrastructure, means less work on the layer on top)</p>
]]></description><link>https://xcp-ng.org/forum/post/8056</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/8056</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Wed, 30 Jan 2019 15:54:16 GMT</pubDate></item><item><title><![CDATA[Reply to Ansible and XCP-ng on Wed, 30 Jan 2019 15:45:17 GMT]]></title><description><![CDATA[<p dir="auto">@Ruskofff There are already some modules about XenServer within Ansibe sources. Just find 'xenserver'. I hope you can use them as start point.</p>
]]></description><link>https://xcp-ng.org/forum/post/8052</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/8052</guid><dc:creator><![CDATA[cheese]]></dc:creator><pubDate>Wed, 30 Jan 2019 15:45:17 GMT</pubDate></item></channel></rss>