<?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[Packer issues]]></title><description><![CDATA[<p dir="auto">Unfortunately, I'm not familiar with the underlying programming necessary to do "pull requests" and things like that. Otherwise I would gladly contribute a fix.</p>
<p dir="auto">I'm posting here to get information that I have not been able to find elsewhere, having read everything I can find about using Packer to deploy VMs through XO, using this Packer plug-in: <a href="https://github.com/ddelnano/packer-plugin-xenserver" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/ddelnano/packer-plugin-xenserver</a></p>
<p dir="auto">Over a few weeks I have managed to find a Packer and RHEL Kickstart configuration that produces a VM in XO. That was a good feeling.</p>
<p dir="auto">But we also still have to support the VMware platform, and having used the VMware plugin for Packer, I can see important differences that do seem to be issues when you think about them. I'm not sure where is "the right place" to do this, so I'm starting here hoping that I'll either find the right eyeballs or ones that can direct me to the right place.</p>
<p dir="auto">References: <a href="https://github.com/ddelnano/packer-plugin-xenserver" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/ddelnano/packer-plugin-xenserver</a></p>
<ul>
<li>
<p dir="auto">Setting the required <strong>iso_url</strong> variable does not result in the ISO being cached. That poor ISO file is uploaded to an SR each and everytime. And instead of overwriting the existing one, a new copy is spawned on every build. My iso_url is set to use the local filesystem; it would be nice if the plug-in checked to see if the file already existed in the SR before uploading another copy, or at least cleaned-up after itself by deleting the copy. This seems like a bug.</p>
</li>
<li>
<p dir="auto">Setting the <strong>clone_template</strong> variable to one of the XO-provided base templates results in an error during packer build complaining that "multiple" have been found. Why is it querying across all pools, when I had to provide credentials to deploy on a specific XCP-ng host? It's easy to get around by making a copy in the pool I'm using with a unique name, but there's nothing in the documentation specifying this is required. This seems like a bug.</p>
</li>
<li>
<p dir="auto">Setting <strong>keep_vm</strong> to "always" does not result in the packer-built-VM being kept at the end of the build. Seems like a bug.</p>
</li>
<li>
<p dir="auto">Setting <strong>iso_checksum_type</strong> to "none" does not bypass the checksum test. It may be a good thing to perform this during the initial upload of an ISO but... everytime?</p>
</li>
<li>
<p dir="auto">The link to <strong>the following documentation</strong> for "In order to see an exhaustive list of configuration options for the packer builder please see the following documentation. " is broken. (<a href="https://github.com/ddelnano/packer-plugin-xenserver/tree/master/examples" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/ddelnano/packer-plugin-xenserver/tree/master/examples</a>)</p>
</li>
<li>
<p dir="auto">The link <strong>examples</strong> in "See the examples for working boot commands." is broken. (<a href="https://github.com/ddelnano/packer-plugin-xenserver/blob/master/docs/builders/iso/xenserver-iso.html.markdown" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/ddelnano/packer-plugin-xenserver/blob/master/docs/builders/iso/xenserver-iso.html.markdown</a>)</p>
</li>
<li>
<p dir="auto">The link <strong>xenserver-iso docs</strong> in "or complete documentation on configuration commands, see the xenserver-iso docs" is broken. (<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 />
In the end... I've got something that works... I'm learning to live with these things, but would love to know if further development is going to be sponsored.</p>
</li>
</ul>
<p dir="auto">The XCP-ng/XO, Packer and packer-plugin-xenserver developers have my thanks in providing an alternative to VMware.</p>
<p dir="auto">Mike<br />
<strong>Edited</strong> to fix my error in referencing the older packer-plugin instead of the new one being maintained by Mr. Dom Del Nano (ddelnano)</p>
]]></description><link>https://xcp-ng.org/forum/topic/6972/packer-issues</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 16:04:39 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/6972.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 Feb 2023 16:03:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Packer issues on Fri, 31 Mar 2023 06:31:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/rochemike" aria-label="Profile: rochemike">@<bdi>rochemike</bdi></a> sorry for the late reply!</p>
<blockquote>
<p dir="auto">If we already have an ISO on an SR, do we even need to mount the ISO for a network build of Centos/RHEL? Isn't... shouldn't it be possible for the ISO to be mounted by the new build VM as source for creating the new VM, instead of using network build?</p>
</blockquote>
<p dir="auto">That is exactly what <a href="https://github.com/ddelnano/packer-plugin-xenserver/pull/56" target="_blank" rel="noopener noreferrer nofollow ugc">packer-plugin-xenserver#56</a> accomplishes.</p>
<blockquote>
<p dir="auto">The new VM mounts the guest tools to the DVD - which I don't even want to use as I prefer to install a package afterwards. Is it possible to mount the RHEL/Centos ISO instead?</p>
</blockquote>
<p dir="auto">I believe the ISO and guest tools are treated <a href="https://github.com/ddelnano/packer-plugin-xenserver/blob/8c58db350401f5a6b123b89b733dfc40d52c254f/builder/xenserver/iso/builder.go#L245-L254" target="_blank" rel="noopener noreferrer nofollow ugc">the same</a> -- both VBDs are attached as cds. If you can identify what is different about them in the UI or from the <code>xe</code> cli that would help me understand what you trying to describe.</p>
<p dir="auto">As for what is possible, if what you want to configure is accessible via the XCP-ng / Xenserver API the packer plugin could be enhanced to perform that action. Hope this helps explain more on the potential possibilities.</p>
]]></description><link>https://xcp-ng.org/forum/post/60559</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/60559</guid><dc:creator><![CDATA[ddelnano]]></dc:creator><pubDate>Fri, 31 Mar 2023 06:31:49 GMT</pubDate></item><item><title><![CDATA[Reply to Packer issues on Mon, 27 Feb 2023 13:33:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ddelnano" aria-label="Profile: ddelnano">@<bdi>ddelnano</bdi></a> OK I will, <strong>thank you for taking the time to respond</strong>. I wasn't sure if having an account at GitHub was enough of a qualification to post an issue. I'll take care of doing that ASAP.</p>
<p dir="auto">But I'm curious - I don't know if this is a bug, or if it is a feature I haven't learned how to maximize yet.  If we already have an ISO on an SR, do we even need to mount the ISO for a network build of Centos/RHEL? Isn't... shouldn't it be possible for the ISO to be mounted by the new build VM as source for creating the new VM, instead of using network build?</p>
<p dir="auto">The new VM mounts the guest tools to the DVD - which I don't even want to use as I prefer to install a package afterwards.  Is it possible to mount the RHEL/Centos ISO instead?</p>
<p dir="auto">In this situation, this would eliminate 3 minutes of upload, 3 minutes of checksum'ing and would probably halve the amount of time it takes to build the new VM/template.</p>
<p dir="auto"><strong>Thanks again</strong>, never heard of packer before a friend turned me on to it, and now I really want to maximize it!</p>
]]></description><link>https://xcp-ng.org/forum/post/59235</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/59235</guid><dc:creator><![CDATA[rochemike]]></dc:creator><pubDate>Mon, 27 Feb 2023 13:33:36 GMT</pubDate></item><item><title><![CDATA[Reply to Packer issues on Mon, 27 Feb 2023 13:26:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/pedroalvesbatista" aria-label="Profile: pedroalvesbatista">@<bdi>pedroalvesbatista</bdi></a> thank you for asking - yes, I did start with that and used it as a template for a RHEL 8.7 VM.</p>
<p dir="auto">I want there to be NO DOUBT - I <em>love</em> how this works. I just wish it didn't have those bugs.</p>
]]></description><link>https://xcp-ng.org/forum/post/59228</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/59228</guid><dc:creator><![CDATA[rochemike]]></dc:creator><pubDate>Mon, 27 Feb 2023 13:26:33 GMT</pubDate></item><item><title><![CDATA[Reply to Packer issues on Mon, 27 Feb 2023 08:05:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/rochemike" aria-label="Profile: rochemike">@<bdi>rochemike</bdi></a> apologies for the late reply. As you've seen, there is lots of improvement for the xenserver-packer-plugin that has been revived from the orphaned upstream repo.</p>
<p dir="auto">I would greatly appreciate it if you added these issues to the GitHub project. That way we can make sure there is tracking for them.</p>
<p dir="auto">As for the iso issue you mentioned, that was <a href="https://github.com/ddelnano/packer-plugin-xenserver/issues/53" target="_blank" rel="noopener noreferrer nofollow ugc">already tracked</a> and it should be fixed soon (<a href="https://github.com/ddelnano/packer-plugin-xenserver/pull/56" target="_blank" rel="noopener noreferrer nofollow ugc">packer-plugin-xenserver#56</a>)!</p>
]]></description><link>https://xcp-ng.org/forum/post/59182</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/59182</guid><dc:creator><![CDATA[ddelnano]]></dc:creator><pubDate>Mon, 27 Feb 2023 08:05:40 GMT</pubDate></item><item><title><![CDATA[Reply to Packer issues on Sat, 25 Feb 2023 17:27:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/rochemike" aria-label="Profile: rochemike">@<bdi>rochemike</bdi></a> Hi ! We're working on a new documentation. The temporary link is <a href="https://pedroalvesbatista.github.io/xenserver-packer-plugin.github.io/" target="_blank" rel="noopener noreferrer nofollow ugc">this</a>.</p>
<p dir="auto">Very nice points you brought.</p>
<p dir="auto">Have you succeed when running <code>packer init examples/centos/centos8-local.pkr.hcl</code> example ?</p>
]]></description><link>https://xcp-ng.org/forum/post/59149</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/59149</guid><dc:creator><![CDATA[pedroalvesbatista]]></dc:creator><pubDate>Sat, 25 Feb 2023 17:27:50 GMT</pubDate></item><item><title><![CDATA[Reply to Packer issues on Thu, 16 Feb 2023 16:28:07 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> ah nuts I pasted in the wrong repo.</p>
<p dir="auto">Yes, I saw that - this is all still relevant, because I am indeed using this plugin: ddelnano/packer-plugin-xenserver</p>
<p dir="auto">I'll update my original post.</p>
]]></description><link>https://xcp-ng.org/forum/post/58771</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/58771</guid><dc:creator><![CDATA[rochemike]]></dc:creator><pubDate>Thu, 16 Feb 2023 16:28:07 GMT</pubDate></item><item><title><![CDATA[Reply to Packer issues on Thu, 16 Feb 2023 16:09:10 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">This repository is not maintained anymore, you should use <a href="https://github.com/ddelnano/packer-plugin-xenserver" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/ddelnano/packer-plugin-xenserver</a> instead. <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ddelnano" aria-label="Profile: ddelnano">@<bdi>ddelnano</bdi></a> is doing some maintenance on it <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=ab1daa29750" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://xcp-ng.org/forum/post/58770</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/58770</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Thu, 16 Feb 2023 16:09:10 GMT</pubDate></item></channel></rss>