From cbb553f9c50c0527fb5bdb0da36baaa66f4716ce Mon Sep 17 00:00:00 2001 From: Tu Dinh Date: Sat, 1 Mar 2025 17:50:40 +0100 Subject: [PATCH] Add instructions for recovering Windows boot failures after update Signed-off-by: Tu Dinh --- docs/troubleshooting/windows-pv-tools.md | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docs/troubleshooting/windows-pv-tools.md b/docs/troubleshooting/windows-pv-tools.md index 20024e6..82a769c 100644 --- a/docs/troubleshooting/windows-pv-tools.md +++ b/docs/troubleshooting/windows-pv-tools.md @@ -162,3 +162,29 @@ Stop the VM, run the following command on the host then restart the VM: ``` xe vm-param-add uuid= param-name=platform msr-relaxed=true ``` + +## Windows fails to boot, keeps exiting to Startup Repair/recovery menu after updating + +### Cause + +This is often caused by the Windows boot loader failing to find the Windows partition. + +### Workaround + +From the recovery menu, open Command Prompt, then use `diskpart` to assign drive letters to the EFI system partition: + +``` +list vol +sel vol N # N = number of volume with info = "System" +assign letter=S +exit +``` + +After exiting Diskpart, use the following commands: + +```bat +bcdedit /store S:\EFI\Microsoft\Boot /set {default} device=partition=C: +bcdedit /store S:\EFI\Microsoft\Boot /set {default} osdevice=partition=C: +``` + +After exiting to Windows, your system should boot successfully.