<?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[Cloudbase-init on Windows]]></title><description><![CDATA[<p dir="auto">I've been working on getting Windows deployments (2022 in particular) to customize with Cloudbase-init.</p>
<p dir="auto">So far I have it:</p>
<ul>
<li>Updating the hostname</li>
<li>Updating the administrator account's password</li>
<li>Running a command</li>
<li>And configuring the NIC with a static IP when supplied with the MAC address.</li>
</ul>
<p dir="auto">If I don't supply the MAC in the network config, then cloudbase-init throws a bunch of errors in the log looking for the address and does not set the static IP.  It doesn't make sense as their doc states that the field is optional.  But seems to be necessary to find the NIC.</p>
<p dir="auto">So to make it work, I need to specify a MAC address in XO when creating the VM.  And then paste that into the network config yaml.</p>
<p dir="auto">So is there a template variable for MAC like there is for {name} and {index} ?  And if not... can we get one?</p>
<p dir="auto">The working network config:<br />
network:<br />
version: 1<br />
config:<br />
- type: physical<br />
name: eth0<br />
mac_address: "56:a7:01:38:75:3f"<br />
subnets:<br />
- type: static<br />
address: 192.168.1.3/24<br />
gateway: 192.168.1.1<br />
dns_nameservers:<br />
- 192.168.1.2<br />
dns_search:<br />
- <a href="http://company.name" target="_blank" rel="noopener noreferrer nofollow ugc">company.name</a></p>
<p dir="auto">Or am I just doing it wrong?</p>
<p dir="auto">Thanks!<br />
jonathan</p>
]]></description><link>https://xcp-ng.org/forum/topic/10398/cloudbase-init-on-windows</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 17:11:00 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/10398.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 03 Feb 2025 21:05:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cloudbase-init on Windows on Tue, 16 Sep 2025 18:33:53 GMT]]></title><description><![CDATA[<p dir="auto">Alright I finally got it to work.</p>
<p dir="auto">I think the trick was to put "Ethernet 2" in quotations. I also perfected the YAML spacing and bracketed the two nameserver addresses.</p>
<p dir="auto">Thanks for the help gentlemen. Final working network config:</p>
<pre><code>#network:
  version: 2
  ethernets:
    "Ethernet 2":
      dhcp4: false
      addresses:
        - 192.168.1.30/24
      gateway4: 192.168.1.1
      nameservers:
        addresses: [192.168.1.5, 8.8.8.8]
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/97446</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/97446</guid><dc:creator><![CDATA[MK.ultra]]></dc:creator><pubDate>Tue, 16 Sep 2025 18:33:53 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Tue, 16 Sep 2025 14:58:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/mk.ultra" aria-label="Profile: MK.ultra">@<bdi>MK.ultra</bdi></a> don't think so</p>
<p dir="auto">it's working without for me.</p>
]]></description><link>https://xcp-ng.org/forum/post/97434</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/97434</guid><dc:creator><![CDATA[Pilow]]></dc:creator><pubDate>Tue, 16 Sep 2025 14:58:58 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Tue, 16 Sep 2025 14:37:51 GMT]]></title><description><![CDATA[<p dir="auto">Is "network:" required at the top of the network config? And is "cloud-config" required at the top for the user config?</p>
]]></description><link>https://xcp-ng.org/forum/post/97433</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/97433</guid><dc:creator><![CDATA[MK.ultra]]></dc:creator><pubDate>Tue, 16 Sep 2025 14:37:51 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Mon, 15 Sep 2025 18:09:56 GMT]]></title><description><![CDATA[<p dir="auto">I did stick to version: 1 in my working configuration</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1757959695876-01998ae9-bb3f-4a3c-b3f6-b1d34ae23704-image.png" alt="01998ae9-bb3f-4a3c-b3f6-b1d34ae23704-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Had to rename my "Ethernet 2" nic name to Ethernet2 without the space</p>
<p dir="auto">You have to put the exact template nic name for this to work.</p>
]]></description><link>https://xcp-ng.org/forum/post/97398</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/97398</guid><dc:creator><![CDATA[Pilow]]></dc:creator><pubDate>Mon, 15 Sep 2025 18:09:56 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Mon, 15 Sep 2025 17:59:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/mk.ultra" aria-label="Profile: MK.ultra">@<bdi>MK.ultra</bdi></a> I'd say make sure that your network-config is formatted properly with the correct YAML formatting (posting the content on this forum strips some of the formatting).  Also, verify that you're using the correct network adapter name, "Ethernet 2" was just the name of the NIC I was using in my template.</p>
<p dir="auto">If that's not an issue the next step would be to check the cloudbase-init logs to see what's reported there.  You may need to enable debug logging in the cloudbase config file to get all of the relevant info depending on the issue.</p>
]]></description><link>https://xcp-ng.org/forum/post/97397</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/97397</guid><dc:creator><![CDATA[tmk]]></dc:creator><pubDate>Mon, 15 Sep 2025 17:59:07 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Mon, 15 Sep 2025 17:26:52 GMT]]></title><description><![CDATA[<p dir="auto">Still having trouble getting it to take the network config, even with the new <a href="http://networkconfig.py" target="_blank" rel="noopener noreferrer nofollow ugc">networkconfig.py</a> file copied in and recompiled.</p>
<p dir="auto">This is what I'm using:</p>
<pre><code>network:
version: 2
ethernets:
Ethernet 2:
dhcp4: false
addresses:
- x.x.x.x/16
nameservers:
addresses:
- x.x.x.x
- x.x.x.x
search:
- my.domain.net
routes:
- to: default
via: x.x.x.x
</code></pre>
<p dir="auto">Any ideas?</p>
]]></description><link>https://xcp-ng.org/forum/post/97385</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/97385</guid><dc:creator><![CDATA[MK.ultra]]></dc:creator><pubDate>Mon, 15 Sep 2025 17:26:52 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Sun, 14 Sep 2025 19:06:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/tmk" aria-label="Profile: tmk">@<bdi>tmk</bdi></a> hi !<br />
Many thanks, your modified python file did the trick, my static IP address is now working as intented.</p>
<p dir="auto">I can confirm this is working on Windows 2025 Server as well.</p>
]]></description><link>https://xcp-ng.org/forum/post/97351</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/97351</guid><dc:creator><![CDATA[Pilow]]></dc:creator><pubDate>Sun, 14 Sep 2025 19:06:04 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Fri, 12 Sep 2025 19:58:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/tmk" aria-label="Profile: tmk">@<bdi>tmk</bdi></a> said in <a href="/forum/post/97201">Cloudbase-init on Windows</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/jkatz" aria-label="Profile: jkatz">@<bdi>jkatz</bdi></a></p>
<p dir="auto">I ran into the same issue when trying to configure a network adapter with cloudbase-init.  The documentation says that the MAC address value is optional but in reality it is required.</p>
<p dir="auto">In my case I want Xen Orchestra to choose a unique MAC during deployment, and I since I am deploying from a template, the NIC name is a known value.  The fix that ended up working for me was to modify the <a href="http://networkconfig.py" target="_blank" rel="noopener noreferrer nofollow ugc">networkconfig.py</a> file in cloudbase-init so that the NIC name is required and the MAC address is optional.</p>
<p dir="auto">I ended up making some additional changes to allow for the network-config v2 format along with the existing v1 support and some additional logic to aid in setting the dns search domains (I can't recall if this was originally supported or not but I had issues getting it to work with the original <a href="http://networkconfig.py" target="_blank" rel="noopener noreferrer nofollow ugc">networkconfig.py</a> file)</p>
<p dir="auto">This file needs to replace the existing one that is installed in the C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Lib\site-packages\cloudbaseinit\plugins\common\ directory.  To replace it you should make sure that the cloudbase-init service is stopped, then replace the file.</p>
<p dir="auto">Once this file is replaced, delete the <strong>pycache</strong> folder in the same parent folder as <a href="http://networkconfig.py" target="_blank" rel="noopener noreferrer nofollow ugc">networkconfig.py</a> - this will ensure that python recompiles this file on service start.  Start the cloudbase-init service and confirm that you see a new <strong>pycache</strong> get created.</p>
<p dir="auto">I'm not a python programmer by trade so others may be able to point out areas for improvement but this ended up working for me and I wanted to share in case it could help others needing to deploy new servers without manually specifying a new MAC address.  Below is an example network-config v2 format that works with the updated file.</p>
<p dir="auto">version: 2<br />
ethernets:<br />
Ethernet 2:<br />
dhcp4: false<br />
addresses:<br />
- 10.20.30.10/24<br />
nameservers:<br />
addresses:<br />
- 10.20.5.12<br />
- 10.20.5.13<br />
- 10.20.5.14<br />
search:<br />
- <a href="http://intranet.domain.org" target="_blank" rel="noopener noreferrer nofollow ugc">intranet.domain.org</a><br />
- <a href="http://domain.org" target="_blank" rel="noopener noreferrer nofollow ugc">domain.org</a><br />
- <a href="http://public-domain.org" target="_blank" rel="noopener noreferrer nofollow ugc">public-domain.org</a><br />
routes:<br />
- to: default<br />
via: 10.20.30.1</p>
<p dir="auto">Updated <a href="http://networkconfig.py" target="_blank" rel="noopener noreferrer nofollow ugc">networkconfig.py</a> file:<br />
<a href="/forum/assets/uploads/files/1757514990510-networkconfig.py.txt">networkconfig.py.txt</a></p>
</blockquote>
<p dir="auto">Thank you for posting! I followed your directions verbatim and I'm still having trouble getting the network config to take. Does it work with Windows Server 2025?</p>
]]></description><link>https://xcp-ng.org/forum/post/97305</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/97305</guid><dc:creator><![CDATA[MK.ultra]]></dc:creator><pubDate>Fri, 12 Sep 2025 19:58:12 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Wed, 10 Sep 2025 14:39:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/jkatz" aria-label="Profile: jkatz">@<bdi>jkatz</bdi></a></p>
<p dir="auto">I ran into the same issue when trying to configure a network adapter with cloudbase-init.  The documentation says that the MAC address value is optional but in reality it is required.</p>
<p dir="auto">In my case I want Xen Orchestra to choose a unique MAC during deployment, and I since I am deploying from a template, the NIC name is a known value.  The fix that ended up working for me was to modify the <a href="http://networkconfig.py" target="_blank" rel="noopener noreferrer nofollow ugc">networkconfig.py</a> file in cloudbase-init so that the NIC name is required and the MAC address is optional.</p>
<p dir="auto">I ended up making some additional changes to allow for the network-config v2 format along with the existing v1 support and some additional logic to aid in setting the dns search domains (I can't recall if this was originally supported or not but I had issues getting it to work with the original <a href="http://networkconfig.py" target="_blank" rel="noopener noreferrer nofollow ugc">networkconfig.py</a> file)</p>
<p dir="auto">This file needs to replace the existing one that is installed in the C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\Lib\site-packages\cloudbaseinit\plugins\common\ directory.  To replace it you should make sure that the cloudbase-init service is stopped, then replace the file.</p>
<p dir="auto">Once this file is replaced, delete the <strong>pycache</strong> folder in the same parent folder as <a href="http://networkconfig.py" target="_blank" rel="noopener noreferrer nofollow ugc">networkconfig.py</a> - this will ensure that python recompiles this file on service start.  Start the cloudbase-init service and confirm that you see a new <strong>pycache</strong> get created.</p>
<p dir="auto">I'm not a python programmer by trade so others may be able to point out areas for improvement but this ended up working for me and I wanted to share in case it could help others needing to deploy new servers without manually specifying a new MAC address.  Below is an example network-config v2 format that works with the updated file.</p>
<p dir="auto">version: 2<br />
ethernets:<br />
Ethernet 2:<br />
dhcp4: false<br />
addresses:<br />
- 10.20.30.10/24<br />
nameservers:<br />
addresses:<br />
- 10.20.5.12<br />
- 10.20.5.13<br />
- 10.20.5.14<br />
search:<br />
- <a href="http://intranet.domain.org" target="_blank" rel="noopener noreferrer nofollow ugc">intranet.domain.org</a><br />
- <a href="http://domain.org" target="_blank" rel="noopener noreferrer nofollow ugc">domain.org</a><br />
- <a href="http://public-domain.org" target="_blank" rel="noopener noreferrer nofollow ugc">public-domain.org</a><br />
routes:<br />
- to: default<br />
via: 10.20.30.1</p>
<p dir="auto">Updated <a href="http://networkconfig.py" target="_blank" rel="noopener noreferrer nofollow ugc">networkconfig.py</a> file:<br />
<a href="/forum/assets/uploads/files/1757514990510-networkconfig.py.txt">networkconfig.py.txt</a></p>
]]></description><link>https://xcp-ng.org/forum/post/97201</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/97201</guid><dc:creator><![CDATA[tmk]]></dc:creator><pubDate>Wed, 10 Sep 2025 14:39:43 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Tue, 13 May 2025 12:24:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/jkatz" aria-label="Profile: jkatz">@<bdi>jkatz</bdi></a> Thanks for that.</p>
<p dir="auto">I actually did something different but it worked. I don't know how but it is working.</p>
<p dir="auto">I used this in XO in Cloud Config<br />
<img src="/forum/assets/uploads/files/1747138648336-a5f1ca37-802a-4ff4-bc4f-6c8ccaa3dc97-image.png" alt="a5f1ca37-802a-4ff4-bc4f-6c8ccaa3dc97-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">It worked<br />
<img src="/forum/assets/uploads/files/1747138770858-e2666c29-8a03-41e1-879b-b6559b7f0bf2-image.png" alt="e2666c29-8a03-41e1-879b-b6559b7f0bf2-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Don't know if does it matter or not ( probably does) that I also entered this plugin into both files :<br />
cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/jkatz" aria-label="Profile: jkatz">@<bdi>jkatz</bdi></a> said in <a href="/forum/post/92844">Cloudbase-init on Windows</a>:</p>
<blockquote>
<p dir="auto">You don't.</p>
</blockquote>
<p dir="auto">That is lame.</p>
<p dir="auto">Wonder if domain join is possible with that...</p>
]]></description><link>https://xcp-ng.org/forum/post/92876</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/92876</guid><dc:creator><![CDATA[Andrew7]]></dc:creator><pubDate>Tue, 13 May 2025 12:24:25 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Mon, 12 May 2025 18:13:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/andrew7" aria-label="Profile: Andrew7">@<bdi>Andrew7</bdi></a></p>
<p dir="auto">You don't.  Pretty sure there is a dialog stating this is not reversable when setting a VM as a template.</p>
<p dir="auto">What I do is have a source vm and then take a snapshot of it while off.  Then create a vm off that snap.  Can do versioning this way.  Boot the new vm (from the snap), install cloudbase, copy over the cloudbase-init.conf over, shutdown, convert to template.</p>
<p dir="auto">I also created my own ISO with the citrix tools, cloudbase installer, and cloudbase config to make it easier.</p>
<p dir="auto">Making the hostname update was probably the first thing that got working.  Check my cloud-config at the top.  That should work.  Just be sure to add those last three lines to the cloudbase config too.</p>
<p dir="auto">And the only file i change is cloudbase-init.conf.</p>
]]></description><link>https://xcp-ng.org/forum/post/92844</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/92844</guid><dc:creator><![CDATA[jkatz]]></dc:creator><pubDate>Mon, 12 May 2025 18:13:06 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Mon, 12 May 2025 18:05:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dinhngtu" aria-label="Profile: dinhngtu">@<bdi>dinhngtu</bdi></a></p>
<p dir="auto">Didn't bother with manual sysprep anymore.  I just let the installer start it.</p>
]]></description><link>https://xcp-ng.org/forum/post/92843</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/92843</guid><dc:creator><![CDATA[jkatz]]></dc:creator><pubDate>Mon, 12 May 2025 18:05:51 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Mon, 12 May 2025 17:34:40 GMT]]></title><description><![CDATA[<p dir="auto">By the way, how to edit Template ?</p>
]]></description><link>https://xcp-ng.org/forum/post/92840</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/92840</guid><dc:creator><![CDATA[Andrew7]]></dc:creator><pubDate>Mon, 12 May 2025 17:34:40 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Mon, 12 May 2025 17:27:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dinhngtu" aria-label="Profile: dinhngtu">@<bdi>dinhngtu</bdi></a><br />
Still nothing. I've tried use only :<br />
#cloudbase-config<br />
hostname: VMName</p>
<p dir="auto">I can also confirm what <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/jkatz" aria-label="Profile: jkatz">@<bdi>jkatz</bdi></a> discovered. When there is no MAC address in Network Config the static IP setup doesn't work.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/jkatz" aria-label="Profile: jkatz">@<bdi>jkatz</bdi></a> Yes, it seems that we are on the same boat.</p>
<p dir="auto">How did you make that hostname change works ?</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dinhngtu" aria-label="Profile: dinhngtu">@<bdi>dinhngtu</bdi></a> What this audit mode does ?</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dinhngtu" aria-label="Profile: dinhngtu">@<bdi>dinhngtu</bdi></a> said in <a href="/forum/post/92830">Cloudbase-init on Windows</a>:</p>
<blockquote>
<p dir="auto">Did you use the cloudbase-init unattend.xml for sysprep?</p>
</blockquote>
<p dir="auto">There was that file on disk and I saw that it had a config in it. I have not touched it in any way.</p>
]]></description><link>https://xcp-ng.org/forum/post/92837</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/92837</guid><dc:creator><![CDATA[Andrew7]]></dc:creator><pubDate>Mon, 12 May 2025 17:27:58 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Mon, 12 May 2025 15:00:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/jkatz" aria-label="Profile: jkatz">@<bdi>jkatz</bdi></a> Do the issues occur even if the template was prepared from audit mode?</p>
]]></description><link>https://xcp-ng.org/forum/post/92832</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/92832</guid><dc:creator><![CDATA[dinhngtu]]></dc:creator><pubDate>Mon, 12 May 2025 15:00:11 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Mon, 12 May 2025 14:59:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dinhngtu" aria-label="Profile: dinhngtu">@<bdi>dinhngtu</bdi></a></p>
<p dir="auto">I'm testing this out on my test environment.  But it have to rebuild the template as we borked the site where the templates were at.</p>
<p dir="auto">MS introduced some bugs in some xapps in a recent patch cycle that breaks sysprep.  I noticed this when i was creating a template in our vcenter environment.  I'm currently using this ISO for my template build:</p>
<p dir="auto">SW_DVD9_Win_Server_STD_CORE_2022_2108.31_64Bit_English_DC_STD_MLF_X23-71666.ISO</p>
<p dir="auto">And then not applying any patches.  That works for me in vcenter, but once I apply current patches, then it will not customize anymore.  Not sure if it applies here in XO, but i thought i'd throw that out there too.</p>
]]></description><link>https://xcp-ng.org/forum/post/92831</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/92831</guid><dc:creator><![CDATA[jkatz]]></dc:creator><pubDate>Mon, 12 May 2025 14:59:05 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Mon, 12 May 2025 14:16:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/andrew7" aria-label="Profile: Andrew7">@<bdi>Andrew7</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/jkatz" aria-label="Profile: jkatz">@<bdi>jkatz</bdi></a> Did you use the cloudbase-init unattend.xml for sysprep? I also recommend starting your template from audit mode.</p>
<p dir="auto">I've done several tests with my procedures from the PR linked above, and managed to set the VM's hostname.</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1747059301792-vm.png" alt="vm.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://xcp-ng.org/forum/post/92830</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/92830</guid><dc:creator><![CDATA[dinhngtu]]></dc:creator><pubDate>Mon, 12 May 2025 14:16:46 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Mon, 12 May 2025 13:53:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/andrew7" aria-label="Profile: Andrew7">@<bdi>Andrew7</bdi></a><br />
Sounds like I'm in the same boat as you in trying to find an alternative to vmware for a fairly large deployment.  And the PoC / testing will probably take around 6-12 months before we commit to any new platform.  So support during the one month trial period isn't quite enough.</p>
<p dir="auto">I would agree that the customization specifications in vcenter are easy to use and quite polished.  But I do think cloudbase-init can get the minimal job done where the hostname and ip gets configured during deployment.  Then i can rely on our automation tools to take it to the end.  The only stopping point right now is exposing the new MAC address to the network config as a variable.  But it sounds like that is hopefully being addressed.</p>
<p dir="auto">Originally, i would install cloudbase, and not do the sysprep there and not shutdown.  Then i would modify the cloudbase-init.conf.  then sysprep manually, then shutdown.  I think (been a while, but i have it written down in a onenote)  this worked except for the newer OSs like 11 and 2025.  So now my process is to let the cloudbase installer do the sysprep but not shutdown.  I think the cloudbase sysprep does something a little different than just running it manually.  Then i modify the config, then shutdown. Convert to template.</p>
<p dir="auto">I think for 11 I also changed the administrator user to not 'user must change password'.  That may or may not be needed.</p>
<p dir="auto">Also, if the recovery partition is put after the primary, you'll want to nuke it so that the disk can be resized during deployment.</p>
<p dir="auto">If you still can't get it working, i'll revisit my steps here to verify my process.  Lemme know and I'll check.</p>
]]></description><link>https://xcp-ng.org/forum/post/92829</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/92829</guid><dc:creator><![CDATA[jkatz]]></dc:creator><pubDate>Mon, 12 May 2025 13:53:36 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Mon, 12 May 2025 13:42:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dinhngtu" aria-label="Profile: dinhngtu">@<bdi>dinhngtu</bdi></a><br />
Hello again,</p>
<p dir="auto">Thanks for replay.<br />
I did it all over again ( new cloudbase-init installation on new VM ), and used <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/jkatz" aria-label="Profile: jkatz">@<bdi>jkatz</bdi></a> config and it partially worked.</p>
<p dir="auto">This was my settings just before OS shutdown<br />
<img src="/forum/assets/uploads/files/1747056361319-e3e8a1aa-fd75-4b1e-99fe-0effc9bfd422-image-resized.png" alt="e3e8a1aa-fd75-4b1e-99fe-0effc9bfd422-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">And this is the output, new VM and it's settings<br />
<img src="/forum/assets/uploads/files/1747056475323-addb8e69-d0d9-4d64-b496-9407cdf3a89a-image.png" alt="addb8e69-d0d9-4d64-b496-9407cdf3a89a-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">What hasn't change during deployment is the host name. Network setting were changed according to Network Config file from XO.<br />
Sysprep was also done.</p>
<p dir="auto">So I will have to figure out why the hostname hasn't changed according to the XO Users Config.</p>
]]></description><link>https://xcp-ng.org/forum/post/92827</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/92827</guid><dc:creator><![CDATA[Andrew7]]></dc:creator><pubDate>Mon, 12 May 2025 13:42:53 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Mon, 12 May 2025 12:33:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/jkatz" aria-label="Profile: jkatz">@<bdi>jkatz</bdi></a> I'm talking with the DevOps team to see if there's a way to discover/configure networking, perhaps via additional metadata provided through the cloud config drive.</p>
]]></description><link>https://xcp-ng.org/forum/post/92821</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/92821</guid><dc:creator><![CDATA[dinhngtu]]></dc:creator><pubDate>Mon, 12 May 2025 12:33:18 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Mon, 12 May 2025 11:46:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/andrew7" aria-label="Profile: Andrew7">@<bdi>Andrew7</bdi></a> Did you Sysprep the template using cloudbase-init's included Unattend.xml file? That file is needed to invoke cloudbase-init after the image is unsealed.</p>
<p dir="auto">For the cloudbase-init configuration, you only need to add the following line to both of its config files:</p>
<pre><code>metadata_services=cloudbaseinit.metadata.services.nocloudservice.NoCloudConfigDriveService
</code></pre>
<p dir="auto">No need to add any other line to <code>cloudbase-init.conf</code> unless you want to enable/disable specific plugins.</p>
<p dir="auto">I'm preparing an updated guide for Windows VM template creation: <a href="https://github.com/vatesfr/xen-orchestra/pull/8575" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/vatesfr/xen-orchestra/pull/8575</a>. Stay tuned.</p>
]]></description><link>https://xcp-ng.org/forum/post/92820</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/92820</guid><dc:creator><![CDATA[dinhngtu]]></dc:creator><pubDate>Mon, 12 May 2025 11:46:57 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Fri, 09 May 2025 17:16:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dinhngtu" aria-label="Profile: dinhngtu">@<bdi>dinhngtu</bdi></a></p>
<p dir="auto">Thank you for the replay.</p>
<p dir="auto">I understand that cloudbase-init is a way to go. I did similar config to <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/jkatz" aria-label="Profile: jkatz">@<bdi>jkatz</bdi></a> and don't know why it doesn't work for me.<br />
I did exactly as you suggested, created Cloud Config settings in XO and then use that during deployment screen.<br />
<img src="/forum/assets/uploads/files/1746809957038-fb2c70d1-6189-4602-9808-aec119f9ac0c-image.png" alt="fb2c70d1-6189-4602-9808-aec119f9ac0c-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I've tried to set it up with this guide<br />
<a href="https://docs.xen-orchestra.com/vm-templates" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.xen-orchestra.com/vm-templates</a></p>
<p dir="auto">So I've added those fields :<br />
config_drive_vfat=true<br />
...<br />
metadata_services=cloudbaseinit.metadata.services.nocloudservice.NoCloudConfigDriveService<br />
plugins=cloudbaseinit.plugins.common.userdata.UserDataPlugin</p>
<p dir="auto">into config files.</p>
<p dir="auto">I'm probably doing something wrong but I don't know where to look.<br />
It seems that cloudbase-init doesn't even start or it is skipped because my input is totally incorrect in those "User config " and "Network Config" fields.</p>
<p dir="auto">The log folder here is empty<br />
<img src="/forum/assets/uploads/files/1746810406427-f22f1716-fa3e-46de-be19-6edb70f06377-image.png" alt="f22f1716-fa3e-46de-be19-6edb70f06377-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Do you have any ideas why it doesn't work ?<br />
It might be the case that I'm just an idiot and did some rookie mistake as I have never used cloudbase-init before.<br />
So, I don't really know if the problem is my Custom Config settings in XO or cloudbase-init config on VM.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/dinhngtu" aria-label="Profile: dinhngtu">@<bdi>dinhngtu</bdi></a> said in <a href="/forum/post/92778">Cloudbase-init on Windows</a>:</p>
<blockquote>
<p dir="auto">As for Sysprep support specifically, I've put in a request to the XO team, although I can't promise anything specific for now.</p>
</blockquote>
<p dir="auto">Thank you.</p>
]]></description><link>https://xcp-ng.org/forum/post/92782</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/92782</guid><dc:creator><![CDATA[Andrew7]]></dc:creator><pubDate>Fri, 09 May 2025 17:16:59 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Fri, 09 May 2025 16:40:27 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/jkatz" aria-label="Profile: jkatz">@<bdi>jkatz</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/andrew7" aria-label="Profile: Andrew7">@<bdi>Andrew7</bdi></a>,</p>
<p dir="auto"><a href="https://cloudbase-init.readthedocs.io/en/latest/plugins.html" target="_blank" rel="noopener noreferrer nofollow ugc">Cloudbase-init</a> is currently the recommended method for personalizing Windows templates in XO. It supports multiple configuration plugins (hostname/credentials/licensing etc.), which are available from the linked page above.</p>
<p dir="auto">For customizing deployed VMs, what I like to do is to prepare a "skeleton" cloud-init file and set it in XO Settings -&gt; Cloud config. Then I can load this config at any time and fill in the details later for each batch of VM I want to deploy.</p>
<p dir="auto">We do have a Packer repo for making master VM templates from <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/nathanael-h" aria-label="Profile: nathanael-h">@<bdi>nathanael-h</bdi></a>; it will prepare an XVA image ready for specialization using cloudbase-init. I'll try to work to publish that and provide some documentation next.</p>
<p dir="auto">As for Sysprep support specifically, I've put in a request to the XO team, although I can't promise anything specific for now.</p>
]]></description><link>https://xcp-ng.org/forum/post/92778</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/92778</guid><dc:creator><![CDATA[dinhngtu]]></dc:creator><pubDate>Fri, 09 May 2025 16:40:27 GMT</pubDate></item><item><title><![CDATA[Reply to Cloudbase-init on Windows on Fri, 09 May 2025 15:39:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/andrew7" aria-label="Profile: Andrew7">@<bdi>Andrew7</bdi></a> XCP-ng has always been free to use, the same for Xen Orchestra (from source) you can look at my profile to find a link or read the documentation to deploy it yourself.</p>
<p dir="auto">You've hijacked someone else's thread to ask your question because their question was similar to yours, I guess?</p>
<p dir="auto">And you seem to have an arrogance about your inquiry of "it just works on this other product that we're fleeing from that would cost us as much as 300% more every year forever".</p>
<p dir="auto">And on the same coin, other side you're saying you haven't the faintest reason why anyone would be upset with your tone, while asking for free help.</p>
<p dir="auto">Support for a 3 host pack, is as cheap as $1000/year or $3000, with essentially unlimited and confidential access for a product which has a long tract record.</p>
]]></description><link>https://xcp-ng.org/forum/post/92776</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/92776</guid><dc:creator><![CDATA[DustinB]]></dc:creator><pubDate>Fri, 09 May 2025 15:39:24 GMT</pubDate></item></channel></rss>