<?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[vm start delay - does it work yet?]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">From my obercation the start dealy is not working - I look like the vms are stariting all together at boot. Since when this function is avaialbe in xoa?</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1557565905161-e6d70680-6313-4920-ba6d-2ba247a01953-image.png" alt="e6d70680-6313-4920-ba6d-2ba247a01953-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://xcp-ng.org/forum/topic/1312/vm-start-delay-does-it-work-yet</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 16:35:27 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/1312.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 11 May 2019 09:11:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to vm start delay - does it work yet? on Mon, 10 Feb 2025 19:13:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/payback007" aria-label="Profile: payback007">@<bdi>payback007</bdi></a> said in <a href="/forum/post/11881">vm start delay - does it work yet?</a>:</p>
<blockquote>
<p dir="auto">unfortunately "start delay" is not working as expected. The function what you marked above is to change the start delay of an existing "vApp". Here is an example of my setup:</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1558128450595-04e7439d-6b92-4356-aa23-14d704588be3-grafik.png" alt="04e7439d-6b92-4356-aa23-14d704588be3-grafik.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The value whould change the "Delay interval" later by XOA, nothing else. Otherwise is vApp feature also not working on my XCP-ng installation, I think it was never really tested.</p>
<p dir="auto">If you want to implement start delays to your VM's you can follow this guide:</p>
<ol>
<li>define vApp for autostart in xcp-ng center including start order</li>
<li>find out the uuid of the vApp:</li>
</ol>
<pre><code>xe appliance-list
</code></pre>
<ol start="3">
<li>write autostart script containing</li>
</ol>
<pre><code>#!/bin/sh
xe appliance-start uuid=uuid-autostart-vApp
</code></pre>
<ol start="4">
<li>implement new systemd.service in /etc/systemd/system/autostart.service</li>
</ol>
<pre><code>[Unit]
Description=autostart script for boot VM
After=graphical.target

[Service]
Type=simple
ExecStart=/path/to/your/autostart-script.sh
TimeoutStartSec=0

[Install]
WantedBy=default.target
</code></pre>
<ol start="5">
<li>enable the service</li>
</ol>
<pre><code>systemctl enable autostart.service
</code></pre>
<p dir="auto">Editing of boot delay time is then possible via XOA which is already a nice feature at all for "fine tuning" or adapt if new VMs are added to the autostart vApp.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a> whould it make sense to open an additional feature request? vApp-implementation was several times discussed with no "final statement" I think.</p>
</blockquote>
<p dir="auto">When I have a pool without HA, how could I use this script?</p>
<p dir="auto">I thought about setting the script on the master server. However, in a maintenance, where a second node becomes the master, will I have to recreate the script?</p>
]]></description><link>https://xcp-ng.org/forum/post/89510</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/89510</guid><dc:creator><![CDATA[cairoti]]></dc:creator><pubDate>Mon, 10 Feb 2025 19:13:12 GMT</pubDate></item><item><title><![CDATA[Reply to vm start delay - does it work yet? on Mon, 02 Oct 2023 21:44:47 GMT]]></title><description><![CDATA[<p dir="auto">The only thing is to think on that script during a major update of xcp-ng to a newer version. Because after installation the autostart.service has to be implemted again.</p>
]]></description><link>https://xcp-ng.org/forum/post/66131</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/66131</guid><dc:creator><![CDATA[payback007]]></dc:creator><pubDate>Mon, 02 Oct 2023 21:44:47 GMT</pubDate></item><item><title><![CDATA[Reply to vm start delay - does it work yet? on Mon, 02 Oct 2023 11:35:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/payback007" aria-label="Profile: payback007">@<bdi>payback007</bdi></a><br />
Thank you for sharing this. So far this is the one simple and reliable way to start VM in the desired order.</p>
]]></description><link>https://xcp-ng.org/forum/post/66100</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/66100</guid><dc:creator><![CDATA[sasha]]></dc:creator><pubDate>Mon, 02 Oct 2023 11:35:38 GMT</pubDate></item><item><title><![CDATA[Reply to vm start delay - does it work yet? on Fri, 17 May 2019 21:47:30 GMT]]></title><description><![CDATA[<p dir="auto">unfortunately "start delay" is not working as expected. The function what you marked above is to change the start delay of an existing "vApp". Here is an example of my setup:</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1558128450595-04e7439d-6b92-4356-aa23-14d704588be3-grafik.png" alt="04e7439d-6b92-4356-aa23-14d704588be3-grafik.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The value whould change the "Delay interval" later by XOA, nothing else. Otherwise is vApp feature also not working on my XCP-ng installation, I think it was never really tested.</p>
<p dir="auto">If you want to implement start delays to your VM's you can follow this guide:</p>
<ol>
<li>define vApp for autostart in xcp-ng center including start order</li>
<li>find out the uuid of the vApp:</li>
</ol>
<pre><code>xe appliance-list
</code></pre>
<ol start="3">
<li>write autostart script containing</li>
</ol>
<pre><code>#!/bin/sh
xe appliance-start uuid=uuid-autostart-vApp
</code></pre>
<ol start="4">
<li>implement new systemd.service in /etc/systemd/system/autostart.service</li>
</ol>
<pre><code>[Unit]
Description=autostart script for boot VM
After=graphical.target

[Service]
Type=simple
ExecStart=/path/to/your/autostart-script.sh
TimeoutStartSec=0

[Install]
WantedBy=default.target
</code></pre>
<ol start="5">
<li>enable the service</li>
</ol>
<pre><code>systemctl enable autostart.service
</code></pre>
<p dir="auto">Editing of boot delay time is then possible via XOA which is already a nice feature at all for "fine tuning" or adapt if new VMs are added to the autostart vApp.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a> whould it make sense to open an additional feature request? vApp-implementation was several times discussed with no "final statement" I think.</p>
]]></description><link>https://xcp-ng.org/forum/post/11881</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/11881</guid><dc:creator><![CDATA[payback007]]></dc:creator><pubDate>Fri, 17 May 2019 21:47:30 GMT</pubDate></item><item><title><![CDATA[Reply to vm start delay - does it work yet? on Mon, 13 May 2019 07:50:17 GMT]]></title><description><![CDATA[<p dir="auto">Put a large delay on a VM (eg 600 secs, 10min), and put in on autopower. Then reboot your host. Is the VM booted before 10min? If yes, then autopower in XAPI doesn't take into account the delay.</p>
]]></description><link>https://xcp-ng.org/forum/post/11612</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/11612</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Mon, 13 May 2019 07:50:17 GMT</pubDate></item><item><title><![CDATA[Reply to vm start delay - does it work yet? on Mon, 13 May 2019 06:18:54 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> said in <a href="/forum/post/11532">vm start dealy - does it work yet?</a>:</p>
<blockquote>
<p dir="auto">I'm not sure delay is meant to work with auto power.</p>
</blockquote>
<p dir="auto">Where could I veryify the functionality of delay and autopower ?</p>
]]></description><link>https://xcp-ng.org/forum/post/11602</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/11602</guid><dc:creator><![CDATA[akurzawa]]></dc:creator><pubDate>Mon, 13 May 2019 06:18:54 GMT</pubDate></item><item><title><![CDATA[Reply to vm start delay - does it work yet? on Sat, 11 May 2019 09:44:35 GMT]]></title><description><![CDATA[<p dir="auto">Start delay works when the VM is started with a <code>VM.start</code>. I'm not sure delay is meant to work with auto power.</p>
<p dir="auto">Details on XAPI: <a href="https://xapi-project.github.io/xen-api/classes/vm.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://xapi-project.github.io/xen-api/classes/vm.html</a></p>
<blockquote>
<p dir="auto">The delay to wait before proceeding to the next order in the startup sequence (seconds)</p>
</blockquote>
<p dir="auto">Regarding the feature, it's available since XOA <code>5.33</code>, see <a href="https://github.com/vatesfr/xen-orchestra/blob/master/CHANGELOG.md#5330-2019-03-29" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/vatesfr/xen-orchestra/blob/master/CHANGELOG.md#5330-2019-03-29</a></p>
]]></description><link>https://xcp-ng.org/forum/post/11532</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/11532</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Sat, 11 May 2019 09:44:35 GMT</pubDate></item></channel></rss>