Skip to content

Commit

Permalink
Add instructions for recovering Windows boot failures after update
Browse files Browse the repository at this point in the history
Signed-off-by: Tu Dinh <ngoc-tu.dinh@vates.tech>
  • Loading branch information
dinhngtu committed Mar 3, 2025
1 parent 18c93ab commit cbb553f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/troubleshooting/windows-pv-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,29 @@ Stop the VM, run the following command on the host then restart the VM:
```
xe vm-param-add uuid=<VM's 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.

0 comments on commit cbb553f

Please sign in to comment.