<?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[Cloud Config success]]></title><description><![CDATA[<p dir="auto">While I was waiting on a fix for the OVA import issues I was experiencing, I decided to work on a solution myself to getting a template I could use Cloud Configs on.</p>
<p dir="auto">Through much trial and error, I managed to figure out a build template that works for Ubuntu 22.04 LTS that gets you a base image that will recognize standard Cloud Configs in XOCE and apply them successfully. I thought I'd write it up for anyone else who may be banging their heads against the wall like I was.</p>
<p dir="auto">***Note: almost ALL of this was knowledge gleaned from other users in other posts, comments and various forum posts here and on other websites.  All I did was figure out what worked, in a repeatable fashion, so I could actually use the configs as intended.</p>
<p dir="auto">How I built my cloud disk and used Cloud Config ;</p>
<ul>
<li>
<p dir="auto">Installed Ubuntu 22.04 LTS as VM, (I used 2 cpu, 8G ram, 10G drive)</p>
</li>
<li>
<p dir="auto">Upon reboot, I updated/upgraded w/apt</p>
</li>
<li>
<p dir="auto">Installed Guest Tools</p>
</li>
<li>
<p dir="auto">Ran sudo apt install cloud-initramfs-growroot</p>
<ul>
<li>(an absolute MUST if you want your VM to apply a Cloud Config...took me 4 or 5 times reinstalling and trying various things not realizing how important this was for success.  I thought it was automatically installed with the Cloud-Init package.....it is not).</li>
</ul>
</li>
<li>
<p dir="auto">Ran sudo cloud-init clean</p>
</li>
<li>
<p dir="auto">Ran sudo truncate -s 0 /etc/machine-id  /var/lib/dbus/machine-id</p>
<ul>
<li>Used to clear out machine-id for regeneration.  Found that if you deleted the file, it would not be regenerated during the reboot but if you zeroed it out, it would.</li>
</ul>
</li>
</ul>
<p dir="auto">Shutdown VM and created a template from that image.</p>
<p dir="auto">Doing this allowed me to apply Cloud Configs and have them actually stick to any new VM created from that image.</p>
<p dir="auto">One thing...the configs MUST be in perfect YAML format so running through a verifier helps spot issues.  I was missing a space between the hashed_passwd: colon and the start of the password.  It took a verifier to point that out.</p>
<p dir="auto">Hopefully this helps someone in the future</p>
]]></description><link>https://xcp-ng.org/forum/topic/7177/cloud-config-success</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 17:48:10 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/7177.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Apr 2023 11:38:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cloud Config success on Sat, 21 Dec 2024 22:55:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/mtcoffee" aria-label="Profile: mtcoffee">@<bdi>mtcoffee</bdi></a> Thank you. Just what I need.</p>
]]></description><link>https://xcp-ng.org/forum/post/87270</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/87270</guid><dc:creator><![CDATA[mohammadm]]></dc:creator><pubDate>Sat, 21 Dec 2024 22:55:55 GMT</pubDate></item><item><title><![CDATA[Reply to Cloud Config success on Wed, 15 May 2024 19:07:00 GMT]]></title><description><![CDATA[<p dir="auto">I am now a VMware -&gt; XCP-ng convert and wish I had known sooner.  This post helped me get to the point of fully automated template and server builds with Packer/Terraform.</p>
<p dir="auto">Here are my code samples. Hope it helps someone else!</p>
<p dir="auto">Packer/XCP-ng Templates<br />
<a href="https://github.com/mtcoffee/xcp-ng-packer-examples" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/mtcoffee/xcp-ng-packer-examples</a></p>
<p dir="auto">Terraform/XCP-ng Templates<br />
<a href="https://github.com/mtcoffee/xcp-ng-terraform-examples" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/mtcoffee/xcp-ng-terraform-examples</a></p>
]]></description><link>https://xcp-ng.org/forum/post/77413</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/77413</guid><dc:creator><![CDATA[mtcoffee]]></dc:creator><pubDate>Wed, 15 May 2024 19:07:00 GMT</pubDate></item><item><title><![CDATA[Reply to Cloud Config success on Tue, 30 Apr 2024 07:03:18 GMT]]></title><description><![CDATA[<p dir="auto">Dear <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/fataugie" aria-label="Profile: fataugie">@<bdi>fataugie</bdi></a>,<br />
Thank you for sharing your findings! We have added the method you described to <a href="https://xen-orchestra.com/docs/advanced.html#example-how-to-create-a-cloud-init-template-with-ubuntu-22-04-lts" target="_blank" rel="noopener noreferrer nofollow ugc">our documentation</a> <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>
]]></description><link>https://xcp-ng.org/forum/post/76456</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/76456</guid><dc:creator><![CDATA[ManonMercier]]></dc:creator><pubDate>Tue, 30 Apr 2024 07:03:18 GMT</pubDate></item><item><title><![CDATA[Reply to Cloud Config success on Thu, 18 Apr 2024 06:38:08 GMT]]></title><description><![CDATA[<p dir="auto">Noted <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a>. Posting back here when it's done.</p>
]]></description><link>https://xcp-ng.org/forum/post/75772</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/75772</guid><dc:creator><![CDATA[ManonMercier]]></dc:creator><pubDate>Thu, 18 Apr 2024 06:38:08 GMT</pubDate></item><item><title><![CDATA[Reply to Cloud Config success on Thu, 18 Apr 2024 06:15:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/manonmercier" aria-label="Profile: ManonMercier">@<bdi>ManonMercier</bdi></a> if you volunteer, it might worth a guide/doc somewhere as a reference <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>
]]></description><link>https://xcp-ng.org/forum/post/75768</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/75768</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Thu, 18 Apr 2024 06:15:44 GMT</pubDate></item><item><title><![CDATA[Reply to Cloud Config success on Wed, 17 Apr 2024 21:53:43 GMT]]></title><description><![CDATA[<p dir="auto">This post saved me a lot of time. Thank you for sharing</p>
]]></description><link>https://xcp-ng.org/forum/post/75761</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/75761</guid><dc:creator><![CDATA[mtcoffee]]></dc:creator><pubDate>Wed, 17 Apr 2024 21:53:43 GMT</pubDate></item></channel></rss>