<?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[bug: UEFI boot parameters not preserved with Delta backups]]></title><description><![CDATA[<p dir="auto">Greetings all,</p>
<p dir="auto">Per this <a href="https://xcp-ng.org/forum/topic/5124/restored-backups-do-not-boot">thread</a>, I ran into the same problem: <em><strong>Delta backups with a UEFI bios won't boot</strong></em>.  Instead of adding to that thread, I felt it would be better to start a new thread with the "bug" info in the title. Copying <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/creolemalady" aria-label="Profile: creoleMalady">@<bdi>creoleMalady</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a> as they were part of the initial thread.</p>
<p dir="auto"><strong>Problem</strong><br />
When Delta backups are taken, the UEFI boot environment variables are not preserved from the full copy.  It appears a blank/clean UEFI bios is added to the restore process to get the VM booted.  When this happens, the boot list presented to the VM does not include the installed OS.  The current workarounds are (1) boot from a rescue disk and reinstall grub, or (2) manually boot the system via the UEFI Shell then add the proper boot disk to the UEFI boot list.</p>
<p dir="auto"><strong>Fix</strong><br />
The fix is to ensure the UEFI boot environment parameters are preserved from the running VM into the Delta copy.  This is presumably inside the delta backup code.</p>
<hr />
<p dir="auto"><strong>Below is the UEFI boot list on a non-working system</strong>:</p>
<pre><code>root@Debian-11-delta-restore:~# efibootmgr                                           
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0001,0000,0003,0002
Boot0000* UiApp
Boot0001* UEFI Misc Device
Boot0002* UEFI PXEv4 (MAC:0EE793689990)
Boot0003* EFI Internal Shell
                                                    &lt;-- No local boot devices defined.         

</code></pre>
<hr />
<p dir="auto"><strong>Below is the UEFI boot list on a working system</strong> (note the last entry "Boot0004* debian"):</p>
<pre><code>root@Debian-11-full-restore:~# efibootmgr                                           
BootCurrent: 0005
Timeout: 0 seconds
BootOrder: 0005,0001,0000,0004,0003
Boot0000* UiApp
Boot0001* UEFI Misc Device
Boot0002* UEFI PXEv4 (MAC:1A5848A7B5DD)
Boot0003* EFI Internal Shell
Boot0004* debian.                                    &lt;-- UEFI boot param kept from full backup 

</code></pre>
<hr />
<p dir="auto"><strong>Workaround 1:  Full grub reinstall</strong></p>
<ul>
<li>Mount a rescue disk to the VM</li>
<li>Boot into rescue mode</li>
<li>Select correct OS disk</li>
<li>Reinstall grub</li>
</ul>
<hr />
<p dir="auto"><strong>Workaround 2: Boot via EFI Shell then re-install grub</strong></p>
<ul>
<li>At the UEFI "Shell" prompt, type <code>map</code> to get a list of EFI partitions.  On my system, <code>FS0:</code> is the EFI partition</li>
<li>Type <code>ls FS0:\EFI</code> to get a list of installed OSs.  On my system, <code>debian</code> is the name of the installed OS</li>
<li>Type <code>ls FS0:\EFI\&lt;os&gt;</code> to get a list of grub <code>efi</code> binaries.  On my system, <code>grubx64.efi</code> is the bootable efi file</li>
<li>Run the efi binary.  On my system, I used <code>FS0:\EFI\debian\grubx64.efi</code> to get my system running</li>
<li>Once the OS is running, reinstall grub.</li>
</ul>
<p dir="auto"><em>Note: the UEFI Shell expects standard "DOS" partition identifiers.  Specifically, note the use of drive:backslash (<code>fs0:\</code>) vs standard unix path/forwardslash (<code>/fs0/</code>)</em></p>
<p dir="auto">For additional details on fixing UEFI grub installs, visit <a href="https://wiki.archlinux.org/title/Unified_Extensible_Firmware_Interface#bcfg" target="_blank" rel="noopener noreferrer nofollow ugc">this page</a>.  It has much more detail on repairing UEFI boot problems.</p>
]]></description><link>https://xcp-ng.org/forum/topic/5319/bug-uefi-boot-parameters-not-preserved-with-delta-backups</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 01:02:32 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/5319.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 12 Dec 2021 15:36:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to bug: UEFI boot parameters not preserved with Delta backups on Thu, 16 Dec 2021 15:23:35 GMT]]></title><description><![CDATA[<p dir="auto">Thank you all for your help <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=bbd7a2dd886" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":slightly_smiling_face:" alt="🙂" /></p>
<p dir="auto">Please try the <a href="https://github.com/vatesfr/xen-orchestra/tree/fix-uefi-delta-backups" target="_blank" rel="noopener noreferrer nofollow ugc">fix-uefi-delta-backups</a> branch and keep me posted.</p>
]]></description><link>https://xcp-ng.org/forum/post/45055</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/45055</guid><dc:creator><![CDATA[julien-f]]></dc:creator><pubDate>Thu, 16 Dec 2021 15:23:35 GMT</pubDate></item><item><title><![CDATA[Reply to bug: UEFI boot parameters not preserved with Delta backups on Mon, 13 Dec 2021 12:38:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/stormi" aria-label="Profile: stormi">@<bdi>stormi</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/beshleman" aria-label="Profile: beshleman">@<bdi>beshleman</bdi></a><br />
FYI - I have opened a <a href="https://github.com/vatesfr/xen-orchestra/issues/6054" target="_blank" rel="noopener noreferrer nofollow ugc">bug in github</a> to track this issue</p>
]]></description><link>https://xcp-ng.org/forum/post/44845</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/44845</guid><dc:creator><![CDATA[rkelley]]></dc:creator><pubDate>Mon, 13 Dec 2021 12:38:32 GMT</pubDate></item><item><title><![CDATA[Reply to bug: UEFI boot parameters not preserved with Delta backups on Mon, 13 Dec 2021 12:29:37 GMT]]></title><description><![CDATA[<p dir="auto">This will also be important to fix so that Secure-Boot protected VMs can keep their certificate databases (necessary for secureboot) with delta backups.</p>
<p dir="auto">(CC <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/beshleman" aria-label="Profile: beshleman">@<bdi>beshleman</bdi></a> FYI)</p>
]]></description><link>https://xcp-ng.org/forum/post/44843</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/44843</guid><dc:creator><![CDATA[stormi]]></dc:creator><pubDate>Mon, 13 Dec 2021 12:29:37 GMT</pubDate></item><item><title><![CDATA[Reply to bug: UEFI boot parameters not preserved with Delta backups on Sun, 12 Dec 2021 18:03:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/rkelley" aria-label="Profile: rkelley">@<bdi>rkelley</bdi></a> Thank you for doing all the work for us.</p>
<p dir="auto">When there is a proper patch, I be happy to test it in our environment as well.</p>
]]></description><link>https://xcp-ng.org/forum/post/44812</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/44812</guid><dc:creator><![CDATA[creoleMalady]]></dc:creator><pubDate>Sun, 12 Dec 2021 18:03:59 GMT</pubDate></item><item><title><![CDATA[Reply to bug: UEFI boot parameters not preserved with Delta backups on Sun, 12 Dec 2021 15:52:25 GMT]]></title><description><![CDATA[<p dir="auto">That's interesting, we'll have to explore how we can restore the UEFI variable (at least, if it's possible from XAPI perspective)</p>
]]></description><link>https://xcp-ng.org/forum/post/44809</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/44809</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Sun, 12 Dec 2021 15:52:25 GMT</pubDate></item></channel></rss>