Life's random bits By b1thunt3r (aka Ishan Jain)…
Native Boot VHDx

Native Boot VHDx

Ishan jain
Multiple Windows installation with a single partition

Disclaimer: Currently I am employed by Microsoft, but my views and thoughts are still my own. The reason I joined Microsoft was, the work Microsoft have been doing for last couple of years in Open Source Space. Today I am a advocate for Open Source representing Microsoft.

Since Windows Vista (or move to ntldr to BOOTMGR), you have had possibility to boot from a VHD(x) (Virtual Hard Disk).

Easiest way to create a new VHDx is to install Windows in a Hyper-V VM.

Copy the VHDx to target PC. Tips: Try to keep the path short, i.e. C:\VHDx\Windows11.vhdx

Attach the VHDx using diskpart:

select vdisk file=C:\VHDx\Windows11.vhdx
attach vdisk

Assign letter (replace V if needed)

list volume
select volume 3
assign letter=v

Add boot entry (elevated command prompt):

bcdboot v:\windows /s S: /f UEFI

Note: Replace UEFI with BIOS if needed

Resources