<?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[create a new vm using a iso  setting cpu ram network via api]]></title><description><![CDATA[<p dir="auto">hi<br />
i am struggling with the api.</p>
<p dir="auto">can i do the following using api?:</p>
<ol>
<li>Create a VM using ubuntu 22X. template</li>
</ol>
<ul>
<li>define the following:<br />
-) CPU, Ram, bios, network interface and iso i want to use for install</li>
</ul>
<p dir="auto">then it should start vm creation and run my iso (its a autoinstall iso)</p>
<p dir="auto">i was able to make it work using packer but packer plugin is quit old and not really mantained...</p>
<p dir="auto">br</p>
<p dir="auto">mark</p>
]]></description><link>https://xcp-ng.org/forum/topic/10660/create-a-new-vm-using-a-iso-setting-cpu-ram-network-via-api</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 19:43:51 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/10660.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Mar 2025 20:05:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to create a new vm using a iso  setting cpu ram network via api on Thu, 27 Mar 2025 06:34:10 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></p>
<p dir="auto">thanks for info</p>
<p dir="auto">i used <a href="https://github.com/ddelnano/packer-plugin-xenserver" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/ddelnano/packer-plugin-xenserver</a><br />
but because of lack of ssh key support i changed the code a bit.<br />
now i can use ssh keys. (not ready for a PR)</p>
<p dir="auto">my problem is that inside the auto iso i use a shell script doing a reboot within the install.<br />
the reason is that i use this iso also on bare metal installations, some software i cant install without doing a reboot.</p>
<p dir="auto">i will now focus on the ansible integratian an fire the commands after the reboot using ansible.<br />
this might work.</p>
<p dir="auto">br</p>
<p dir="auto">Mark</p>
]]></description><link>https://xcp-ng.org/forum/post/91208</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/91208</guid><dc:creator><![CDATA[markxc]]></dc:creator><pubDate>Thu, 27 Mar 2025 06:34:10 GMT</pubDate></item><item><title><![CDATA[Reply to create a new vm using a iso  setting cpu ram network via api on Wed, 26 Mar 2025 14:39:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/markxc" aria-label="Profile: markxc">@<bdi>markxc</bdi></a> said in <a href="/forum/post/91171">create a new vm using a iso setting cpu ram network via api</a>:</p>
<blockquote>
<p dir="auto">Out of curiosity: how do you handle the Xen Orchestra appliance installation?</p>
</blockquote>
<p dir="auto">We use Packer, a Debian iso and an Ansible playbook in the ansible provisioner. See <a href="https://developer.hashicorp.com/packer/integrations/hashicorp/ansible/latest/components/provisioner/ansible" target="_blank" rel="noopener noreferrer nofollow ugc">https://developer.hashicorp.com/packer/integrations/hashicorp/ansible/latest/components/provisioner/ansible</a></p>
<p dir="auto">With this setup, we achieve these tasks:</p>
<ul>
<li>Create VM, mount ISO, perform install, and detect when installation is complete</li>
<li>Shut down the VM</li>
<li>Export VM as an OVA template</li>
</ul>
<p dir="auto">We also have a CI/CD pipeline doing this automatically.</p>
]]></description><link>https://xcp-ng.org/forum/post/91184</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/91184</guid><dc:creator><![CDATA[nathanael-h]]></dc:creator><pubDate>Wed, 26 Mar 2025 14:39:52 GMT</pubDate></item><item><title><![CDATA[Reply to create a new vm using a iso  setting cpu ram network via api on Wed, 26 Mar 2025 12:19:37 GMT]]></title><description><![CDATA[<p dir="auto">That's a question for the DevOps Tools team <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=0594cb2b96d" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Ping @devops-team</p>
]]></description><link>https://xcp-ng.org/forum/post/91172</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/91172</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Wed, 26 Mar 2025 12:19:37 GMT</pubDate></item><item><title><![CDATA[Reply to create a new vm using a iso  setting cpu ram network via api on Wed, 26 Mar 2025 12:18:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a></p>
<p dir="auto">Hi Oliver,</p>
<p dir="auto">I’ve been experimenting with Terraform — I can create a VM and boot it using my autoinstall ISO, but unfortunately, most other things aren’t working as expected.</p>
<p dir="auto">So I gave Packer a try instead.</p>
<p dir="auto">With Packer, I can successfully create a VM, mount the ISO, and perform the installation.</p>
<p dir="auto">At the moment, I’m stuck trying to reliably detect when the VM installation is actually finished — I’m currently working on a script to solve that.</p>
<p dir="auto">Out of curiosity: how do you handle the Xen Orchestra appliance installation?</p>
<p dir="auto">Here’s what I’m aiming for:</p>
<p dir="auto">We want to generate a custom VM image for our clients to import into different hypervisors (VMware, Xen, XCP-ng, Hyper-V, VirtualBox).</p>
<p dir="auto">My current workflow and progress:</p>
<p dir="auto">Generate autoinstall ISO with custom config — DONE</p>
<p dir="auto">Create VM, mount ISO, perform install, and detect when installation is complete — NOT WORKING YET</p>
<p dir="auto">Shut down the VM — DONE</p>
<p dir="auto">Export VM as an OVA template — DONE</p>
<p dir="auto">Convert that export to other formats for common hypervisors — DONE</p>
<p dir="auto">Upload final images to our storage for delivery to clients — DONE</p>
<p dir="auto">The goal is to fully automate the process — like a CI/CD pipeline for VM images.</p>
<p dir="auto">Right now, I’m able to do nearly everything except reliably detecting when the VM installation is finished.</p>
<p dir="auto">br</p>
<p dir="auto">mark</p>
]]></description><link>https://xcp-ng.org/forum/post/91171</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/91171</guid><dc:creator><![CDATA[markxc]]></dc:creator><pubDate>Wed, 26 Mar 2025 12:18:13 GMT</pubDate></item><item><title><![CDATA[Reply to create a new vm using a iso  setting cpu ram network via api on Wed, 26 Mar 2025 11:14:02 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Packer plugin is maintained. Which one you used?</p>
]]></description><link>https://xcp-ng.org/forum/post/91166</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/91166</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Wed, 26 Mar 2025 11:14:02 GMT</pubDate></item></channel></rss>